diff options
author | Adam Strzelecki <ono@java.pl> | 2015-12-03 01:15:40 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-12-03 01:15:40 +0100 |
commit | b73241ceb175b437c114dae686c9cffb69396e41 (patch) | |
tree | 8be78b11a3a30eeadd440d94f7ab0f4117c12bed /templates/repo/view_list.tmpl | |
parent | 314664892c42741e2ff905bead8b7e8105aecaca (diff) | |
download | gitea-b73241ceb175b437c114dae686c9cffb69396e41.tar.gz gitea-b73241ceb175b437c114dae686c9cffb69396e41.zip |
UI: Display last-commit header without 2nd column
This uses a CSS trick making first th to be relative block with width equal to
first two columns, effectively working around inability to use colspan="2" on
first row that was breaking "fixed-layout" for tables.
Also use grey header for last-commit SHA1 tag.
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 9b6c0aaa19..4acfa2b676 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -9,10 +9,10 @@ <img class="ui avatar image img-12" src="{{AvatarLink .LastCommit.Author.Email}}" /> <strong>{{.LastCommit.Author.Name}}</strong> {{end}} + <a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LastCommit.ID}}" rel="nofollow">{{ShortSha .LastCommit.ID.String}}</a> + <span class="grey">{{RenderCommitMessage .LastCommit.Summary .RepoLink}}</span> </th> <th class="nine wide"> - <a rel="nofollow" class="ui green sha label" href="{{.RepoLink}}/commit/{{.LastCommit.ID}}" rel="nofollow">{{ShortSha .LastCommit.ID.String}}</a> - <span class="grey">{{RenderCommitMessage .LastCommit.Summary .RepoLink}}</span> </th> <th class="three wide text grey right age">{{TimeSince .LastCommit.Author.When $.Lang}}</th> </tr> |