Skip to content

Commit

Permalink
Link to admin panel instead of deleted dash-page
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Mar 11, 2024
1 parent 307b010 commit c5dbae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/approval/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h4>Ubehandlede søknader</h4>
{% for app in membership_applications %}
<div class="row application">
<div class="col-md-3 cell">
<div class="visible-xs visible-sm">1. </div><a href="{% url 'dashboard_user_detail' app.applicant.id %}" target="_blank">{{ app.applicant.get_full_name }}</a>
<div class="visible-xs visible-sm">1. </div><a href="{% url 'admin:onlineuser_change' app.applicant.id %}" target="_blank">{{ app.applicant.get_full_name }}</a>
</div>
<div class="col-md-2 cell">
<div class="visible-xs visible-sm">2. </div>
Expand Down
4 changes: 2 additions & 2 deletions templates/auth/dashboard/user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
{% for user in object_list %}
{% if query %}{% with user=user.object %}
<tr>
<td><a href="{% url 'dashboard_user_detail' user.id %}">{{ user.get_full_name }}</a></td>
<td><a href="{% url 'admin:onlineuser_change' user.id %}">{{ user.get_full_name }}</a></td>
<td>{% if user.ntnu_username %}{{ user.ntnu_username }}{% else %}-{% endif %}</td>
{% if user.member %}
<td>{{ user.member.registered|date:'Y-m-d' }}</td>
Expand All @@ -89,7 +89,7 @@
</tr>
{% endwith %}{% else %}
<tr>
<td><a href="{% url 'dashboard_user_detail' user.id %}">{{ user.get_full_name }}</a></td>
<td><a href="{% url 'admin:onlineuser_change' user.id %}">{{ user.get_full_name }}</a></td>
<td>{% if user.ntnu_username %}{{ user.ntnu_username }}{% else %}-{% endif %}</td>
{% if user.member %}
<td>{{ user.member.registered|date:'Y-m-d' }}</td>
Expand Down

0 comments on commit c5dbae8

Please sign in to comment.