Skip to content

Commit

Permalink
module-detail: remove module navigation and change heading tag to h1
Browse files Browse the repository at this point in the history
  • Loading branch information
vellip committed Jan 14, 2025
1 parent 6cbce70 commit c31091d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
5 changes: 5 additions & 0 deletions changelog/8601.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Removed
- Module-Detail navigation

### Changed
- made title for module detail page h1 instead of h2
26 changes: 2 additions & 24 deletions meinberlin/templates/a4modules/module_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,15 @@

{% block content %}
<div id="layout-grid__area--herounit">
{% if module.is_in_module_cluster %}
<div class="u-align-right u-spacer-bottom-double">
{% if module.previous_module_in_cluster %}
<a class="button button--light" href="{% url 'module-detail' module.previous_module_in_cluster.slug %}">
<i class="fa fa-chevron-left u-md-up-display-none"></i>
<span class="u-md-down-display-none">{% translate 'Previous' %}</span>
</a>
{% endif %}
<span class="u-spacer-left u-spacer-right">{{ module.readable_index_in_cluster }}
{% translate 'of' %}
{{ module.module_cluster|length }}</span>
{% if module.next_module_in_cluster %}
<a class="button button--light" href="{% url 'module-detail' module.next_module_in_cluster.slug %}">
<i class="fa fa-chevron-right u-md-up-display-none"></i>
<span class="u-md-down-display-none">{% translate 'Next' %}</span>
</a>
{% endif %}
</div>
{% endif %}
<div class="modul-video">
<div class="mb-2">
<a class="link link--back" href="{% url 'project-detail' project.slug %}">{% translate 'Back to the project' %}</a>
</div>
<h2 class="title">
<h1>
{{ module.name }}
{% for phase in module.phases %}
{% if phase == module.active_phase and live_stream %}
<span class="pill pill--live">{% translate 'Live' context 'video' %}</span>
{% endif %}
{% endfor %}
</h2>
</h1>
<p>{{ module.description }}</p>
<div class="video-container">
{% if live_stream %}
Expand Down

0 comments on commit c31091d

Please sign in to comment.