Sha256: 6cfa83d467344112e9555805fada15d0e9842b179c07e69fa66fafd9292dddf4

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

<% @page_heading = _('Database migration') %>
<% subtabs_for(:settings) %>

<div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
  <h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-gear'></span> <%= _("Information")%></h3>
  <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>

    <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='ui-widget ui-widget ui-helper-reset' >
        <div class='ui-state-highlight ui-corner-all' style='padding: 0pt 0.7em;'>
          <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>
      </div>
      <% else %>
      <%= save(_("Update database now")) %>  <small><%= _("may take a moment")%></small>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typo-5.5 app/views/admin/settings/update_database.html.erb
typo-5.4.4 app/views/admin/settings/update_database.html.erb