Skip to content

Commit

Permalink
subtask: Change selected subtask style
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Sep 25, 2017
1 parent 11d3f5e commit 43a380a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -6810,7 +6810,6 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
font-size: 14px;
padding: 3px;
.item-name {
background-color: white;
vertical-align: middle;
}
.number {
Expand Down Expand Up @@ -7048,3 +7047,12 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
border: none !important;
}
}

.child-issues {
.selected-child {
font-weight: bold;
border: 1px solid #ddd;
background-color: #F5F5F5;
border-radius: 4px;
}
}
4 changes: 2 additions & 2 deletions app/views/issue/view.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
}
<hr class="parent-issue-delimeter"/>
@for(childIssue <- openChildIssues) {
<div class="issue-item @if(childIssue.id == issue.id){bold}">
<div class="issue-item @if(childIssue.id == issue.id){selected-child}">
<span class="state-label open"></span>
<a href="@routes.IssueApp.issue(childIssue.project.owner, childIssue.project.name, childIssue.getNumber)">
<span class="item-name"><span class="subtask-number">#@childIssue.getNumber</span> @childIssue.title@if(childIssue.assignee != null) { - @childIssue.assignee.user.getPureNameOnly}</span></a>
<span class="font12 no-border-at-child">@common.commentAndVoterPairDisplay(childIssue, project)</span>
</div>
}
@for(childIssue <- closedChildIssues) {
<div class="issue-item @if(childIssue.id == issue.id){bold}">
<div class="issue-item @if(childIssue.id == issue.id){selected-child}">
<span class="state-label closed"><i class=" yobicon-checkmark"></i></span>
<a href="@routes.IssueApp.issue(childIssue.project.owner, childIssue.project.name, childIssue.getNumber)">
<span class="item-name"><span class="subtask-number">#@childIssue.getNumber</span> @childIssue.title@if(childIssue.assignee != null){ - @childIssue.assignee.user.getPureNameOnly}</span></a>
Expand Down

0 comments on commit 43a380a

Please sign in to comment.