Skip to content

Commit

Permalink
breadcrumbs: style breadcrumbs in profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Jun 18, 2020
1 parent b1d56d3 commit 1b6851d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.ui.breadcrumbs.segment {
border: none;
box-shadow: none;
}
30 changes: 14 additions & 16 deletions invenio_theme/templates/semantic-ui/invenio_theme/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@
under the terms of the MIT License; see LICENSE file for more details.
#}
{%- if breadcrumbs|length > 1 %}
<div class="ui grid container">
<div class="row">
<div class="ui large breadcrumb" itemprop="breadcrumb">
{%- for breadcrumb in breadcrumbs %}
{%- if loop.last %}
<a class="active section">
{{ breadcrumb.text|safe }}
</a>
{%- else %}
<a href="{{ breadcrumb.url }}" class="section">
{{ breadcrumb.text|safe }}
</a>
<span class="divider">/</span>
{%- endif %}
{%- endfor %}
</div>
<div class="ui breadcrumbs segment secondary container">
<div class="ui large breadcrumb" itemprop="breadcrumb">
{%- for breadcrumb in breadcrumbs %}
{%- if loop.last %}
<a class="active section">
{{ breadcrumb.text|safe }}
</a>
{%- else %}
<a href="{{ breadcrumb.url }}" class="section">
{{ breadcrumb.text|safe }}
</a>
<span class="divider">/</span>
{%- endif %}
{%- endfor %}
</div>
</div>
{%- endif %}

0 comments on commit 1b6851d

Please sign in to comment.