<a name="rule<%= rule.id -%>"></a>
<div id="rule_note_<%= rule.id -%>" class="marginbottom10">
- <%= render :partial => 'rule_note', :locals => {:rule => rule,:profile_id => profile.id} %>
+ <%= render :partial => 'rule_note', :locals => {:rule => rule} %>
</div>
+ <% if profiles_administrator? %>
+ <div class="marginbottom10">
+ <a class="link-action open-modal"
+ href="<%=ApplicationController.root_context-%>/rules_configuration/show_select_tags?rule_id=<%= u rule.id -%>&profile_id=<%= u profile.id %>">
+ <%= message('rules_configuration.select_tags') -%></a>
+ </div>
+
+ <% end %>
+
+
<%
parent_active_rule = Internal.quality_profiles.parentProfileRule(rule) if (rule.inherited? || rule.overrides?)
if parent_active_rule || !rule.params.empty?
-<% #locals = rule, profile_id
+<% #locals = rule
note = rule.ruleNote
note_detail_div_id = "nd_" + rule.id.to_s
note_extend_link_id = "nel_" + rule.id.to_s
<div>
<a href="#" id="<%= note_extend_link_id -%>" class="link-action spacer-right"
onclick="$j('#<%= note_detail_div_id -%>').hide();$j('#<%= note_form_div_id -%>').show();$j('#<%= note_textarea_id -%>').focus();return false;"><%= message('rules_configuration.extend_description') %></a>
- <a class="link-action open-modal"
- href="<%=ApplicationController.root_context-%>/rules_configuration/show_select_tags?rule_id=<%= u rule.id -%>&profile_id=<%= u profile_id %>">
- <%= message('rules_configuration.select_tags') -%></a>
</div>
-
<% end %>
-
+
</div>
<% if profiles_administrator? %>