Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .searchbar_min
- =render 'layouts/searchbar'
- %table.table.table-striped
- %thead
- %tr
- %th Wyrażenie
- %th Znaczenie
- %th
- %th
- %th
- %tbody
- = will_paginate @pg_search_documents
- - @pg_search_documents.each do |pg_search_document|
- %tr
- =pg_search_document.inspect
- %td= pg_search_document.searchable.expression
- %td= HTML_Truncator.truncate(pg_search_document.searchable.meaning, 40).html_safe
- %td
- = link_to vocabulary_path(pg_search_document), class: "btn btn-link" do
- %i.glyphicon.glyphicon-eye-open
- Pokaż
- -if current_user && current_user.admin?
- %td
- = link_to edit_vocabulary_path(pg_search_document), class: "btn btn-link" do
- %i.glyphicon.glyphicon-edit
- Edytuj
- %td
- = link_to vocabulary_path(pg_search_document), :method => :delete, :data => { :confirm => 'Jesteś pewny/a?' }, class: "btn btn-link" do
- %i.glyphicon.glyphicon-trash
- Usuń
- %br
- = will_paginate @pg_search_documents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement