Sha256: df803e795970898b9035a476d45d04c1bcb28b6b2d722023674408faf9ecf04c

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

<% content_for :title do %>Migrations<% end %>
<div class="">
  <% if flash[:notice] %>
    <div class="">
      <span><%= flash[:notice] %></span>
    </div>
  <% end %>
  <div class="flex flex-col gap-3">
    <div class="">
      <% if @migrations.select {|i| i['status'] == :todo}.any? %>
        <%= form_tag actions_path, class: "" do %>
          <button name="cmd" type="submit" value="rails db:migrate" class="px-3 py-1 rounded-md bg-green-800 text-localtower-100 border border-green-700 outline-none hover:border-green-500 hover:bg-green-700 hover:text-white active:opacity-60 transition-colors text-xs inline-flex items-center">
            <code>bundle exec rails db:migrate</code>
          </button>
        <% end %>
      <% end %>
    </div>
    <div class="">
      <% if @migrations.any? %>
        <% @migrations.each do |entry| %>
          <%= render partial: 'localtower/migration', locals: { entry: entry } %>
        <% end %>
      <% else %>
        <div class="">
          <span>No migrations found</span>
        </div>
      <% end %>
    </div>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
localtower-2.0.1 app/views/localtower/pages/migrations.html.erb
localtower-2.0.0 app/views/localtower/pages/migrations.html.erb