diff --git a/public/css/index.css b/public/css/index.css index 2cc7b42ce..5339aefe6 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -782,8 +782,11 @@ footer .ui.left,footer .ui.right{line-height:40px} .issue.list>.item .desc .checklist{padding-left:5px} .issue.list>.item .desc .checklist .progress-bar{margin-left:2px;width:80px;height:6px;display:inline-block;background-color:#eee;overflow:hidden;border-radius:3px;vertical-align:2px!important} .issue.list>.item .desc .checklist .progress-bar .progress{background-color:#ccc;display:block;height:100%} -.issue.list>.item .desc a.milestone{padding-left:5px;color:#999!important} +.issue.list>.item .desc a.milestone{margin-left:5px;color:#999!important} .issue.list>.item .desc a.milestone:hover{color:#000!important} +.issue.list>.item .desc a.ref{margin-left:8px;color:#999!important} +.issue.list>.item .desc a.ref:hover{color:#000!important} +.issue.list>.item .desc a.ref span{margin-right:-4px} .issue.list>.item .desc .assignee{margin-top:-5px;margin-right:5px} .issue.list>.item .desc .overdue{color:red} .page.buttons{padding-top:15px} diff --git a/public/less/_repository.less b/public/less/_repository.less index a64763b39..3ba747bdd 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -1985,7 +1985,7 @@ } a.milestone { - padding-left: 5px; + margin-left: 5px; color: #999999 !important; &:hover { @@ -1993,6 +1993,19 @@ } } + a.ref { + margin-left: 8px; + color: #999999 !important; + + &:hover { + color: #000000 !important; + } + + span { + margin-right: -4px; + } + } + .assignee { margin-top: -5px; margin-right: 5px; diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 8bdc0dfa9..4874d97da 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -217,9 +217,6 @@ {{end}} {{end}} - {{if .Ref}} - {{.Ref}} - {{end}} {{range .Labels}} {{.Name}} {{end}} @@ -242,6 +239,16 @@ {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}} {{end}} + {{if .Milestone}} + + {{.Milestone.Name}} + + {{end}} + {{if .Ref}} + + {{.Ref}} + + {{end}} {{$tasks := .GetTasks}} {{if gt $tasks 0}} {{$tasksDone := .GetTasksDone}} @@ -249,11 +256,6 @@ {{$tasksDone}} / {{$tasks}} {{end}} - {{if .Milestone}} - - {{.Milestone.Name}} - - {{end}} {{if ne .DeadlineUnix 0}} {{.DeadlineUnix.FormatShort}} diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 738ac4b81..889cd2c2f 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -187,9 +187,6 @@