Refactoring Admin menu #384
This commit is contained in:
parent
518e1cc62b
commit
d1f5b1e3cc
30 changed files with 865 additions and 190 deletions
20
app/views/admin/photos/index.html.haml
Normal file
20
app/views/admin/photos/index.html.haml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
%h1 Photos
|
||||
- @photos.each_slice(3) do |slice|
|
||||
.row.row-flex.row-flex-wrap
|
||||
- slice.each do |photo|
|
||||
.col-md-4
|
||||
.thumbnail.flex-col
|
||||
%h3.text-center
|
||||
= photo.picture_file_name
|
||||
= image_tag(photo.picture(:large), class: 'img-responsive', title: photo.description)
|
||||
.caption.flex-grow
|
||||
.caption
|
||||
= link_to edit_admin_conference_photo_path(@conference.short_title, photo.id), class: 'btn btn-primary' do
|
||||
%i.fa.fa-pencil-square-o
|
||||
Edit
|
||||
= link_to admin_conference_photo_path(@conference.short_title, photo.id), method: :delete, class: 'btn btn-danger' do
|
||||
%i.fa.fa-times-circle
|
||||
Delete
|
||||
.row{'style'=>'padding-top: 10px;'}
|
||||
.col-md-12
|
||||
= link_to 'New Photo', new_admin_conference_photo_path, class: 'btn btn-primary'
|
||||
Loading…
Add table
Add a link
Reference in a new issue