Skip to content

Commit

Permalink
[QOLSVC-3914] reuse parent header block for not-logged-in content
Browse files Browse the repository at this point in the history
- Replacing the block entirely makes us less forward-compatible
  • Loading branch information
ThrawnCA committed Dec 6, 2023
1 parent 9639550 commit cc40ba6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ckanext/data_qld/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
{% else %}
<nav class="account not-authed">
<ul class="unstyled">
{% block header_account_notlogged %}
<li>{% link_for _('Log in'), named_route='user.login' %}</li>
{% if h.check_access('user_create') %}
<li>{% link_for _('Register'), named_route='user.register', class_='sub' %}</li>
{% endif %} {% endblock %}
{% block header_account_notlogged %}{{ super() }}{% endblock %}
{% if h.is_datarequests_enabled() %}
<li><a href="{{ h.url_for('datarequest.index') }}">Request data</a></li>
{% endif %}
Expand Down

0 comments on commit cc40ba6

Please sign in to comment.