aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-12-12 14:26:02 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-12-12 14:26:02 +0100
commit1059bc71871c14b813b0bb27b4601e2c2ac65acd (patch)
treea6a7dd636165c55021e878acb936697824144ef8 /templates/gitlist.qtpl
parentdcc9a54fc8a1c52bb8cded28c4f445248bc597a6 (diff)
downloadcerrado-1059bc71871c14b813b0bb27b4601e2c2ac65acd.tar.gz
cerrado-1059bc71871c14b813b0bb27b4601e2c2ac65acd.tar.bz2
cerrado-1059bc71871c14b813b0bb27b4601e2c2ac65acd.zip
feat: Add private label to the UI
Now private repository will have a private label on the list.
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r--templates/gitlist.qtpl11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl
index fa47008..fc047eb 100644
--- a/templates/gitlist.qtpl
+++ b/templates/gitlist.qtpl
@@ -18,9 +18,14 @@ type GitListPage struct {
<div class="event-list">
{% for _, r := range p.Respositories %}
<div class="event">
- <h4>
- <a href="/{%s r.Name %}/">{%s r.Name %}</a>
- </h4>
+ <div class="row">
+ <div class="col-md">
+ <a href="/{%s r.Name %}/">{%s r.Name %}</a>
+ </div>
+ <div class="col-md text-md-end">
+ <small>{% if !r.Public %}private{% endif %}</small>
+ </div>
+ </div>
</hr>
<p>{%s r.Description %}</p>
<p>