diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/fs.html | 2 | ||||
-rw-r--r-- | templates/settings.html | 47 |
2 files changed, 15 insertions, 34 deletions
diff --git a/templates/fs.html b/templates/fs.html index 608289d..a44d78f 100644 --- a/templates/fs.html +++ b/templates/fs.html @@ -11,7 +11,7 @@ </div> {{range .Data.Page.Files}} <div class="panel-block"> - <div class="columns file-row is-gapless is-mobile"> + <div class="columns wide-column is-mono is-gapless is-mobile"> <div class="column"> {{if $.Data.ShowMode}}{{.Info.Mode}} {{end}} {{if $.Data.ShowOwner}}{{.Info.Sys.Gid}}:{{.Info.Sys.Uid}} {{end}} diff --git a/templates/settings.html b/templates/settings.html index 2aa1a80..8c08773 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -7,7 +7,7 @@ <div class="field"> <div class="control"> <label class="checkbox"> - <input type="checkbox" id="showMode" name="showMode" {{if .Data.ShowMode}}checked{{end}}> + <input type="checkbox" id="showMode" name="showMode" {{if .Data.Settings.ShowMode}}checked{{end}}> Show File Modes </label> </div> @@ -15,7 +15,7 @@ <div class="field"> <div class="control"> <label class="checkbox"> - <input type="checkbox" id="showOwner" name="showOwner" {{if .Data.ShowOwner}}checked{{end}}> + <input type="checkbox" id="showOwner" name="showOwner" {{if .Data.Settings.ShowOwner}}checked{{end}}> Show File Owner </label> </div> @@ -26,38 +26,19 @@ </form> </div> <div class="column"> - <div class="table-container"> - <table class="table"> - <thead> - <tr> - <th>Username</th> - <th>Path</th> - <th>Is Admin?</th> - <th>Action</th> - </tr> - </thead> - <tbody> - <tr> - <td>gabrielgio</td> - <td>/home/gabrielgio</td> - <td>yes</td> - <td> - <a href="#" class="button is-small">Edit</button> - <a href="#" class="button is-small is-danger">Delete</button> - </td> - </tr> - <tr> - <td>beatriz</td> - <td>/home/beatriz</td> - <td>no</td> - <td> - <a href="#" class="button is-small">Edit</button> - <a href="#" class="button is-small is-danger">Delete</button> - </td> - </tr> - </tbody> - </table> + {{range .Data.Users}} + <div class="panel-block"> + <div class="columns wide-column is-gapless is-mobile"> + <div class="column"> + {{.Username}} + </div> + <div class="column"> + {{.Path}} + </div> + <div class="column has-text-right"><a href="#">Edit</a> / <a href="#" class="is-danger">Delete</a></div> + </div> </div> + {{end}} </div> </div> {{end}} |