mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
separate out breadcrumb_nav
This commit is contained in:
parent
b3bb16cce4
commit
5780e9b05e
3 changed files with 10 additions and 17 deletions
8
app/templates/post/_breadcrumb_nav.html
Normal file
8
app/templates/post/_breadcrumb_nav.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
{% for breadcrumb in breadcrumbs -%}
|
||||||
|
<li class="breadcrumb-item">{% if breadcrumb.url -%}<a href="{{ breadcrumb.url }}">{% endif -%}{{ breadcrumb.text }}{% if breadcrumb.url -%}</a>{% endif -%}</li>
|
||||||
|
{% endfor -%}
|
||||||
|
<li class="breadcrumb-item"><a href="/c/{{ post.community.link() }}" title="{{ post.community.ap_domain }}">{{ post.community.title }}@{{ post.community.ap_domain }}</a></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
|
@ -1,13 +1,6 @@
|
||||||
<div class="row position-relative post_full">
|
<div class="row position-relative post_full">
|
||||||
<div class="col post_col {% if post.type == POST_TYPE_IMAGE %}post_col post_type_image{% else %}post_type_normal{% endif %}">
|
<div class="col post_col {% if post.type == POST_TYPE_IMAGE %}post_col post_type_image{% else %}post_type_normal{% endif %}">
|
||||||
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
|
{% include "post/_breadcrumb_nav.html" %}
|
||||||
<ol class="breadcrumb">
|
|
||||||
{% for breadcrumb in breadcrumbs -%}
|
|
||||||
<li class="breadcrumb-item">{% if breadcrumb.url -%}<a href="{{ breadcrumb.url }}">{% endif -%}{{ breadcrumb.text }}{% if breadcrumb.url -%}</a>{% endif -%}</li>
|
|
||||||
{% endfor -%}
|
|
||||||
<li class="breadcrumb-item"><a href="/c/{{ post.community.link() }}" title="{{ post.community.ap_domain }}">{{ post.community.title }}@{{ post.community.ap_domain }}</a></li>
|
|
||||||
</ol>
|
|
||||||
</nav>
|
|
||||||
<h1 class="mt-2 post_title" {% if post.language_id and post.language.code != 'en' %}lang="{{ post.language.code }}"{% endif %}>{{ post.title }}
|
<h1 class="mt-2 post_title" {% if post.language_id and post.language.code != 'en' %}lang="{{ post.language.code }}"{% endif %}>{{ post.title }}
|
||||||
{% if current_user.is_authenticated -%}
|
{% if current_user.is_authenticated -%}
|
||||||
{% include 'post/_post_notification_toggle.html' -%}
|
{% include 'post/_post_notification_toggle.html' -%}
|
||||||
|
|
|
@ -8,15 +8,7 @@
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-md-8 position-relative main_pane">
|
<div class="col-12 col-md-8 position-relative main_pane">
|
||||||
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
|
{% include "post/_breadcrumb_nav.html" %}
|
||||||
<ol class="breadcrumb">
|
|
||||||
{% for breadcrumb in breadcrumbs -%}
|
|
||||||
<li class="breadcrumb-item">{% if breadcrumb.url -%}<a href="{{ breadcrumb.url }}">{% endif -%}{{ breadcrumb.text }}{% if breadcrumb.url -%}</a>{% endif -%}</li>
|
|
||||||
{% endfor -%}
|
|
||||||
<li class="breadcrumb-item"><a href="/c/{{ post.community.link() }}" title="{{ post.community.ap_domain }}">{{ post.community.title }}@{{ post.community.ap_domain }}</a></li>
|
|
||||||
<li class="breadcrumb-item active">{{ post.title|shorten(15) }}</li>
|
|
||||||
</ol>
|
|
||||||
</nav>
|
|
||||||
<h1 class="mt-2">{{ _('Cross-post %(post_name)s', post_name=post.title) }}</h1>
|
<h1 class="mt-2">{{ _('Cross-post %(post_name)s', post_name=post.title) }}</h1>
|
||||||
{{ render_form(form) }}
|
{{ render_form(form) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue