diff --git a/public/css/gogs.css b/public/css/gogs.css index 8060946b8..7a15cb3af 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -916,6 +916,16 @@ pre.raw { .ui.status.buttons .octicon { margin-right: 4px; } +.ui .sha.label { + font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; + font-size: 13px; + padding: 6px 10px 4px 10px; + font-weight: normal; + margin: 0 6px; +} +.ui .white.label { + background-color: white; +} .overflow.menu .items { max-height: 300px; overflow-y: auto; @@ -1865,20 +1875,10 @@ footer .container .links > *:first-child { margin-bottom: 5px; } .repository.file.list #repo-files-table tbody .icon { - margin-left: 5px; -} -.repository.file.list #repo-files-table tbody .name { - max-width: 120px; -} -.repository.file.list #repo-files-table tbody .message { - max-width: 300px; -} -.repository.file.list #repo-files-table tbody .age { - min-width: 150px; + margin-right: 5px; } .repository.file.list #repo-files-table tbody .text.truncate { - margin-bottom: -5px; - max-width: 100%; + max-width: 88%; } .repository.file.list #repo-files-table td { padding-top: 8px; @@ -2262,12 +2262,6 @@ footer .container .links > *:first-child { .repository .commits.table .date { width: 120px; } -.repository .sha.label { - font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; - font-size: 14px; - padding: 6px 10px 4px 10px; - font-weight: normal; -} .repository .diff-detail-box { margin: 15px 0; line-height: 30px; diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 58ab1ebb1..77d0b0219 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -20,8 +20,7 @@ {{.i18n.Tr "repo.commits.author"}} - SHA1 - {{.i18n.Tr "repo.commits.message"}} +    SHA1    {{.i18n.Tr "repo.commits.message"}} {{.i18n.Tr "repo.commits.date"}} @@ -36,8 +35,10 @@   {{.Author.Name}} {{end}} - {{SubStr .ID.String 0 10}} - {{RenderCommitMessage .Summary $.RepoLink}} + + {{ShortSha .ID.String}} + {{RenderCommitMessage .Summary $.RepoLink}} + {{TimeSince .Author.When $.Lang}} {{end}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 9edbd687c..d1747299a 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -1,28 +1,26 @@ - + {{if .HasParentPath}} - - + {{end}} {{range $item := .Files}} @@ -30,10 +28,8 @@ {{$commit := index $item 1}} {{if $entry.IsSubModule}} - - {{else}} - - {{end}} - - - + {{end}}
+ {{if .LastCommitUser}} - {{.LastCommit.Author.Name}}: + {{.LastCommit.Author.Name}} {{else}} - {{.LastCommit.Author.Name}}: + {{.LastCommit.Author.Name}} {{end}} - - {{ShortSha .LastCommit.ID.String}} - {{RenderCommitMessage .LastCommit.Summary .RepoLink}} - {{TimeSince .LastCommit.Author.When $.Lang}} + {{ShortSha .LastCommit.ID.String}} + {{RenderCommitMessage .LastCommit.Summary .RepoLink}} {{TimeSince .LastCommit.Author.When $.Lang}}
....
+ - {{if $commit.RefUrl}} {{$entry.Name}} @ {{ShortSha $commit.RefId}} {{else}} @@ -41,20 +37,16 @@ {{end}} + - {{$entry.Name}} - {{SubStr $commit.ID.String 0 10}} - + + {{ShortSha $commit.ID.String}} {{RenderCommitMessage $commit.Summary $.RepoLink}} {{TimeSince $commit.Committer.When $.Lang}}{{TimeSince $commit.Committer.When $.Lang}}