]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5138 Add menu to switch b/w Coding Rules and Quality Profiles
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 19 Jun 2014 10:08:11 +0000 (12:08 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 19 Jun 2014 10:10:20 +0000 (12:10 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_coding_rules.html.erb [new file with mode: 0644]
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb

diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_coding_rules.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_coding_rules.html.erb
new file mode 100644 (file)
index 0000000..822c84b
--- /dev/null
@@ -0,0 +1,19 @@
+<li>
+  <a href="<%= ApplicationController.root_context -%>/coding_rules"
+    class="with-icon<%= ' selected' if [ Navigation::SECTION_CODING_RULES, Navigation::SECTION_QUALITY_PROFILES ].include? selected_section -%>"
+    onmouseover="showDropdownMenu('coding-rules-menu'); return false;">
+    <span><%= message('coding_rules.page') -%></span>
+    <i class="icon-dropdown"></i>
+  </a>
+
+  <div id="coding-rules-menu" class="dropdown-menu" style="max-width: none; display: none;">
+    <div>
+      <ul>
+        <li><a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a></li>
+      </ul>
+    </div>
+  </div>
+
+</li>
+
+</script>
index f1c1401c77ace70d80c38d72f79cb06ef105594e..4d18b7b330cdaf741cf435d5c0327c13cea01d49 100644 (file)
@@ -43,4 +43,4 @@
   }
   <% end %>
 
-</script>
\ No newline at end of file
+</script>