diff options
author | Unknwon <u@gogs.io> | 2015-12-02 19:44:16 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-02 19:44:16 -0500 |
commit | 73d9eebf017270b52d42da5404980c4abca4438a (patch) | |
tree | 5731bfe5bcae3498ed25fc93443cf5eedbbd9874 /templates/repo/commits_table.tmpl | |
parent | e350d74c8af139d7a9af0854da6452139403297f (diff) | |
parent | b73241ceb175b437c114dae686c9cffb69396e41 (diff) | |
download | gitea-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.tmpl | 17 |
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"> SHA1 </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=""/> {{.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> |