Changeset - c63bccaacc61
[Not reviewed]
0 2 1
Ben Sturmfels (bsturmfels) - 3 months ago 2024-02-02 01:48:48
ben@sturm.com.au
usethesource: Add placeholder for CCIRT process
3 files changed with 15 insertions and 0 deletions:
0 comments (0 inline, 0 general)
conservancy/usethesource/templates/usethesource/ccirt_process.html
Show inline comments
 
new file 100644
 
{% extends "usethesource/base.html" %}
 

	
 
{% block title %}Use the Source - Software Freedom Conservancy{% endblock %}
 

	
 
{% block content %}
 
  {{ block.super }}
 

	
 
  <h1>CCIRT Process</h1>
 

	
 
{% endblock content %}
conservancy/usethesource/urls.py
Show inline comments
...
 
@@ -9,7 +9,8 @@ urlpatterns = [
 
    path('download/<slug:slug>/<download_type>/', views.download_page, name='download'),
 
    path('add-comment/<slug:slug>/', views.create_comment, name='add_comment'),
 
    path('edit-comment/<int:comment_id>/', views.edit_comment, name='edit_comment'),
 
    path('comment/<int:comment_id>/<show_add>/', views.view_comment, name='view_comment'),
 
    path('delete-comment/<int:comment_id>/<show_add>/', views.delete_comment, name='delete_comment'),
 
    path('add-button/<slug:slug>/', views.add_button, name='add_button'),
 
    path('ccirt-process/', views.ccirt_process, name='ccirt_process'),
 
]
conservancy/usethesource/views.py
Show inline comments
...
 
@@ -77,6 +77,10 @@ def delete_comment(request, comment_id, show_add):
 

	
 

	
 
@staff_member_required
 
def add_button(request, slug):
 
    candidate = get_object_or_404(Candidate, slug=slug)
 
    return render(request, 'usethesource/add_comment_button_partial.html', {'candidate': candidate})
 

	
 

	
 
def ccirt_process(request):
 
    return render(request, 'usethesource/ccirt_process.html', {})
0 comments (0 inline, 0 general)