WikiNote3/wikinote/jinja2/tag_view.html

45 lines
1.4 KiB
HTML

{#
WikiNote3
Copyright © 2020 Lee Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% extends 'base.html' %}
{% block title %}Tag: {{ name }} • WikiNote{% endblock %}
{% block content %}
<nav class="breadcrumbs">
<a href="/"><img src="{{ url_for('static', filename='img/icons/home.svg') }}"></a>
&rsaquo;
<a href="{{ url_for('tags_list') }}">Tags</a>
&rsaquo;
</nav>
<h1>{{ name }}</h1>
<ul>
{% for page in pages %}
<li>
{% if page.kind == 'page' %}
<a href="{{ url_for('page_view', path=page.path) }}">{{ page.path.replace('/', ' › ') }}</a>
{% elif page.kind == 'image' %}
<a href="{{ url_for('image_about', name=page.path) }}"><em>Image</em> &rsaquo; {{ page.path.replace('/', ' › ') }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endblock %}