diff options
author | Micah Lee <micah@micahflee.com> | 2019-09-15 16:44:24 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2019-09-15 16:44:24 -0700 |
commit | a5e01a18e2ccf31ff31184d28c90554ea2c61f70 (patch) | |
tree | fc4986694a3cd267f5c1e31438cd6696f6eb94fc /share | |
parent | ecd65f37e35fecbce5efd38173a7573feebaef0c (diff) | |
download | onionshare-a5e01a18e2ccf31ff31184d28c90554ea2c61f70.tar.gz onionshare-a5e01a18e2ccf31ff31184d28c90554ea2c61f70.zip |
Add breadcrumbs for website mode
Diffstat (limited to 'share')
-rw-r--r-- | share/static/css/style.css | 24 | ||||
-rw-r--r-- | share/templates/listing.html | 6 |
2 files changed, 30 insertions, 0 deletions
diff --git a/share/static/css/style.css b/share/static/css/style.css index bc986e57..af41b155 100644 --- a/share/static/css/style.css +++ b/share/static/css/style.css @@ -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; diff --git a/share/templates/listing.html b/share/templates/listing.html index e394f842..2f70dbf0 100644 --- a/share/templates/listing.html +++ b/share/templates/listing.html @@ -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> |