]> source.dussan.org Git - sonarqube.git/commitdiff
Fix ServerID page
authorDavid Gageot <david@gageot.net>
Mon, 24 Sep 2012 08:22:26 +0000 (10:22 +0200)
committerDavid Gageot <david@gageot.net>
Mon, 24 Sep 2012 08:36:35 +0000 (10:36 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/server_id_configuration/index.html.erb

index 8d1ed4cdb2334cfda3d2d006a103e8f981a5aa1b..6b751f7bd57a2f62f1f1018300433ba51d48ac94 100644 (file)
@@ -4,51 +4,51 @@
   }
 </style>
 
-<table class="data marginbottom10">
-  <thead>
-  <tr>
-    <th><%= message('server_id_configuration.page') -%></th>
-  </tr>
-  </thead>
-  <tbody>
-  <tr class="even">
-    <td style="padding: 10px">
-      <p class="marginbottom10"><%= message('server_id_configuration.information') -%></p>
+<% form_tag :action => 'generate' do %>
+  <table class="data marginbottom10">
+    <thead>
+    <tr>
+      <th><%= message('server_id_configuration.page') -%></th>
+    </tr>
+    </thead>
+    <tbody>
+    <tr class="even">
+      <td style="padding: 10px">
+        <p class="marginbottom10"><%= message('server_id_configuration.information') -%></p>
 
-      <% if @server_id %>
-        <big><b><span class="<%= @bad_id ? 'error' : 'notice' -%>" id="server_id"><%= @server_id -%></span></b></big>
-        <% if @bad_id %>
-          <span class="error"><%= message('server_id_configuration.bad_id') -%></span>
+        <% if @server_id %>
+          <big><b><span class="<%= @bad_id ? 'error' : 'notice' -%>" id="server_id"><%= @server_id -%></span></b></big>
+          <% if @bad_id %>
+            <span class="error"><%= message('server_id_configuration.bad_id') -%></span>
+          <% end %>
+          <br/>
         <% end %>
-        <br/>
-      <% end %>
-    </td>
-  </tr>
-  <tr class="odd">
-    <td style="padding: 10px">
-      <h3><%= message('server_id_configuration.organisation.title') -%></h3>
+      </td>
+    </tr>
+    <tr class="odd">
+      <td style="padding: 10px">
+        <h3><%= message('server_id_configuration.organisation.title') -%></h3>
 
-      <p class="marginbottom10"><%= message('server_id_configuration.organisation.desc') -%></p>
-      <input type="text" name="organisation" value="<%= @organisation -%>" size="50"/>
-    </td>
-  </tr>
-  <tr class="even">
-    <td style="padding: 10px">
-      <h3><%= message('server_id_configuration.ip.title') -%></h3>
+        <p class="marginbottom10"><%= message('server_id_configuration.organisation.desc') -%></p>
+        <input type="text" name="organisation" value="<%= @organisation -%>" size="50"/>
+      </td>
+    </tr>
+    <tr class="even">
+      <td style="padding: 10px">
+        <h3><%= message('server_id_configuration.ip.title') -%></h3>
 
-      <p class="marginbottom10"><%= message('server_id_configuration.ip.desc') -%></p>
-      <ul class="marginbottom10 bullet">
-        <% @valid_addresses.each_with_index do |ip_address, index| %>
-          <li><span id="address_<%= index -%>"><%= ip_address.getHostAddress() -%></span></li>
-        <% end %>
-      </ul>
-      <input type="text" name="address" value="<%= @address -%>"/>
-    </td>
-  </tr>
-  </tbody>
-</table>
+        <p class="marginbottom10"><%= message('server_id_configuration.ip.desc') -%></p>
+        <ul class="marginbottom10 bullet">
+          <% @valid_addresses.each_with_index do |ip_address, index| %>
+            <li><span id="address_<%= index -%>"><%= ip_address.getHostAddress() -%></span></li>
+          <% end %>
+        </ul>
+        <input type="text" name="address" value="<%= @address -%>"/>
+      </td>
+    </tr>
+    </tbody>
+  </table>
 
-<% form_tag :action => 'generate' do %>
   <%= submit_tag message('server_id_configuration.generate_button'), :disable_with => message('server_id_configuration.generating_button'), :id => 'generate-button' -%>
 <% end %>