Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Blanke
AKPlanning
Commits
658cf6f5
Commit
658cf6f5
authored
3 weeks ago
by
Benjamin Hättasch
Committed by
Nadja Geisler
2 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Add missing template for AKs by Owner view
This fixes #243
parent
207430ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AKModel/templates/admin/AKModel/aks_by_user.html
+38
-0
38 additions, 0 deletions
AKModel/templates/admin/AKModel/aks_by_user.html
with
38 additions
and
0 deletions
AKModel/templates/admin/AKModel/aks_by_user.html
0 → 100644
+
38
−
0
View file @
658cf6f5
{% extends "admin/base_site.html" %}
{% load tags_AKModel %}
{% load i18n %}
{% load tz %}
{% load fontawesome_6 %}
{% block title %}{% trans "AKs by Owner" %}: {{owner}}{% endblock %}
{% block content %}
{% timezone event.timezone %}
<h2>
[{{event}}]
<a
href=
"{% url 'admin:AKModel_akowner_change' owner.pk %}"
>
{{owner}}
</a>
- {% trans "AKs" %}
</h2>
<div
class=
"row mt-4"
>
<table
class=
"table table-striped"
>
{% for ak in owner.ak_set.all %}
<tr>
<td>
{{ ak }}
</td>
{% if "AKSubmission"|check_app_installed %}
<td
class=
"text-end"
>
<a
href=
"{{ ak.detail_url }}"
data-bs-toggle=
"tooltip"
title=
"{% trans 'Details' %}"
class=
"btn btn-primary"
>
{% fa6_icon 'info' 'fas' %}
</a>
{% if event.active %}
<a
href=
"{{ ak.edit_url }}"
data-bs-toggle=
"tooltip"
title=
"{% trans 'Edit' %}"
class=
"btn btn-success"
>
{% fa6_icon 'pencil-alt' 'fas' %}
</a>
{% endif %}
{% endif %}
</td>
</tr>
{% empty %}
<tr><td>
{% trans "This user does not have any AKs currently" %}
</td></tr>
{% endfor %}
</table>
</div>
{% endtimezone %}
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment