-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy path_list.html.slim
More file actions
32 lines (24 loc) · 1.33 KB
/
_list.html.slim
File metadata and controls
32 lines (24 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- if empty_collection?(entries)
br
.alert.alert-warning
== t('.no_items', url: new_content_entry_path(current_site, content_type.slug))
- else
#entries-list class="row big-list #{'grouped' if content_type.groupable?} #{'sortable' if content_type.order_manually?}" data-sort-url=sort_content_entries_path(current_site, content_type.slug, :json)
- entries.each do |entry|
.item.col-md-12 data-id=entry._id
- if content_type.order_manually?
.draggable
i.fa.fa-bars.draggable
.text
.item-label
= entry_label(content_type, entry)
.stamp
== document_stamp(entry)
.actions
= link_to content_entry_path(current_site, content_type.slug, entry), title: t(:delete, scope: 'simple_form.buttons.defaults.locomotive'), class: 'remove', data: { confirm: t('locomotive.messages.confirm') }, method: :delete do
i.fa.fa-trash-o
= link_to clone_content_entry_path(current_site, content_type.slug, entry), title: t(:clone, scope: 'simple_form.buttons.defaults.locomotive'), class: 'clone', data: { confirm: t('locomotive.messages.confirm') }, method: :post do
i.fa.fa-clone-o
- if entries.respond_to?(:current_page)
.text-center
= paginate entries, theme: 'twitter-bootstrap-3', pagination_class: 'pagination-sm'