]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4136 Removed obsolete partials
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Fri, 21 Jun 2013 09:58:06 +0000 (11:58 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Fri, 21 Jun 2013 09:58:06 +0000 (11:58 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb [deleted file]
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb [deleted file]

diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb
deleted file mode 100644 (file)
index b881296..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<h1><%= message('dashboard.create_dashboard') -%></h1>
-
-<form action="<%= url_for :action => 'create', :resource => params[:resource] -%>" id="create-dashboard-form" method="POST">
-  <table class="admintable" width="100%">
-    <tbody>
-    <tr>
-      <td class="left" valign="top" colspan="2">
-        <%= message('name') -%>:<br/><input type="text" name="name" size="30" maxlength="256">
-      </td>
-    </tr>
-    <tr>
-      <td class="left" valign="top" colspan="2">
-        <%= message('description') -%>:<br/><input type="text" name="description" size="30" maxlength="1000">
-      </td>
-    </tr>
-    <% if is_admin? %>
-      <tr>
-        <td class="left" valign="top" colspan="2">
-          <%= message('shared') -%>:<br/><input type="checkbox" name="shared" value="true">
-        </td>
-      </tr>
-    <% end %>
-    <tr>
-      <td class="left" valign="top" colspan="2">
-        <input type="submit" value="<%= message(@global ? 'dashboard.create_global_dashboard' : 'dashboard.create_project_dashboard') -%>" id="submit-create-dashboard"/>
-      </td>
-    </tr>
-    </tbody>
-  </table>
-
-  <% if @global %>
-    <input type="hidden" name="global" value="true" />
-  <% end %>
-</form>
-
-<script>
-  $('create-dashboard-form').name.focus();
-</script>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb
deleted file mode 100644 (file)
index 8ccb4e4..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<h1><%= message('dashboard.edit_dashboard') -%></h1>
-
-<form action="<%= url_for :action => 'update', :id => @dashboard.id, :resource => params[:resource] -%>" method="POST">
-  <table class="admintable" width="100%">
-    <tbody>
-    <tr>
-      <td class="left" valign="top" colspan="2">
-        <%= message('name') -%>:<br/><input type="text" name="name" size="30" maxlength="256" value="<%= @dashboard.name -%>">
-      </td>
-    </tr>
-    <tr>
-      <td class="left" valign="top" colspan="2">
-        <%= message('description') -%>:<br/><input type="text" name="description" size="30" maxlength="1000" value="<%= @dashboard.description -%>">
-      </td>
-    </tr>
-    <% if is_admin? %>
-      <tr>
-        <td class="left" valign="top">
-          <%= message('shared') -%>:<br/><input type="checkbox" name="shared" value="true" <%= 'checked' if @dashboard.shared -%>>
-        </td>
-      </tr>
-    <% end %>
-    <tr>
-      <td class="left" valign="top" colspan="2">
-        <input type="submit" value="<%= message('dashboard.update_dashboard') -%>" id="submit-update-dashboard"/>
-        <a href="<%= url_for :action => 'index', :resource => params[:resource] -%>"><%= message('cancel') -%></a>
-      </td>
-    </tr>
-    </tbody>
-  </table>
-  <% if @dashboard.global %>
-    <input type="hidden" name="global" value="true" />
-  <% end %>
-</form>