Ver a proveniência

[minor] indentation

version-14
Faris Ansari há 9 anos
ascendente
cometimento
471e1aab8e
3 ficheiros alterados com 40 adições e 6 eliminações
  1. +17
    -0
      frappe/templates/includes/navbar/dropdown_items.html
  2. +17
    -0
      frappe/templates/includes/navbar/dropdown_login.html
  3. +6
    -6
      frappe/templates/includes/navbar/navbar_items.html

+ 17
- 0
frappe/templates/includes/navbar/dropdown_items.html Ver ficheiro

@@ -0,0 +1,17 @@
<ul class="dropdown-menu dropdown-menu-right">
{% if top_bar_items -%}
{%- for page in top_bar_items -%}
{% if not page.parent_label and not page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %}
{%- endif %}
{%- for page in top_bar_items -%}
{% if not page.parent_label and page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %}
{% block navbar_right_extension %}{% endblock %}
<li class="divider"></li>
{% include "templates/includes/navbar/dropdown_login.html" %}
</ul>

+ 17
- 0
frappe/templates/includes/navbar/dropdown_login.html Ver ficheiro

@@ -0,0 +1,17 @@
<!-- post login tools -->
{% if not only_static %}
{%- for child in post_login -%}
<li {% if child.label %}data-label="{{ child.label }}" {% endif %}
class="{% if child.class %} {{ child.class }} {% endif %} logged-in" >
{%- if child.url -%}
<a href="{{ child.url | abs_url }}" {{ child.target or '' }}
rel="nofollow">
{{ child.label }}
</a>
{%- endif -%}
</li>
{%- endfor -%}
{% if not hide_login %}
<li class="btn-login-area"><a href="/login">{{ _("Login") }}</a></li>
{% endif %}
{% endif %}

+ 6
- 6
frappe/templates/includes/navbar/navbar_items.html Ver ficheiro

@@ -1,17 +1,17 @@
{% if top_bar_items -%} {% if top_bar_items -%}
<ul class="nav navbar-nav navbar-left"> <ul class="nav navbar-nav navbar-left">
{%- for page in top_bar_items -%} {%- for page in top_bar_items -%}
{% if not page.parent_label and not page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{% if not page.parent_label and not page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %} {%- endfor %}
</ul> </ul>
{%- endif %} {%- endif %}
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
{%- for page in top_bar_items -%} {%- for page in top_bar_items -%}
{% if not page.parent_label and page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{% if not page.parent_label and page.right -%}
{% include "templates/includes/navbar/navbar_link.html" %}
{%- endif -%}
{%- endfor %} {%- endfor %}
{% block navbar_right_extension %}{% endblock %} {% block navbar_right_extension %}{% endblock %}
{% include "templates/includes/navbar/navbar_login.html" %} {% include "templates/includes/navbar/navbar_login.html" %}

Carregando…
Cancelar
Guardar