Apply list styling to list of related reports

This commit is contained in:
Andy Allan 2018-03-14 15:14:35 +08:00
parent e41751fb32
commit 04901868fa
2 changed files with 20 additions and 11 deletions

View file

@ -2834,9 +2834,18 @@ input.richtext_title[type="text"] {
margin-right:100px;
}
.related-block{
width:280px;
float:right;
.related-reports {
width: 280px;
float: right;
ul {
padding-left: $lineheight;
margin-bottom: 0;
li {
list-style: disc;
}
}
}
.issue-comments {

View file

@ -41,19 +41,19 @@
</div>
<% if @issue.reported_user %>
<div class="related-block">
<div class="related-reports">
<h3><%= t ".other_issues_against_this_user" %></h3>
<div class="unread-reports">
<% if @related_issues.count > 1 %>
<% if @related_issues.count > 1 %>
<ul>
<% @related_issues.each do |issue| %>
<% if issue.id != @issue.id %>
<%= link_to reportable_title(issue.reportable), issue %> <br/>
<li><%= link_to reportable_title(issue.reportable), issue %></li>
<% end %>
<% end %>
<% else %>
<p><%= t ".no_other_issues" %></p>
<% end %>
</div>
</ul>
<% else %>
<p><%= t ".no_other_issues" %></p>
<% end %>
</div>
<% end %>
</div>