rules_configuration.unknown_rule=Unknown rule
rules_configuration.x_rules_have_been_activated={0} rules have been activated.
rules_configuration.x_rules_have_been_deactivated={0} rules have been deactivated.
-rules_configuration.extend_description=Extend description
-rules_configuration.edit_note=Edit note
-rules_configuration.add_note=Add note
+rules_configuration.extend_description=Extend Description
+rules_configuration.edit_note=Edit Note
+rules_configuration.add_note=Add Note
rules_configuration.confirm_delete_note=Do you really want to delete this note?
rules_configuration.rule_inherited_from_profile_x=Rule inherited from profile "{0}"
rules_configuration.rule_overriding_from_profile_x=Rule overrides parent definition from profile "{0}"
<% end %>
</div>
- <div class="issue-rule rule_detail" style="display: none"></div>
+ <div class="issue-rule rule-desc" style="display: none"></div>
<div class="issue-changelog" id="issue-changelog" style="display: none"></div>
<% unless issue.message.blank? %>
</ul>
</div>
-<div class="modal-body rule_detail">
+<div class="modal-body rule-desc">
<% if @rule.description.strip.start_with?('<p>') %>
<%= Internal.text.interpretMacros(@rule.description) %>
<% else %>
<script type="text/javascript">
$j(document).ready(function () {
// As links in rule description will be loaded after open-modal has been processed by jquery, we have to process manually rule-modal classes
- $j('.rule_detail .rule-modal').modal();
+ $j('.rule-desc .rule-modal').modal();
});
</script>
<%= h @rule.plugin_name -%> : <%= h @rule.plugin_rule_key -%>
</div>
-<div class="rule_detail">
+<div class="rule-desc">
<% if @rule.description.strip.start_with?('<p>') %>
<%= Internal.text.interpretMacros(@rule.description) %>
<% else %>
end
%></div>
- <div id="desc_<%= rule.id -%>" class="rule_detail" style="<%= 'display:none' -%>">
+ <div id="desc_<%= rule.id -%>" class="rule-desc" style="<%= 'display:none' -%>">
<a name="rule<%= rule.id -%>"></a>
- <div class="spacer-top spacer-bottom" id="rule_note_<%= rule.id -%>">
+ <div id="rule_note_<%= rule.id -%>" class="marginbottom10">
<%= render :partial => 'rule_note', :locals => {:rule => rule} %>
</div>
%>
<div id="<%= note_detail_div_id -%>">
- <div>
+ <div class="marginbottom10">
<% if rule.description.strip.start_with?('<p>') %>
<%= Internal.text.interpretMacros(rule.description) %>
<% else %>
}
function expand_rules(){
- $j('.rule_detail').show();
+ $j('.rule-desc').show();
}
function collapse_rules(){
- $j('.rule_detail').hide();
+ $j('.rule-desc').hide();
}
function submitSearch() {
color: #777;
}
-.rule_detail ul li {
- list-style: disc outside;
- padding: 2px;
+
+/* API for Rule Descriptions */
+.rule-desc h2 {
+ margin-top: 16px;
+ font-size: 16px;
+ line-height: 1.5;
+ color: #2B547D;
}
-.rule_detail ul, .rule_detail ol {
- list-style: none outside;
- padding-left: 30px;
+.rule-desc h3 {
+ margin-top: 16px;
+ font-size: 12px;
+ line-height: 1.5;
+ color: #2B547D;
+ font-weight: bold;
}
-.rule_detail ol li {
- list-style: decimal outside;
- padding: 2px;
+.rule-desc p {
+ margin-top: 10px;
}
-.rule_detail pre, .code .rule_detail pre {
+.rule-desc pre {
margin: 10px 0;
- padding: 7px;
- font-family: "Courier New", Courier, monospace;;
+ padding: 10px;
border: 1px dashed #aaa;
- font-size: 93%;
+ font-size: 12px;
+ font-family: monospace;;
}
-.rule_detail p {
- margin: 8px 0;
+.rule-desc blockquote {
+ margin-top: 10px;
+ padding: 10px;
+}
+
+.rule-desc ul {
+ list-style-type: disc;
+ list-style-position: inside;
+ margin: 10px;
+}
+
+.rule-desc ol {
+ list-style-type: decimal;
+ list-style-position: inside;
+ margin: 10px;
}
+.rule-table {
+ margin-top: 10px;
+ overflow-x: auto;
+ border-collapse: collapse;
+}
+.rule-table th {
+ background: none no-repeat scroll right center #EFEFEF;
+ border: 1px solid #DDD;
+ padding: 5px 10px;
+ font-weight: bold;
+}
+.rule-table td {
+ background: none no-repeat scroll right center transparent;
+ border: 1px solid #DDD;
+ padding: 5px 10px;
+}
+/* End of API for Rule Descriptions */
+
+
+
.tip:hover {
background: #FFF;
position: relative;