Permalink
Browse files

Database settings

  • Loading branch information...
fdv committed Feb 7, 2012
1 parent 379458c commit a3e71a1981ae6b9bfcf65b5cebe08c31f90aafa6
Showing with 33 additions and 35 deletions.
  1. +33 −35 app/views/admin/settings/update_database.html.erb
@@ -1,38 +1,36 @@
<% @page_heading = _('Database migration') %>
-<div class='widget-container'>
- <h3 class='light'><span class='ui-icon ui-icon-gear'></span> <%= _("Information")%></h3>
- <div class='widget-content'>
- <p>
- <strong><%= _("Current database version")%>:</strong>
- <%= @current_version %>
- </p>
-
- <% unless @needed_migrations.blank? %>
- <p>
- <strong><%= _("New database version")%>:</strong>
- <%= @needed_version %>
- </p>
- <p>
- <label><%= _("Your database supports migrations")%>:</label>
- <%= @support ? _('yes') : _('no') %>
- </p>
- <h3><%= _("Needed migrations")%></h3>
- <ul>
- <% for migration in @needed_migrations %>
- <li><%= migration.humanize %></li>
- <% end %>
- </ul>
- <% end %>
-
- <%= form_tag :action => 'migrate' do %>
- <% if @current_version == @needed_version %>
- <div class='info'>
- <p><span class='ui-icon ui-icon-info' style='float: left; margin-right: 0.3em;'></span><strong><%= _("You are up to date!")%></strong></p>
- </div>
- <% else %>
- <%= save(_("Update database now")) %> <small><%= _("may take a moment")%></small>
- <% end %>
- <% end %>
- </div>
+<div class='alert-message block-message warning'>
+ <h3><%= _("Information")%></h3>
+ <p>
+ <strong><%= _("Current database version")%>:</strong>
+ <%= @current_version %>
+ </p>
+ <% unless @needed_migrations.blank? %>
+ <p>
+ <strong><%= _("New database version")%>:</strong>
+ <%= @needed_version %>
+ </p>
+ <p>
+ <%= _("Your database supports migrations")%>:
+ <%= @support ? _('yes') : _('no') %>
+ </p>
+ <p><%= _("Needed migrations")%>:</p>
+ <ul>
+ <% for migration in @needed_migrations %>
+ <li><%= migration.humanize %></li>
+ <% end %>
+ </ul>
+ <% end %>
+ <div class='alert-actions'>
+ <%= form_tag :action => 'migrate' do %>
+ <% if @current_version == @needed_version %>
+ <div class='info'>
+ <p><strong><%= _("You are up to date!")%></strong></p>
+ </div>
+ <% else %>
+ <%= save(_("Update database now")) %> <small class='help-block'><%= _("may take a moment")%></small>
+ <% end %>
+ <% end %>
+ </div>
</div>

0 comments on commit a3e71a1

Please sign in to comment.