Skip to content

Commit

Permalink
Link to Coredump Handbuch (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn authored Jan 22, 2025
1 parent 06df9e9 commit 82dd519
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions interna/front/templates/front/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="{% ifactivetab 'navigation' 'home' %}active{% endifactivetab %}"><a href="{% url 'front:home' %}">Home</a></li>
<li class="{% ifactivetab 'navigation' 'handbuch' %}active{% endifactivetab %}"><a href="{% url 'front:handbuch' %}">Handbuch</a></li>
{% if user.is_staff %}<li class="{% ifactivetab 'navigation' 'members' %}active{% endifactivetab %}"><a href="{% url 'front:members' %}">Mitglieder</a></li>{% endif %}
<li class="{% ifactivetab 'navigation' 'inventory' %}active{% endifactivetab %}"><a href="{% url 'inventory:index' %}">Inventar</a></li>
<li class="{% ifactivetab 'navigation' 'crowdfund' %}active{% endifactivetab %}"><a href="{% url 'crowdfund:index' %}">Crowdfund</a></li>
Expand Down
28 changes: 28 additions & 0 deletions interna/front/templates/front/handbuch.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% extends 'front/base.html' %}
{% load tabs %}

{% block bodyclass %}handbuch{% endblock %}

{% block navigation %}
{% activetab 'navigation' 'handbuch' %}
{{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ol class="breadcrumb">
<li class="breadcrumb-item active">Handbuch</li>
</ol>
{% endblock %}

{% block content %}
<h1>Handbuch</h1>

<p>Das Coredump-Handbuch findest du unter folgender URL:
<a href="https://coredump-ch.github.io/handbuch/">https://coredump-ch.github.io/handbuch/</a>.</p>

<p>Ergänzungen, Verbesserungen und Erweiterungen des Handbuchs sind herzlich willkommen!
Details dazu findest du
<a href="https://coredump-ch.github.io/handbuch/handbuch.html">hier</a>.</p>

<p><a href="https://coredump-ch.github.io/handbuch/" class="btn btn-primary">Handbuch öffnen</a></p>
{% endblock %}
1 change: 1 addition & 0 deletions interna/front/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
path('', views.HomeView.as_view(), name='home'),
path('auth/login/', LoginView.as_view(template_name='front/login.html'), name='login'),
path('auth/logout/', views.LogoutView.as_view(), name='logout'),
path('handbuch/', views.HandbuchView.as_view(), name='handbuch'),
path('members/', views.MembersView.as_view(), name='members'),
path('members/emails/', views.MemberEmailsView.as_view(), name='member_emails'),
path('wishlist/', TemplateView.as_view(template_name='front/wishlist.html'), name='wishlist'),
Expand Down
5 changes: 5 additions & 0 deletions interna/front/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def get(self, request, *args, **kwargs):
return redirect('front:home')


class HandbuchView(TemplateView):
"""Show Coredump Handbuch."""
template_name = 'front/handbuch.html'


class MembersView(StaffRequiredMixin, TemplateView):
"""List members."""
template_name = 'front/members.html'
Expand Down

0 comments on commit 82dd519

Please sign in to comment.