Sha256: 6fa5f5704b2fd8f101a88e48bf3ce585a0c097a7818d201d75b1f449084ba8c5

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

<h2><%= EscapeUtils.escape_html t.send(@type_file).capitalize %> &nbsp; <a href="/<%= @type_file %>/new" class="btn btn-secondary btn-sm"><i class="fas fa-plus"></i> <%= EscapeUtils.escape_html t.new.capitalize %></a></h2>

<div class="table-responsive">
  <table class="table table-striped table-sm">
    <tr>
      <th>
        <%= EscapeUtils.escape_html t.file.capitalize %>
      </th>
      <th>
        <%= EscapeUtils.escape_html t.edit.capitalize %>
      </th>
      <th>
        <%= EscapeUtils.escape_html t.delete.capitalize %>
      </th>
    </tr>
    <% @files.each do |f| %>
    <tr>
      <td>
        <%= f.gsub(File.join(Dir.pwd, ''),'') %>
      </td>
      <td>
        <a href="/<%= @type_file %>?file=<%= f %>" class="btn btn-default"><i class="fa fa-edit" title="<%= EscapeUtils.escape_html t.edit.capitalize %>"></i></a>
      </td>
      <td>
        <form method="post" action="/<%= @type_file %>/delete" class="inline form-confirm" data-confirm="<%= EscapeUtils.escape_html t.are_you_sure %>">
          <input type="hidden" name="file" value="<%= f %>">
	        <button type="submit" class="btn btn-default"><i class="fa fa-trash" title="<%= EscapeUtils.escape_html t.delete.capitalize %>"></i></button>
        </form>
      </td>
    </tr>
    <% end %>
  </table>
</div>
   

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyde_admin-0.0.5 bin/admin_views/posts/listing.erb
hyde_admin-0.0.4 bin/admin_views/posts/listing.erb