diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-06-19 12:08:11 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-06-19 12:10:20 +0200 |
commit | e0aee2b93d6f05ca9a61e96741ba8eae01272878 (patch) | |
tree | 73408112a62fa0a380db2dd19f926a7153fb6369 | |
parent | bbf1f60af78c263234c3411b4c0cc29a13c65451 (diff) | |
download | sonarqube-e0aee2b93d6f05ca9a61e96741ba8eae01272878.tar.gz sonarqube-e0aee2b93d6f05ca9a61e96741ba8eae01272878.zip |
SONAR-5138 Add menu to switch b/w Coding Rules and Quality Profiles
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_coding_rules.html.erb | 19 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb | 2 |
2 files changed, 20 insertions, 1 deletions
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 index 00000000000..822c84bf948 --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_coding_rules.html.erb @@ -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> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb index f1c1401c77a..4d18b7b330c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb @@ -43,4 +43,4 @@ } <% end %> -</script>
\ No newline at end of file +</script> |