Sha256: f213af027f6ab6ba527fbcb26b9c0faa087adf1845b04f516ed3de8404134bd8

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

<% content_for :page_heading do %>
  <h2>
    <i class="glyphicon glyphicon-large glyphicon-cog"></i>
    <%= t(".database_migration") %>
  </h2>
<% end %>

<div class='alert alert-warning'>
  <h3><%= t(".information") %></h3>
  <p>
    <strong><%= t(".current_database_version") %>:</strong>
    <%= @current_version %>
  </p>
  <% unless @needed_migrations.blank? %>
    <p>
      <strong><%= t(".migrations")%>:</strong>
      <%= t(".migration_pending", count: @needed_migrations.count) %>
    </p>
    <p><%= t(".needed_migrations")%>:</p>
    <ul>
      <% for migration in @needed_migrations %>
      <li><%= migration.name %></li>
      <% end %>
    </ul>
  <% end %>
  <div class='alert-actions'>
    <%= form_tag admin_migrations_path do %>
      <% if @needed_migrations.blank? %>
        <div class='info'>
          <p><strong><%= t(".you_are_up_to_date")%></strong></p>
        </div>
      <% else %>
        <hr>
        <%= submit_tag(t(".update_database_now"), class: 'btn btn-success') %>
        <small><%= t(".may_take_a_moment")%></small>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publify_core-9.1.0 app/views/admin/migrations/show.html.erb
publify_core-9.0.1 app/views/admin/migrations/show.html.erb
publify_core-9.0.0 app/views/admin/migrations/show.html.erb
publify_core-9.0.0.pre6 app/views/admin/migrations/show.html.erb
publify_core-9.0.0.pre5 app/views/admin/migrations/show.html.erb
publify_core-9.0.0.pre4 app/views/admin/migrations/show.html.erb
publify_core-9.0.0.pre3 app/views/admin/migrations/show.html.erb
publify_core-9.0.0.pre2 app/views/admin/migrations/show.html.erb
publify_core-9.0.0.pre1 app/views/admin/migrations/show.html.erb