mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
添加path_section
This commit is contained in:
1 parent
53a6dbeb1a
commit
a2600d5cc4
8 files changed
+67
-39
No files matched your search
@@ -1,11 +1,6 @@
|
||||
<div class="header{% if no_path_section %} mini{% endif %}">
|
||||
<div class="header__content"><div class="row"><div class="columns">
|
||||
{% if domain_id == vj4.model.builtin.DOMAIN_ID_SYSTEM %}
|
||||
<a class="header__logo" href="{{ reverse_url('domain_main', domain_id=vj4.model.builtin.DOMAIN_ID_SYSTEM) }}" target="_self"></a>
|
||||
{% else %}
|
||||
<div class="header__logo--domain"><a href="{{ reverse_url('domain_main') }}" target="_self">{{ domain['name'] }}</a></div>
|
||||
<div class="header__logo--system"><a href="{{ reverse_url('domain_main', domain_id=vj4.model.builtin.DOMAIN_ID_SYSTEM) }}" target="_blank">Powered by Vijos</a></div>
|
||||
{% endif %}
|
||||
<a class="header__logo" href="/" target="_self"></a>
|
||||
</div></div></div>
|
||||
{% include "partials/path.html" %}
|
||||
</div>
|
||||
@@ -4,11 +4,11 @@
|
||||
<div class="media">
|
||||
<div class="media__body">
|
||||
<div class="location-path">
|
||||
{% for c in path_components %}
|
||||
/ {% if c[1] %}<a href="{{ c[1] }}">{{ c[0] }}</a>{% endif %}
|
||||
{% for c in path %}
|
||||
/ {% if c[1] %}<a href="{{ c[1] }}">{{ c[0] if c[2] else _(c[0]) }}</a>{% endif %}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
<h1 class="location-current" data-emoji-enabled>{{ path_components[-1][0] }}</h1>
|
||||
<h1 class="location-current" data-emoji-enabled>{{ path[path.length - 1][0] if path[path.length - 1][0] else _(path[path.length - 1][0]) }}</h1>
|
||||
</div>
|
||||
<div class="media__right">
|
||||
{% include "partials/hamburger.html" %}
|
||||
|
||||
Reference in new issue
Block a user