mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Add breadcrumbs to share mode
This commit is contained in:
parent
a5e01a18e2
commit
ce9a2f52d0
@ -174,6 +174,8 @@ class ShareModeWeb(SendBaseModeWeb):
|
|||||||
file_info=self.file_info,
|
file_info=self.file_info,
|
||||||
files=files,
|
files=files,
|
||||||
dirs=dirs,
|
dirs=dirs,
|
||||||
|
breadcrumbs=breadcrumbs,
|
||||||
|
breadcrumbs_leaf=breadcrumbs_leaf,
|
||||||
filename=os.path.basename(self.download_filename),
|
filename=os.path.basename(self.download_filename),
|
||||||
filesize=self.filesize,
|
filesize=self.filesize,
|
||||||
filesize_human=self.common.human_readable_filesize(self.download_filesize),
|
filesize_human=self.common.human_readable_filesize(self.download_filesize),
|
||||||
|
@ -22,6 +22,12 @@
|
|||||||
<h1>OnionShare</h1>
|
<h1>OnionShare</h1>
|
||||||
</header>
|
</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">
|
<table class="file-list" id="file-list">
|
||||||
<tr>
|
<tr>
|
||||||
<th id="filename-header">Filename</th>
|
<th id="filename-header">Filename</th>
|
||||||
|
Loading…
Reference in New Issue
Block a user