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