mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-22 06:19:30 -04:00
Add breadcrumbs for website mode
This commit is contained in:
parent
52d72642d6
commit
cccbe35276
4 changed files with 38 additions and 2 deletions
|
@ -74,6 +74,30 @@ a.button:visited {
|
|||
bottom: 10px;
|
||||
}
|
||||
|
||||
ul.breadcrumbs {
|
||||
display: block;
|
||||
list-style: none;
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.breadcrumbs li {
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 5px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
ul.breadcrumbs li span.sep {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
|
||||
color: #666666;
|
||||
border-bottom: 1px solid #666666;
|
||||
}
|
||||
|
||||
table.file-list {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
|
|
|
@ -12,6 +12,12 @@
|
|||
<h1>OnionShare</h1>
|
||||
</header>
|
||||
|
||||
{% if breadcrumbs %}
|
||||
<ul class="breadcrumbs">
|
||||
{% for breadcrumb in breadcrumbs %}<li><a href="{{ breadcrumb[1] }}">{{ breadcrumb[0] }}</a> <span class="sep">‣</span></li>{% endfor %}<li>{{ breadcrumbs_leaf }}</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<table class="file-list" id="file-list">
|
||||
<tr>
|
||||
<th id="filename-header">Filename</th>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue