mirror of
https://github.com/Jackzmc/storage.git
synced 2025-05-12 03:53:14 +00:00
Merge server folder to root
This commit is contained in:
parent
b89a0ab191
commit
6ed02cef31
4417 changed files with 25524 additions and 1 deletions
82
templates/libraries.html.hbs
Normal file
82
templates/libraries.html.hbs
Normal file
|
@ -0,0 +1,82 @@
|
|||
{{#> layouts/main }}
|
||||
<div class="">
|
||||
<nav class="breadcrumb is-inline-block is-size-5 mb-0" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a class="has-text-black" href="/library/{{library.id}}/{{library.name}}/">{{ library.name }}</a></li>
|
||||
{{#each path_segments}}
|
||||
<li>
|
||||
<a class="has-text-black" href="/library/{{../library.id}}/{{../library.name}}/{{path}}" aria-current="page"> {{ segment }} </a>
|
||||
</li>
|
||||
{{/each}}
|
||||
<div class="button is-small">
|
||||
+
|
||||
</div>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="is-pulled-right is-inline-block">
|
||||
<div class="buttons">
|
||||
<div class="button is-small">
|
||||
Display
|
||||
</div>
|
||||
<div class="button is-small">
|
||||
Sort
|
||||
</div>
|
||||
<div class="button is-small">
|
||||
Info
|
||||
</div>
|
||||
<div class="button is-small">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="my-2">
|
||||
<table class="table is-fullwidth">
|
||||
<thead>
|
||||
<tr class="file-list">
|
||||
<td style="width:0"><input type="checkbox" /></td>
|
||||
<td style="width:0"></td>
|
||||
<td style="width:0"></td>
|
||||
<td>Name </td>
|
||||
<td>Size </td>
|
||||
<td>Last Updated </td>
|
||||
<td>Owner </td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each files }}
|
||||
<tr class="file-list">
|
||||
<td><input type="checkbox" /></td>
|
||||
<td>
|
||||
<a class="has-text-black">
|
||||
<span class="icon is-large">
|
||||
<i class="fas fa-star fa-xl"></i>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="filecell-icon">
|
||||
<span class="icon is-large">
|
||||
{{#if (eq type "folder") }}
|
||||
<i class="fas fa-folder fa-xl"></i>
|
||||
{{/if}}
|
||||
{{#if (eq type "file") }}
|
||||
<i class="fas fa-file fa-xl"></i>
|
||||
{{/if}}
|
||||
</span>
|
||||
</td>
|
||||
<td class="filecell-label pl-4">
|
||||
{{#if (eq type "folder")}}
|
||||
<a href="{{../parent}}{{ path }}">{{ path }}/</a>
|
||||
{{/if}}
|
||||
{{#if (eq type "file") }}
|
||||
<a target="_blank" href="/file/{{../library.id}}/{{../parent}}{{ path }}">{{ path }}</a>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>{{ bytes size }}</td>
|
||||
<td>{{ updated }}</td>
|
||||
<td>Me</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{/layouts/main}}
|
Loading…
Add table
Add a link
Reference in a new issue