diff options
Diffstat (limited to 'templates/gititemrefs.qtpl')
-rw-r--r-- | templates/gititemrefs.qtpl | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/templates/gititemrefs.qtpl b/templates/gititemrefs.qtpl index 56f6c2b..47a69e3 100644 --- a/templates/gititemrefs.qtpl +++ b/templates/gititemrefs.qtpl @@ -10,13 +10,12 @@ type GitItemRefsPage struct { {% func (g *GitItemRefsPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %} -{% func (g *GitItemRefsPage) GitContent() %} +{% func (g *GitItemRefsPage) GitContent(name, ref string) %} <div class="row"> - <div class="col-xxl"> - <h4>Tags</h4> - <div class="logs"> + <div class="col-md-8"> + <div class="event-list"> {% for _, t := range g.Tags %} - <div class="row"> + <div class="row event"> <div class="col-xxl-2"> {%s TimeFormat(t.Tagger.When) %} </div> @@ -30,14 +29,19 @@ type GitItemRefsPage struct { {% endfor %} </div> </div> - <div class="col-xxl"> - <h4>Branches</h4> - <div class="logs"> + <div class="col-md-4"> + <div class="event-list"> {% for _, b := range g.Branches %} - <div class="row"> - <div class="col-xxl"> + <div class="row event"> + <div class="col-4"> {%s b.Name().Short() %} </div> + <div class="col-8"> + <div class="float-end"> + <a href="/{%s name %}/tree/{%s b.Name().Short() %}">tree</a> + <a href="/{%s name %}/log/{%s b.Name().Short() %}">log</a> + </div> + </div> </div> {% endfor %} </div> |