From 75db79b4b6bcb8f61dd957c9bd21b32d4746f866 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Fri, 4 Apr 2014 20:54:00 +0800 Subject: [PATCH] release list page ui --- public/css/gogs.css | 72 +++++++++++++++++++++++++++++++++-- templates/release/list.tmpl | 76 +++++++++++++++++++++++++++++++++++++ templates/repo/toolbar.tmpl | 3 ++ 3 files changed, 147 insertions(+), 4 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 6bed7711..a6d6b4cc 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1166,7 +1166,7 @@ html, body { font-weight: normal; } -#issue .issue-child .panel-heading .user,#issue .issue-closed a.user,#issue .issue-opened a.user { +#issue .issue-child .panel-heading .user, #issue .issue-closed a.user, #issue .issue-opened a.user { font-weight: bold; } @@ -1174,7 +1174,7 @@ html, body { border-color: #CCC; } -#issue .issue-is-closed .issue-line{ +#issue .issue-is-closed .issue-line { display: none; } @@ -1193,7 +1193,7 @@ html, body { width: 60%; } -#issue .issue-closed .issue-content,#issue .issue-opened .issue-content{ +#issue .issue-closed .issue-content, #issue .issue-opened .issue-content { line-height: 42px; } @@ -1203,7 +1203,7 @@ html, body { padding-bottom: 24px; } -#issue .issue-closed .label-danger,#issue .issue-opened .label-success{ +#issue .issue-closed .label-danger, #issue .issue-opened .label-success { margin: 0 .8em; } @@ -1241,3 +1241,67 @@ html, body { .admin-dl-horizontal > dd { margin-left: 240px; } + +/* release page */ + +#release-head { + margin-top: 0; + padding-bottom: 30px; + margin-bottom: 0; + border-bottom: 1px solid #DDD; +} + +#release .release-item .col-md-10 { + border-left: 1px solid #DDD; + position: relative; +} + +#release .release-item .commit, #release .release-item .tag { + display: block; + margin-top: 12px; +} + +#release .release-item.release-tag .commit { + margin-top: 6px; +} + +#release .release-item .title { + line-height: 30px; + margin-top: 0; +} + +#release .release-item .dot { + width: 9px; + height: 9px; + background-color: #ccc; + z-index: 999; + position: absolute; + display: block; + left: -5px; + top: 30px; + border-radius: 6px; + border: 1px solid #FFF; +} + +#release .release-item > div { + padding-top: 20px; + padding-bottom: 20px; +} + +#release .release-item p.info { + line-height: 20px; + color: #666; + margin-bottom: 18px; +} + +#release .release-item div.desc { + margin-bottom: 18px; +} + +#release .release-item p.info > *, #release .release-item .download a { + margin-right: 12px; +} + +#release .release-item .info .avatar { + vertical-align: middle; +} \ No newline at end of file diff --git a/templates/release/list.tmpl b/templates/release/list.tmpl index 7d582e3f..d7c4674e 100644 --- a/templates/release/list.tmpl +++ b/templates/release/list.tmpl @@ -3,6 +3,82 @@ {{template "repo/nav" .}} {{template "repo/toolbar" .}}
+
+

+ Release / + Tags + +

+ +
{{range .Releases}} {{.}} {{end}} diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl index 08167ef8..54842048 100644 --- a/templates/repo/toolbar.tmpl +++ b/templates/repo/toolbar.tmpl @@ -14,6 +14,9 @@ {{else}}{{end}} {{end}}
  • {{if .Repository.NumReleases}}{{.Repository.NumReleases}} {{end}}Releases
  • + {{if .IsRepoToolbarReleases}} +
  • + {{end}}