show instance in breadcrumb

This commit is contained in:
rimu 2024-02-14 09:50:13 +13:00
parent 8a46d694d9
commit 2337c22afa
3 changed files with 6 additions and 5 deletions

View file

@ -46,6 +46,7 @@ def add_local():
rules_html=markdown_to_html(form.rules.data), local_only=form.local_only.data, rules_html=markdown_to_html(form.rules.data), local_only=form.local_only.data,
ap_profile_id='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data, ap_profile_id='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data,
ap_followers_url='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data + '/followers', ap_followers_url='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data + '/followers',
ap_domain=current_app.config['SERVER_NAME'],
subscriptions_count=1, instance_id=1, low_quality='memes' in form.url.data) subscriptions_count=1, instance_id=1, low_quality='memes' in form.url.data)
icon_file = request.files['icon_file'] icon_file = request.files['icon_file']
if icon_file and icon_file.filename != '': if icon_file and icon_file.filename != '':

View file

@ -17,7 +17,7 @@
<li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li> <li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li>
<li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li> <li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li>
{% endif %} {% endif %}
<li class="breadcrumb-item active">{{ community.title|shorten }}</li> <li class="breadcrumb-item active">{{ (community.title + '@' + community.ap_domain)|shorten }}</li>
</ol> </ol>
</nav> </nav>
</div> </div>
@ -36,7 +36,7 @@
<li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li> <li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li>
<li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li> <li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li>
{% endif %} {% endif %}
<li class="breadcrumb-item active">{{ community.title|shorten }}</li> <li class="breadcrumb-item active">{{ (community.title + '@' + community.ap_domain)|shorten }}</li>
</ol> </ol>
</nav> </nav>
<div class="col-2"> <div class="col-2">
@ -58,7 +58,7 @@
<li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li> <li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li>
<li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li> <li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li>
{% endif %} {% endif %}
<li class="breadcrumb-item active">{{ community.title|shorten }}</li> <li class="breadcrumb-item active">{{ (community.title + '@' + community.ap_domain)|shorten }}</li>
</ol> </ol>
</nav> </nav>
<h1 class="mt-2">{{ community.title }} <h1 class="mt-2">{{ community.title }}

View file

@ -8,7 +8,7 @@
<li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li> <li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li>
<li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li> <li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li>
{% endif %} {% endif %}
<li class="breadcrumb-item"><a href="/c/{{ post.community.link() }}">{{ post.community.title }}</a></li> <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> <li class="breadcrumb-item active">{{ post.title|shorten(15) }}</li>
</ol> </ol>
</nav> </nav>
@ -55,7 +55,7 @@
<li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li> <li class="breadcrumb-item"><a href="/topics">{{ _('Topics') }}</a></li>
<li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li> <li class="breadcrumb-item"><a href="/topic/{{ community.topic.machine_name }}" rel="nofollow">{{ community.topic.name }}</a></li>
{% endif %} {% endif %}
<li class="breadcrumb-item"><a href="/c/{{ post.community.link() }}">{{ post.community.title }}</a></li> <li class="breadcrumb-item"><a href="/c/{{ post.community.link() }}">{{ post.community.title }}@{{ post.community.ap_domain }}</a></li>
<li class="breadcrumb-item active">{{ post.title|shorten(15) }}</li> <li class="breadcrumb-item active">{{ post.title|shorten(15) }}</li>
</ol> </ol>
</nav> </nav>