aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-25 19:09:54 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-25 19:51:55 +0200
commit249ee195ce52ee4a4defeb67a33ef353919d3a11 (patch)
tree24ffcfa3a852b0464fc0344cfc79bc5efb272a3e /templates
parent91d413b3a15a15fd8b710d8f5a1532d2e3de6f05 (diff)
downloadlens-249ee195ce52ee4a4defeb67a33ef353919d3a11.tar.gz
lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.tar.bz2
lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.zip
feat: Add user list UI
Fill user settings UI with actual data.
Diffstat (limited to 'templates')
-rw-r--r--templates/fs.html2
-rw-r--r--templates/settings.html47
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}}&emsp;{{end}}
{{if $.Data.ShowOwner}}{{.Info.Sys.Gid}}:{{.Info.Sys.Uid}}&emsp;{{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}}