summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_table.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-02 19:44:16 -0500
committerUnknwon <u@gogs.io>2015-12-02 19:44:16 -0500
commit73d9eebf017270b52d42da5404980c4abca4438a (patch)
tree5731bfe5bcae3498ed25fc93443cf5eedbbd9874 /templates/repo/commits_table.tmpl
parente350d74c8af139d7a9af0854da6452139403297f (diff)
parentb73241ceb175b437c114dae686c9cffb69396e41 (diff)
downloadgitea-73d9eebf017270b52d42da5404980c4abca4438a.tar.gz
gitea-73d9eebf017270b52d42da5404980c4abca4438a.zip
Merge pull request #2068 from nanoant/patch/repo-file-list-layout
Repo file list layout & misc fixes
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r--templates/repo/commits_table.tmpl17
1 files changed, 9 insertions, 8 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index 58ab1ebb1e..5e207486ff 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -16,13 +16,12 @@
{{if .Commits}}
<div class="ui attached table segment">
- <table class="ui very basic striped commits table">
+ <table class="ui very basic striped fixed single line">
<thead>
<tr>
- <th>{{.i18n.Tr "repo.commits.author"}}</th>
- <th>SHA1</th>
- <th>{{.i18n.Tr "repo.commits.message"}}</th>
- <th>{{.i18n.Tr "repo.commits.date"}}</th>
+ <th class="four wide">{{.i18n.Tr "repo.commits.author"}}</th>
+ <th class="nine wide message"><span class="ui sha label">&nbsp;&nbsp;&nbsp;SHA1&nbsp;&nbsp;&nbsp;</span> {{.i18n.Tr "repo.commits.message"}}</th>
+ <th class="three wide right aligned">{{.i18n.Tr "repo.commits.date"}}</th>
</tr>
</thead>
<tbody>
@@ -36,9 +35,11 @@
<img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/>&nbsp;&nbsp;{{.Author.Name}}
{{end}}
</td>
- <td class="sha"><a rel="nofollow" class="ui green sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}} ">{{SubStr .ID.String 0 10}} </a></td>
- <td class="message"><span class="text truncate">{{RenderCommitMessage .Summary $.RepoLink}}</span></td>
- <td class="date">{{TimeSince .Author.When $.Lang}}</td>
+ <td class="message">
+ <a rel="nofollow" class="ui green sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
+ {{RenderCommitMessage .Summary $.RepoLink}}
+ </td>
+ <td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td>
</tr>
{{end}}
</tbody>