Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
evsmash/items / views / items / admin / index.haml
Size: Mime:
- if($elements->count()):

	%table.table.sortable
		%thead
			%tr	
				%th
				%th != Bar::sorter('Name')
				%th = t('Type')
				%th = t('Price')
				%th.sm = t('s_New')
				%th.sm = t('s_Promoted')
				%th.sm = t('s_Published')
				%th = t('Actions')
				%th != Bar::sorter('Views')

		%tbody
			- foreach($elements as $row):

				%tr{:id => 'item-'.$row->id}
					%td.thumb
						%a{:href => Thumb::fly($row->photo, '1000xauto'), "data-lightbox" => "roadtrip"}
							!= Thumb::show($row->photo, '75xauto')
					
					%td = $row->name
					%td = H::assign($row->type, 'name')
					%td 
						- if($row->price !== '0.00')
							= Num::show($row->price).' '.$row->currency
							
						- if($row->price_old !== '0.00')
							.text-light = Num::show($row->price_old)

					%td != Dec::thick($row, 'new')
					%td != Dec::thick($row, 'promoted')
					%td != Dec::thick($row, 'published')
					%td 
						!= Button::sort()
						!= Button::preview(Route::map('evsmash/items/items/show'), $row)
						!= Dec::a('/items/edit/'.$row->id, 'Edit')->class('btn btn-primary')
						!= Button::translation('evsmash-items-items', 'items', $row->id)
						!= Button::attachments('items', $row->id)
						!= Button::photos('items', $row->id)
						!= Button::settings('evsmash-items-items-show', $row->id)
						!= Button::delete('/items/delete', $row->id)

					%td = $row->views

			- endforeach

	!= Dec::paging($elements)

- else:

	= t('No results')

- endif

// js
!= Js::thick(['new', 'promoted', 'published'], '/items/thick')
!= Js::sort('/items/sort')