aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/app/views/rules/show.html.erb
blob: 2258fdd293eff3b05684487a1e46d0e348c1eddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div>
  <h1 class="rule-title"><%= h @rule.name %></h1>
  <% unless @rule.ready? %>
    <div class="rule-status">
      <% if @rule.beta? %>
        <span><%= message('rules.status.beta') %></span>
      <% elsif @rule.deprecated? %>
        <span><%= message('rules.status.deprecated') %></span>
      <% end %>
    </div>
  <% end %>
</div>

<div class="subtitle">
<%= h @rule.plugin_name -%> : <%= h @rule.plugin_rule_key -%>
</div>

<div class="rule_detail">
  <% if @rule.description.strip.start_with?('<p>') %>
    <%= Internal.text.interpretMacros(@rule.description) %>
  <% else %>
    <p><%= Internal.text.interpretMacros(@rule.description) %></p>
  <% end %>

  <% if @rule.note && !@rule.note.text.strip.blank? %>
    <p><%= @rule.note.html_text -%></p>
  <% end %>

</div>