Sha256: 19e5279ff6c281d4701f1a41fadf092db57a3bf8cc3c3ea810cbb412c7d7094f
Contents?: true
Size: 1.93 KB
Versions: 7
Compression:
Stored size: 1.93 KB
Contents
.page-header .row .col-md-6 %h1 Templates %small <i class="ace-icon fa fa-angle-double-right"></i> edit page templates .col-md-4 =link_to 'New template', new_template_path(:parent_id=>@parent_id), :class=>'btn btn-sm btn-primary' =link_to 'New folder', newfolder_templates_path(:parent_id=>@parent_id, :is_folder=>1), :class=>'btn btn-sm btn-default' .btn-group %button(type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") New... <span class="caret"></span> %ul.dropdown-menu %li=link_to 'New block', newblock_templates_path(:parent_id=>@parent_id) %li=link_to 'Attach template', newattach_templates_path(:parent_id=>@parent_id) %li=link_to 'New layout', newlayout_templates_path(:parent_id=>@parent_id) .filter = inline_filter_form_for(@filter) - if @parent =link_to 'HOME', templates_path(:parent_id=>0) #{"/"} - @parent.ancestors.each do |r| =link_to r.title, templates_path(:parent_id=>r.id) #{"/"} =link_to @parent.title, templates_path(:parent_id=>@parent.id) %table.table.table-striped.table-bordered %tr %th= link_to_sortable_column :title, 'Title' %th= link_to_sortable_column :basepath, 'Path' %th Commands - @items.each do |item| %tr %td - if item.is_folder =link_to templates_path(:parent_id=>item.id) do <i class="fa fa-folder-o"></i> =item.title - else =link_to item.title, edit_template_path(item) %td - if item.is_folder = item.folder_path - else =item.path rescue 'error' %td =link_to 'Edit', (!item.is_folder ? edit_template_path(item) : editfolder_template_path(item)) =link_to 'Delete', template_path(item), :method => :delete, data: { confirm: 'Are you sure?' } =paginate @items
Version data entries
7 entries across 7 versions & 1 rubygems