Skip to content

Commit b747501

Browse files
mrsdizziesapk
authored andcommitted
Show due date in dashboard issues list (#8860)
* Show due date in dashboard issues list Include due date when vieiwiing all issues on dashboard (matching what we show for repo issue lists). Fixes #8859 * Put in same order as repo issue list * Add suggested changes and also update repo issue list to match
1 parent 884acf8 commit b747501

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

public/css/index.css

+1
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ i.icon.centerlock{top:1.5em}
818818
.issue.list>.item .desc .checklist{padding-left:5px}
819819
.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}
820820
.issue.list>.item .desc .checklist .progress-bar .progress{background-color:#ccc;display:block;height:100%}
821+
.issue.list>.item .desc .due-date{padding-left:5px}
821822
.issue.list>.item .desc a.milestone{margin-left:5px;color:#999!important}
822823
.issue.list>.item .desc a.milestone:hover{color:#000!important}
823824
.issue.list>.item .desc a.ref{margin-left:8px;color:#999!important}

public/less/_repository.less

+4
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,10 @@
20732073
}
20742074
}
20752075

2076+
.due-date {
2077+
padding-left: 5px;
2078+
}
2079+
20762080
a.milestone {
20772081
margin-left: 5px;
20782082
color: #999999 !important;

templates/repo/issue/list.tmpl

+3-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,9 @@
258258
</span>
259259
{{end}}
260260
{{if ne .DeadlineUnix 0}}
261-
<span class="octicon octicon-calendar"></span>
262-
<span{{if .IsOverdue}} class="overdue"{{end}}>{{.DeadlineUnix.FormatShort}}</span>
261+
<span class="due-date poping up" data-content="{{$.i18n.Tr "repo.issues.due_date"}}" data-variation="tiny inverted" data-position="right center">
262+
<span class="octicon octicon-calendar"></span><span{{if .IsOverdue}} class="overdue"{{end}}>{{.DeadlineUnix.FormatShort}}</span>
263+
</span>
263264
{{end}}
264265
{{range .Assignees}}
265266
<a class="ui right assignee poping up" href="{{.HomeLink}}" data-content="{{.Name}}" data-variation="inverted" data-position="left center">

templates/user/dashboard/issues.tmpl

+5
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@
126126
<span class="octicon octicon-checklist"></span> {{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span>
127127
</span>
128128
{{end}}
129+
{{if ne .DeadlineUnix 0}}
130+
<span class="due-date poping up" data-content="{{$.i18n.Tr "repo.issues.due_date"}}" data-variation="tiny inverted" data-position="right center">
131+
<span class="octicon octicon-calendar"></span><span{{if .IsOverdue}} class="overdue"{{end}}>{{.DeadlineUnix.FormatShort}}</span>
132+
</span>
133+
{{end}}
129134
</p>
130135
</li>
131136
{{end}}

0 commit comments

Comments
 (0)