diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-01 16:45:56 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-01 16:46:08 +0200 |
commit | a76678a55769cb2da35bb4d15955437572b832c2 (patch) | |
tree | e6daa35c67244cb547cb8f5a42dacc58dc1a941a /server/sonar-web | |
parent | 8878a2822b9718fe2c15166391e7f89ecaf404d3 (diff) | |
download | sonarqube-a76678a55769cb2da35bb4d15955437572b832c2.tar.gz sonarqube-a76678a55769cb2da35bb4d15955437572b832c2.zip |
remove unused ror templates
Diffstat (limited to 'server/sonar-web')
5 files changed, 0 insertions, 126 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb deleted file mode 100644 index 453350a9c22..00000000000 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% - displayed_resource = @resource || @project - display_only_root = @issue -%> - -<% if displayed_resource %> - - <nav class="navbar navbar-breadcrumbs"></nav> - -<% end %> diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_flashes.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_flashes.html.erb deleted file mode 100644 index 10dc4d4d552..00000000000 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_flashes.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<div id="<%= flashes -%>"> -<% if flash[:error] %> - <div class="error"><%= flash[:error] %></div> -<% end %> -<% if flash[:notice] %> - <div class="notice"><%= flash[:notice] %></div> -<% end %> -</div>
\ No newline at end of file diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb deleted file mode 100644 index 4d18b7b330c..00000000000 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb +++ /dev/null @@ -1,46 +0,0 @@ -<script> - if (supportsHTML5Storage()) { - var sonarRecentHistory = new Sonar.RecentHistory(); - } -</script> - -<li> - <a href="#" class="with-icon" onclick="if (sonarRecentHistory) { sonarRecentHistory.populateRecentHistoryPanel(); }; showDropdownMenu('projects-menu'); return false;"> - <span><%= message('layout.projects') -%></span> - <i class="icon-dropdown"></i> - </a> - - <div id="projects-menu" class="dropdown-menu" style="max-width: none; display: none;"> - <div id="recent-history" style="border-bottom: 1px solid #ccc; padding-bottom: 10px;"> - <h2><%= message('layout.recent_projects') -%></h2> - <ul id="recent-history-list"> - </ul> - </div> - - <div> - <ul> - <% Project.root_qualifiers.sort.each do |qualifier| %> - <li><a href="<%= ApplicationController.root_context -%>/all_projects?qualifier=<%= qualifier -%>"><%= message('qualifiers.all.' + qualifier) -%></a></li> - <% end %> - </ul> - </div> - </div> - -</li> - -<script> - if (sonarRecentHistory == null) { - $j('#recent-history').detach(); - } - - <% - if @resource && Project.root_qualifiers.include?(@resource.qualifier) - %> - else { - sonarRecentHistory.add('<%= escape_javascript(h(@resource.key)) -%>', - '<%= escape_javascript(h(@resource.name)) -%>', - '<%= escape_javascript @resource.qualifier.downcase -%>'); - } - <% end %> - -</script> diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb deleted file mode 100644 index 9bda250acf5..00000000000 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb +++ /dev/null @@ -1,47 +0,0 @@ -<li> - <a href="#" onclick="showDropdownMenu('project-settings-menu'); return false;" class="link-more" id="project-settings-menu-link"><%= message('qualifier.configuration.' + @project.qualifier) -%></a> - - <div id="project-settings-menu" class="dropdown-menu" style="display: none"> - <% is_admin = has_role?(:admin, @project) %> - <ul> - <% if (is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'configurable')) %> - <li><a href="<%= ApplicationController.root_context -%>/project/settings/<%= @project.id -%>"><%= message('project_settings.page') -%></a></li> - <% end %> - <% if (@project.project?) %> - <li><a href="<%= ApplicationController.root_context -%>/project/profile/<%= @project.id -%>"><%= message('project_quality_profiles.page') -%></a></li> - <% end %> - <% if (@project.project?) %> - <li><a href="<%= ApplicationController.root_context -%>/project/qualitygate/<%= @project.id -%>"><%= message('project_quality_gate.page') -%></a></li> - <% end %> - <% if is_admin %> - <li><a href="<%= ApplicationController.root_context -%>/manual_measures/index/<%= @project.id -%>"><%= message('manual_measures.page') -%></a></li> - <% end %> - <% if (is_admin && @project.project?) %> - <li><a href="<%= ApplicationController.root_context -%>/action_plans/index/<%= @project.id -%>"><%= message('action_plans.page') -%></a></li> - <% end %> - <% if (is_admin && @project.project?) %> - <li><a href="<%= ApplicationController.root_context -%>/project/links/<%= @project.id -%>"><%= message('project_links.page') -%></a></li> - <% end %> - <% if is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'hasRolePolicy') %> - <li><a href="<%= ApplicationController.root_context -%>/project_roles/index/<%= @project.id -%>"><%= message('permissions.page') -%></a></li> - <% end %> - <% if is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'modifiable_history') %> - <li><a href="<%= ApplicationController.root_context -%>/project/history/<%= @project.id -%>"><%= message('project_history.page') -%></a></li> - <% end %> - <% if is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'updatable_key') %> - <li><a href="<%= ApplicationController.root_context -%>/project/key/<%= @project.id -%>"><%= message('update_key.page') -%></a></li> - <% end %> - <% if is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'deletable') %> - <li><a href="<%= ApplicationController.root_context -%>/project/deletion/<%= @project.id -%>"><%= message('deletion.page') -%></a></li> - <% end %> - <% if is_admin - controller.java_facade.getPages(Navigation::SECTION_RESOURCE_CONFIGURATION.key, @project.scope, @project.qualifier, @project.language, nil).each do |page| - page_url = "#{page.getId()}?resource=#{@project.id}" - %> - <li><a href="<%= ApplicationController.root_context -%><%= page_url -%>"><%= h message(page.getId() + '.page', :default => page.getTitle()) -%></a></li> - <% end - end %> - </ul> - </div> - -</li> diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb deleted file mode 100644 index 76ce2320193..00000000000 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -<li> - <a href="#" class="with-icon" onclick="showDropdownMenu('user-panel'); return false;"> - <span><%= h current_user.name -%></span> - <i class="icon-dropdown"></i> - </a> - - - <div id="user-panel" class="dropdown-menu" style="display: none"> - <ul> - <li><a href="<%= ApplicationController.root_context -%>/account/index"><%= message('layout.user_panel.my_profile') -%></a></li> - <li><a href="<%= ApplicationController.root_context -%>/sessions/logout" onclick="if (sonarRecentHistory) { sonarRecentHistory.clear(); }"><%= message('layout.logout') -%></a></li> - </ul> - </div> - -</li> |