Skip to content

Commit e36f41c

Browse files
committed
Align document history URL and view name with moderation conventions
- URL: /moderation/document/<pk>/history/ → /moderation/document/<pk>/ - Name: document_history → moderation_document https://claude.ai/code/session_01ASo7pRSr4hxD6jm6NrynSi
1 parent 9467cfd commit e36f41c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

documents/templates/documents/viewer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h1 class="fs-4 mb-0 d-flex align-items-center gap-1">
7575
</a>
7676
{% endif %}
7777
<a class="btn btn-outline-secondary btn-sm d-inline-flex align-items-center gap-1"
78-
href="{% url 'document_history' document.pk %}">
78+
href="{% url 'moderation_document' document.pk %}">
7979
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
8080
class="bi bi-clock-history" viewBox="0 0 16 16">
8181
<path d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022zm2.004.45a7 7 0 0 0-.985-.299l.219-.976q.576.129 1.126.342zm1.37.71a7 7 0 0 0-.439-.27l.493-.87a8 8 0 0 1 .979.654l-.615.789a7 7 0 0 0-.418-.302zm1.834 1.79a7 7 0 0 0-.653-.796l.724-.69q.406.429.747.91zm.744 1.352a7 7 0 0 0-.214-.468l.893-.45a8 8 0 0 1 .45 1.088l-.95.313a7 7 0 0 0-.179-.483m.53 2.507a7 7 0 0 0-.1-1.025l.985-.17q.1.58.116 1.17zm-.131 1.538q.05-.254.081-.51l.993.123a8 8 0 0 1-.23 1.155l-.964-.267q.069-.247.12-.501m-.952 2.379q.276-.436.486-.908l.914.405q-.24.54-.555 1.038zm-.964 1.205q.183-.183.35-.378l.758.653a8 8 0 0 1-.401.432z"/>

moderation/urls.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,5 @@
3232
path("tree/", views.moderation_tree, name="moderation_tree"),
3333
path("profile/<str:netid>/", views.moderation_profile, name="moderation_profile"),
3434
# --- Document History ---
35-
path(
36-
"document/<int:pk>/history/",
37-
views.document_history,
38-
name="document_history",
39-
),
35+
path("document/<int:pk>/", views.document_history, name="moderation_document"),
4036
]

0 commit comments

Comments
 (0)