Add breadcrumbs to share mode

This commit is contained in:
Micah Lee 2019-09-15 16:46:28 -07:00
parent a5e01a18e2
commit ce9a2f52d0
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 8 additions and 0 deletions

View File

@ -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),

View File

@ -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">&#8227;</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>