1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 12:20:05 +02:00

show open an other folder button if there are no tracked files

This commit is contained in:
s2
2019-06-20 10:59:46 +02:00
parent 6431183092
commit e994b98dcc
3 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,4 @@
<div class="alert alert-danger">
<%= repoDir %> is not a git lfs repo.
</div>
<div class="text-center">
<a class="btn btn-primary js-open-folder" href="javascript:///">Open an other folder</a>
<input type="file" style="display: none" class="js-open-folder-input" webkitdirectory />
</div>
<%- ejs.rr('templates/openFolder.ejs') %>

View File

@@ -1,3 +1,4 @@
<div class="alert alert-info">
no files tracked with lfs here.
</div>
<%- ejs.rr('templates/openFolder.ejs') %>

View File

@@ -0,0 +1,4 @@
<div class="text-center">
<a class="btn btn-primary js-open-folder" href="javascript:///">Open an other folder</a>
<input type="file" style="display: none" class="js-open-folder-input" webkitdirectory />
</div>