Sha256: b4981367fb98099756d10e3e93437ddea38adc5f16a06f2fdecc3d7c61f00812
Contents?: true
Size: 1.38 KB
Versions: 6
Compression:
Stored size: 1.38 KB
Contents
<h2><%= EscapeUtils.escape_html t.send(@type_file).capitalize %> <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| %> <% edit_path = "/#{@type_file}?file=#{f}" %> <tr> <td> <a href="<%= edit_path %>" class="link-dark"> <%= f.gsub(File.join(Dir.pwd, ''),'') %> </a> </td> <td> <a href="<%= edit_path %>" 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
6 entries across 6 versions & 1 rubygems