mirror of
https://github.com/S2-/gitlit
synced 2025-08-02 12:20:05 +02:00
style table
This commit is contained in:
@@ -10,39 +10,42 @@ gitlit.templates = {
|
|||||||
`),
|
`),
|
||||||
files: ejs.compile(`
|
files: ejs.compile(`
|
||||||
<table class="table table-striped sortable js-filestable">
|
<table class="table table-striped sortable js-filestable">
|
||||||
<tr>
|
<thead class="thead-light">
|
||||||
<th>file</th>
|
<tr>
|
||||||
<th>status</th>
|
<th>file</th>
|
||||||
<th class="sorttable_nosort">action</th>
|
<th>status</th>
|
||||||
</tr>
|
<th class="sorttable_nosort">action</th>
|
||||||
|
</tr>
|
||||||
<% files.forEach((file) => { %>
|
<thead>
|
||||||
<tr>
|
|
||||||
<td><%= file.file %></td>
|
|
||||||
<td><%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %></td>
|
|
||||||
<td>
|
|
||||||
<a class="btn btn-primary js-lock"
|
|
||||||
href="javascript:///"
|
|
||||||
data-file="<%= file.file %>"
|
|
||||||
style="<%= file.lockedBy ? 'display: none;' : '' %>"
|
|
||||||
>
|
|
||||||
Lock
|
|
||||||
</a>
|
|
||||||
<a class="btn btn-danger js-unlock"
|
|
||||||
href="javascript:///"
|
|
||||||
data-file="<%= file.file %>"
|
|
||||||
style="<%= file.lockedBy ? '' : 'display: none;' %>"
|
|
||||||
>
|
|
||||||
Unlock
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<% }); %>
|
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<% files.forEach((file) => { %>
|
||||||
|
<tr>
|
||||||
|
<td><%= file.file %></td>
|
||||||
|
<td><%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %></td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-primary btn-sm js-lock"
|
||||||
|
href="javascript:///"
|
||||||
|
data-file="<%= file.file %>"
|
||||||
|
style="<%= file.lockedBy ? 'display: none;' : '' %>"
|
||||||
|
>
|
||||||
|
Lock
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger btn-sm js-unlock"
|
||||||
|
href="javascript:///"
|
||||||
|
data-file="<%= file.file %>"
|
||||||
|
style="<%= file.lockedBy ? '' : 'display: none;' %>"
|
||||||
|
>
|
||||||
|
Unlock
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% }); %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<a class="btn btn-secondary js-refresh" href="javascript:///">
|
<a class="btn btn-secondary btn-sm js-refresh" href="javascript:///">
|
||||||
Refresh
|
Refresh
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
BIN
screenshot/main.png
Normal file
BIN
screenshot/main.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Reference in New Issue
Block a user