diff options
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r-- | templates/gitlist.qtpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index 4f25fc6..bb07e7f 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -1,3 +1,4 @@ +{% import "git.gabrielgio.me/cerrado/pkg/humanize" %} {% import "git.gabrielgio.me/cerrado/pkg/service" %} {% import "context" %} {% import "strings" %} @@ -39,10 +40,11 @@ type GitListPage struct { </div> </hr> <p>{%s r.Description %}</p> - <p style="background: #dadada"> - <a title="{%s r.LastCommit.Hash.String() %}" href="/{%s r.Name %}/commit/{%s r.LastCommit.Hash.String() %}/">{%s r.LastCommit.Hash.String()[0:8] %}</a> - - <a title="{%s r.LastCommit.Author.Email %}">{%s r.LastCommit.Author.Name %}</a> - - {%s firstLine(r.LastCommit.Message) %}</p> + <div class="event-commit row"> + <a class="col-xl-2" title="{%s r.LastCommit.Hash.String() %}" href="/{%s r.Name %}/commit/{%s r.LastCommit.Hash.String() %}/">{%s r.LastCommit.Hash.String()[0:8] %}</a> + <a class="col-xl-7"> {%s firstLine(r.LastCommit.Message) %}</a> + <a class="col-xl-3" title="{%s r.LastCommit.Author.When.Format("2006-01-02 15:04:05 UTC")%}">{%s humanize.Time(r.LastCommit.Author.When) %}</a> + </div> <p> <a href="/{%s r.Name %}/log/{%s r.Ref %}/">log</a> <a href="/{%s r.Name %}/tree/{%s r.Ref %}/">tree</a> |