mirror of
https://github.com/S2-/gitlit
synced 2025-08-02 20:30:05 +02:00
remove old templates
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
<script type="text/javascript" src="../node_modules/ejs/ejs.js"></script>
|
<script type="text/javascript" src="../node_modules/ejs/ejs.js"></script>
|
||||||
<script type="text/javascript" src="../node_modules/ejs-render-remote/ejs-render-remote.js"></script>
|
<script type="text/javascript" src="../node_modules/ejs-render-remote/ejs-render-remote.js"></script>
|
||||||
<script type="text/javascript" src="js/templates.js"></script>
|
|
||||||
<script type="text/javascript" src="js/sorttable.js"></script>
|
<script type="text/javascript" src="js/sorttable.js"></script>
|
||||||
|
|
||||||
<link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
|
<link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
|
||||||
|
@@ -1,63 +0,0 @@
|
|||||||
window.gitlit = window.gitlit || {};
|
|
||||||
gitlit.templates = {
|
|
||||||
main: ejs.compile(`
|
|
||||||
<div class="alert alert-success js-repo-dir" style="display:none;"></div>
|
|
||||||
<div class="files-table-container">
|
|
||||||
<div class="alert alert-primary" role="alert">
|
|
||||||
Getting file list...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`),
|
|
||||||
files: ejs.compile(`
|
|
||||||
<table class="table table-striped sortable js-filestable">
|
|
||||||
<thead class="thead-light">
|
|
||||||
<tr>
|
|
||||||
<th>file</th>
|
|
||||||
<th>status</th>
|
|
||||||
<th class="sorttable_nosort">action</th>
|
|
||||||
</tr>
|
|
||||||
<thead>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="float-right">
|
|
||||||
<a class="btn btn-secondary btn-sm js-refresh" href="javascript:///">
|
|
||||||
Refresh
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
`),
|
|
||||||
isNoGitLfsRepo: ejs.compile(`
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<%= repoDir %> is not a git lfs repo.
|
|
||||||
</div>
|
|
||||||
`),
|
|
||||||
noGitLfsFiles: ejs.compile(`
|
|
||||||
<div class="alert alert-info">
|
|
||||||
no files tracked with lfs here.
|
|
||||||
</div>
|
|
||||||
`)
|
|
||||||
};
|
|
Reference in New Issue
Block a user