2024-10-05 11:55:55 +02:00
|
|
|
from django.urls.base import reverse
|
|
|
|
|
|
|
|
|
|
|
|
def url_page(request, rel_path):
|
2024-10-05 16:22:40 +02:00
|
|
|
return reverse('page-page', kwargs={'rel_path': rel_path})
|
2024-10-05 11:55:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
def url_helpview(request, page):
|
2024-10-05 16:22:40 +02:00
|
|
|
return reverse('page-helpview', kwargs={'page': page})
|
|
|
|
|
|
|
|
|
|
|
|
def url_edit(request, rel_path):
|
|
|
|
return reverse('page-edit', kwargs={'rel_path': rel_path})
|
2024-10-09 09:57:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
def get_search_query(request):
|
|
|
|
return request.GET.get('q')
|