Sha256: 1f8c474406526cb37da45842c2990aff778a907e0d5db135a2d2e5520e42dba2

Contents?: true

Size: 861 Bytes

Versions: 7

Compression:

Stored size: 861 Bytes

Contents

#tandem-defaults
	h1.tandem-title Pages Listing

	table
	  tr
	    th Parent
	    th Link Label
	    th Page Label
	    th Page Title
	    th Layout
	    th Keywords
	    th Description
	    th
	    th
	    th

	  - @pages.each do |page|
	    tr
	      td= page.parent.try :slug
	      td= page.link_label
	      td= page.page_label
	      td= page.title
	      td= page.layout
	      td= page.keywords
	      td= page.description
	      td= link_to 'Show', tandem.page_path(page)
	      - if can?(:update, page)
	        td= link_to 'Edit', tandem.edit_page_path(page), :class => :page_link
	      - if can?(:destroy, page)
	        td= link_to 'Delete', tandem.page_path(page), :confirm => 'Are you sure?', :method => :delete

	br

	- if can?(:create, ::Tandem::Page)
	  = link_to 'New Page', tandem.new_page_path, :class => :page_link, :id => :page_new_link

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tandem-0.2.5 app/views/tandem/pages/index.html.slim
tandem-0.2.4 app/views/tandem/pages/index.html.slim
tandem-0.2.3 app/views/tandem/pages/index.html.slim
tandem-0.2.2 app/views/tandem/pages/index.html.slim
tandem-0.2.1 app/views/tandem/pages/index.html.slim
tandem-0.2.0 app/views/tandem/pages/index.html.slim
tandem-0.2.0.rc app/views/tandem/pages/index.html.slim