Skip to content

Commit

Permalink
Link to maintenance view rather than edit
Browse files Browse the repository at this point in the history
Because:
- The intention of the link is to show the full details of a maintenance
  task, not to edit it.
- The user might not even have access to edit a task, but can still
  have access to view its details.

Fixes #2255
  • Loading branch information
lunkwill42 committed Mar 17, 2021
1 parent 06b0cc3 commit 9a57e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/web/templates/ipdevinfo/frag-ipdevinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
<ul class="normalize-font-size">
{% for task in current_maintenance_tasks %}
<li>
<a href="{% url 'maintenance-edit' task.id %}">
<a href="{% url 'maintenance-view' task.id %}">
{{ task.description }}

</a>
Expand Down Expand Up @@ -368,7 +368,7 @@
<ul class="normalize-font-size">
{% for task in future_maintenance_tasks %}
<li>
<a href="{% url 'maintenance-edit' task.id %}">
<a href="{% url 'maintenance-view' task.id %}">
{{ task.description }}
</a>
<div>
Expand Down

0 comments on commit 9a57e98

Please sign in to comment.