summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-01-31 14:59:22 +0100
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-01-31 15:04:08 +0100
commit5db8b24b6d7b676b1b66f34ae5ac858bb7e6822b (patch)
tree7a8aab46cec5442561cfa3a1e5e7011efed4107f
parent764dbbcd41adaf1bafb33bf69796d18c4d390abd (diff)
downloadsonarqube-5db8b24b6d7b676b1b66f34ae5ac858bb7e6822b.tar.gz
sonarqube-5db8b24b6d7b676b1b66f34ae5ac858bb7e6822b.zip
SONAR-4100 Improve rendering
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/account/_global_notifications.html.erb7
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/account/_per_project_notifications.html.erb2
2 files changed, 4 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/account/_global_notifications.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/account/_global_notifications.html.erb
index a64938efdf6..c8e77ea0c77 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/account/_global_notifications.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/account/_global_notifications.html.erb
@@ -6,7 +6,7 @@
<tr>
<td></td>
<% for channel in @channels %>
- <td><b><%= message('notification.channel.' + channel.getKey()) -%></b></td>
+ <td class="center"><b><%= message('notification.channel.' + channel.getKey()) -%></b></td>
<% end %>
</tr>
<% for dispatcher in @global_dispatchers %>
@@ -18,15 +18,14 @@
check_box_id = 'notifications[' + notification_id + ']'
check_box_checked = @global_notifications[notification_id]
%>
- <td>
+ <td class="center">
<%= check_box_tag check_box_id, 'true', check_box_checked %>
</td>
<% end %>
</tr>
<% end %>
<tr>
- <td></td>
- <td><%= submit_tag message('my_profile.notifications.submit') %></td>
+ <td style="padding-top: 10px" colspan="<%= @global_dispatchers.size + 1 -%>"><%= submit_tag message('my_profile.notifications.submit') %></td>
</tr>
</table>
<% end %>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/account/_per_project_notifications.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/account/_per_project_notifications.html.erb
index 37c881d9f9e..cc4a61bff16 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/account/_per_project_notifications.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/account/_per_project_notifications.html.erb
@@ -77,7 +77,7 @@
<% end %>
<tr>
- <td colspan="<%= @per_project_dispatchers.size + 1 -%>"><%= submit_tag message('my_profile.notifications.submit') %></td>
+ <td style="padding-top: 10px" colspan="<%= @per_project_dispatchers.size + 1 -%>"><%= submit_tag message('my_profile.notifications.submit') %></td>
</tr>
<% end %>