]> source.dussan.org Git - sonarqube.git/commitdiff
remove unused ror templates
authorStas Vilchik <vilchiks@gmail.com>
Wed, 1 Apr 2015 14:45:56 +0000 (16:45 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 1 Apr 2015 14:46:08 +0000 (16:46 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb [deleted file]
server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_flashes.html.erb [deleted file]
server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb [deleted file]
server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb [deleted file]
server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb [deleted file]

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 (file)
index 453350a..0000000
+++ /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 (file)
index 10dc4d4..0000000
+++ /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 (file)
index 4d18b7b..0000000
+++ /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 (file)
index 9bda250..0000000
+++ /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 (file)
index 76ce232..0000000
+++ /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>