Sha256: 0f7212017a7f7f46b31ffc01d80729b695e9738e90ee8216239a87ed065875d0

Contents?: true

Size: 1.74 KB

Versions: 8

Compression:

Stored size: 1.74 KB

Contents

<%= provide(:page_title, t("Gallery")) %>
<div class="row-fluid">
  <%=
    link_to(
      content_tag(
        :div,
        content_tag(
          :i,
          nil,
          :class => 'icon-plus-sign icon-2x'
        ) +
        content_tag(
          :span,
          'Agregar Imagen',
          nil
        ),
        :class => "btn btn-box span2"
      ),
      new_gallery_path
    )
  %>
</div>

<div class="row-fluid">
  <div class="widget widget-padding span12">
    <div class="widget-header">
          <i class="icon-picture"></i>
          <h5>Galería de Inicio</h5>
        </div>
    <div class="widget-body">
      <div class="dataTables_wrapper form-inline">
        <table id="information-table" class="table table-striped table-bordered dataTable">
          <thead>
            <tr>
              <th>Imagen</th>
                <th>Acción</th>
            </tr>
          </thead>
          <tbody>
            <% @galleries.each do |gallery| %>
            <tr>
              <td><%= link_to image_tag(gallery.file_url(:thumb)), gallery_path(gallery) %></td>
                <td>
                  <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), edit_gallery_path(gallery), :title => "Editar"%>
                  <%= link_to content_tag(:i, nil, :class => 'icon-remove'), gallery_path(gallery), :title => "Borrar", :method => :delete,
                                      :data => { :confirm => "Seguro?" }
                  %>
                </td>
            </tr>
            <% end %>
          </tbody>
        </table>
        <div class="row-fluid">
          <div class="span6"></div>
          <div class="span6"></div>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adminpanel-0.0.7 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.6.1 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.6 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.5 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.4 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.3 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.2 app/views/adminpanel/galleries/index.html.erb
adminpanel-0.0.1 app/views/adminpanel/galleries/index.html.erb