Skip to content

Commit

Permalink
Update organization_list and settings page, remove unused stuff, add …
Browse files Browse the repository at this point in the history
…tags + direct settings link (#4039)

Co-authored-by: Jeroen Dekkers <[email protected]>
  • Loading branch information
underdarknl and dekkers authored Jan 30, 2025
1 parent 6f744d9 commit b1d0530
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 6 additions & 9 deletions rocky/rocky/templates/organizations/organization_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{% load i18n %}
{% load static %}
{% load compress %}

{% block content %}
{% include "header.html" %}
Expand All @@ -25,7 +24,7 @@ <h1>{% translate "Organizations" %}</h1>
<th>{% translate "Name" %}</th>
<th>{% translate "Code" %}</th>
<th>{% translate "Tags" %}</th>
<th>{% translate "Members" %}</th>
<th>{% translate "Settings" %}</th>
</tr>
</thead>
<tbody>
Expand All @@ -41,7 +40,11 @@ <h1>{% translate "Organizations" %}</h1>
{% include "organizations/organization_tags.html" %}

</td>
<td>{{ organization.member_count }}</td>
<td>
<a href="{% url 'organization_settings' organization_code=organization.code %}">
<button class="icon ti-edit action-button">Settings</button>
</a>
</td>
</tr>
{% endfor %}
</tbody>
Expand All @@ -67,9 +70,3 @@ <h2>{% translate "Actions" %}</h2>
</section>
</main>
{% endblock content %}
{% block html_at_end_body %}
{{ block.super }}
{% compress js %}
<script src="{% static "js/checkboxToggler.js" %}" nonce="{{ request.csp_nonce }}"></script>
{% endcompress %}
{% endblock html_at_end_body %}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h2>{% translate "Organization details" %}</h2>
<tr>
<th>{% translate "Name" %}</th>
<th>{% translate "Code" %}</th>
<th>{% translate "Tags" %}</th>
{% if perms.tools.change_organization %}
<th>{% translate "Edit" %}</th>
{% endif %}
Expand All @@ -44,6 +45,10 @@ <h2>{% translate "Organization details" %}</h2>
<tr>
<td>{{ organization.name }}</td>
<td>{{ organization.code }}</td>
<td>
{% include "organizations/organization_tags.html" %}

</td>
{% if perms.tools.change_organization %}
<td>
{% spaceless %}
Expand Down

0 comments on commit b1d0530

Please sign in to comment.