mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-21 14:31:07 -05:00
Add comment and reply functionality with preview and notification templates
This commit is contained in:
@@ -1,22 +1,50 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
from . import views, htmx_views
|
||||
|
||||
app_name = 'history'
|
||||
app_name = 'history_tracking'
|
||||
|
||||
urlpatterns = [
|
||||
# Main VCS interface
|
||||
path('vcs/', views.VersionControlPanel.as_view(), name='vcs-panel'),
|
||||
# Main page views
|
||||
path('compare/',
|
||||
views.version_comparison,
|
||||
name='version_comparison'
|
||||
),
|
||||
path('approval-status/<int:changeset_id>/',
|
||||
views.approval_status,
|
||||
name='approval_status'
|
||||
),
|
||||
path('submit-approval/<int:changeset_id>/',
|
||||
views.submit_for_approval,
|
||||
name='submit_for_approval'
|
||||
),
|
||||
|
||||
# Branch operations
|
||||
path('vcs/branches/', views.BranchListView.as_view(), name='branch-list'),
|
||||
path('vcs/branches/create/', views.BranchCreateView.as_view(), name='branch-create'),
|
||||
|
||||
# History views
|
||||
path('vcs/history/', views.HistoryView.as_view(), name='history-view'),
|
||||
|
||||
# Merge operations
|
||||
path('vcs/merge/', views.MergeView.as_view(), name='merge-view'),
|
||||
|
||||
# Tag operations
|
||||
path('vcs/tags/create/', views.TagCreateView.as_view(), name='tag-create'),
|
||||
# HTMX endpoints
|
||||
path('htmx/comments/get/',
|
||||
htmx_views.get_comments,
|
||||
name='get_comments'
|
||||
),
|
||||
path('htmx/comments/preview/',
|
||||
htmx_views.preview_comment,
|
||||
name='preview_comment'
|
||||
),
|
||||
path('htmx/comments/add/',
|
||||
htmx_views.add_comment,
|
||||
name='add_comment'
|
||||
),
|
||||
path('htmx/approve/<int:changeset_id>/',
|
||||
htmx_views.approve_changes,
|
||||
name='approve_changes'
|
||||
),
|
||||
path('htmx/notifications/<int:changeset_id>/',
|
||||
htmx_views.approval_notifications,
|
||||
name='approval_notifications'
|
||||
),
|
||||
path('htmx/comments/replies/<int:comment_id>/',
|
||||
htmx_views.get_replies,
|
||||
name='get_replies'
|
||||
),
|
||||
path('htmx/comments/reply-form/',
|
||||
htmx_views.reply_form,
|
||||
name='reply_form'
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user