Fix links in chrome
This commit is contained in:
parent
9902f86ee0
commit
24df962e91
33
filelist.tpl
33
filelist.tpl
@ -9,16 +9,8 @@
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/components/table.min.css" rel="stylesheet" />
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/components/container.min.css" rel="stylesheet" />
|
||||
<style>
|
||||
table tbody tr {
|
||||
position: relative;
|
||||
}
|
||||
table tbody tr a {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -41,31 +33,34 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
% if path:
|
||||
<tr style="cursor: pointer">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../{{ f'?{query}' if query else '' }}"></a>
|
||||
<i class="level up icon"></i>
|
||||
../
|
||||
<a href="../{{ f'?{query}' if query else '' }}">
|
||||
<i class="level up icon"></i>
|
||||
../
|
||||
</a>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
% end
|
||||
% for item in lst:
|
||||
<tr style="cursor: pointer">
|
||||
<tr>
|
||||
% if item.isdir:
|
||||
<td>
|
||||
<a href="{{ item.name }}/{{ f'?{query}' if query else '' }}"></a>
|
||||
<i class="folder outline icon"></i>
|
||||
{{ item.name }}/
|
||||
<a href="{{ item.name }}/{{ f'?{query}' if query else '' }}">
|
||||
<i class="folder outline icon"></i>
|
||||
{{ item.name }}/
|
||||
</a>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
% else:
|
||||
<td>
|
||||
<a href="/_/{{ path }}{{ item.name }}" target="_blank"></a>
|
||||
<i class="file {{ get_file_icon(item.name) }} outline icon"></i>
|
||||
{{ item.name }} [{{ guess_type(item.name)[0] }}]
|
||||
<a href="/_/{{ path }}{{ item.name }}" target="_blank">
|
||||
<i class="file {{ get_file_icon(item.name) }} outline icon"></i>
|
||||
{{ item.name }} [{{ guess_type(item.name)[0] }}]
|
||||
</a>
|
||||
</td>
|
||||
<td><span title="{{ item.size }} byte(s)">{{ format_size(item.size) }}</span></td>
|
||||
<td>{{ format_date(item.created) }}</td>
|
||||
|
Loading…
Reference in New Issue
Block a user