Skip to content

Commit ad2cf1a

Browse files
committed
subtask: Show created date
1 parent 8709a51 commit ad2cf1a

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

app/assets/stylesheets/less/_page.less

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7147,6 +7147,22 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
71477147
}
71487148
}
71497149

7150+
.child-issue {
7151+
.child-issue-date {
7152+
display: none;
7153+
font-size: 10px;
7154+
color: lightgrey;
7155+
}
7156+
}
7157+
7158+
.issue-item-row {
7159+
&:hover {
7160+
.child-issue-date {
7161+
display: inline-block;
7162+
}
7163+
}
7164+
}
7165+
71507166
.subtasks {
71517167
#simple-issue-list;
71527168

@@ -7395,7 +7411,7 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
73957411
.post-item {
73967412
padding: 0 10px;
73977413
color: #999999;
7398-
7414+
73997415
.title-wrap {
74007416
margin-top: 2px;
74017417
white-space: normal;

app/views/issue/partial_view_child.scala.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,27 @@
44
* Copyright Yona & Yobi Authors & NAVER Corp. & NAVER LABS Corp.
55
* https://yona.io
66
**@
7+
@import utils.TemplateHelper._
8+
@import utils.JodaDateUtil
9+
710
@(state: String, childIssue: Issue, parentIssue: Issue)
811
@urlToList(project:Project, state:String) = {@routes.IssueApp.issues(project.owner, project.name, "open", "html", 1)}
912

10-
<div class="issue-item @if(childIssue.id == parentIssue.id){selected-child}">
13+
<div class="issue-item @if(childIssue.id == parentIssue.id){selected-child} child-issue">
1114
<span class="state-label @state">@if(state == "closed"){<i class=" yobicon-checkmark">}</i></span>
1215
<a class="twoColumeModeTarget" href="@routes.IssueApp.issue(childIssue.project.owner, childIssue.project.name, childIssue.getNumber)">
13-
<span class="item-name"><span class="subtask-number">#@childIssue.getNumber</span> @childIssue.title@if(childIssue.assignee != null) { - @childIssue.assignee.user.getPureNameOnly}</span></a>
16+
<span class="item-name">
17+
<span class="subtask-number">#@childIssue.getNumber</span>
18+
<span>@childIssue.title</span>
19+
<span>@if(childIssue.assignee != null) { - @childIssue.assignee.user.getPureNameOnly}</span>
20+
</span>
21+
</a>
1422
<span class="font12 no-border-at-child">@common.commentAndVoterPairDisplay(childIssue, parentIssue.project)</span>
1523
@for(label <- childIssue.labels.toList.sortBy(r => (r.category.name, r.name))) {
1624
<a href="@urlToList(childIssue.project, childIssue.state.state)&[email protected]" class="label issue-label list-label active twoColumeModeTarget" data-category-id="@label.category.id" data-label-id="@label.id" style="background:@label.color">@label.name</a>
1725
}
26+
<span class="child-issue-date" title="@JodaDateUtil.getDateString(childIssue.createdDate)">
27+
@agoOrDateString(childIssue.createdDate)
28+
</span>
1829
</div>
1930

0 commit comments

Comments
 (0)