Project

General

Profile

Feature #33832 » 33832.patch

Go MAEDA, 2020-09-06 08:36

View differences:

app/helpers/issues_helper.rb
84 84
    end
85 85
    s << '<div>'
86 86
    subject = h(issue.subject)
87
    if issue.is_private?
88
      subject = subject + ' ' + content_tag('span', l(:field_is_private), :class => 'badge badge-private private')
89
    end
90 87
    s << content_tag('h3', subject)
91 88
    s << '</div>' * (ancestors.size + 1)
92 89
    s.html_safe
app/views/issues/show.html.erb
2 2

  
3 3
<h2 class="inline-flex"><%= issue_heading(@issue) %></h2>
4 4
<%= issue_status_type_badge(@issue.status) %>
5
<% if @issue.is_private? %>
6
  <span class="badge badge-private private"><%= l(:field_is_private) %></span>
7
<% end %>
5 8

  
6 9
<div class="<%= @issue.css_classes %> details">
7 10
  <% if @prev_issue_id || @next_issue_id %>
public/stylesheets/application.css
1445 1445
.badge-private {
1446 1446
  background: #d22;
1447 1447
  color: #fff;
1448
  border: 1px solid #d22;
1448 1449
}
1449 1450
.badge-count {
1450 1451
  color: #fff;
(3-3/4)