Sha256: 7bc210188800a36bd17e810dda0c2970d6441eb38adca30be85faa178ee758a1

Contents?: true

Size: 927 Bytes

Versions: 3

Compression:

Stored size: 927 Bytes

Contents

<div class="row">
  <div class="col-md-8">
    <h4>Cadastro de notícias</h4>

    <% if can? :create, WebAdmin::Post %>
      <div class="row">
        <div class="col-md-12"><%= link_to 'Nova', new_post_path, class: 'btn btn-primary link-new' %></div>
      </div>
    <% end %>

    <div class="table-responsive">
      <table class="table table-hover">
        <thead>
          <tr>
            <td>Título</td>
            <td>Criado por</td>
            <td>Criado em</td>
          </tr>
        </thead>

        <tbody>
          <% @posts.each do |post| %>
            <tr>
              <td><%= link_to post.title, edit_post_path(post) %></td>
              <td><%= post.user %></td>
              <td><%= I18n.l post.created_at, format: :only_date %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>

  <div class="col-md-4 box">
    <h4>Pesquisa</h4>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
web_admin-0.1.0 app/views/web_admin/posts/index.html.erb
web_admin-0.0.2 app/views/web_admin/posts/index.html.erb
web_admin-0.0.1 app/views/web_admin/posts/index.html.erb