Refactoring venue
This commit is contained in:
parent
c0cdf3e6e5
commit
9d08f52636
13 changed files with 108 additions and 57 deletions
38
app/views/admin/venues/_show.html.haml
Normal file
38
app/views/admin/venues/_show.html.haml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
.row{'style'=>'padding-top: 15px;'}
|
||||
.col-md-6
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Name
|
||||
%dd
|
||||
= @venue.name
|
||||
%dt
|
||||
Address
|
||||
%dd
|
||||
= @venue.address
|
||||
%dt
|
||||
Website
|
||||
%dd
|
||||
= @venue.website
|
||||
%dt
|
||||
Description
|
||||
%dd
|
||||
- unless @venue.description.blank?
|
||||
= markdown(@venue.description)
|
||||
.row.row-flex.row-flex-wrap
|
||||
.col-md-4
|
||||
.thumbnail.flex-col
|
||||
%h3.text-center
|
||||
Venue Logo
|
||||
- if @venue.photo
|
||||
= image_tag(@venue.photo(:large), class: 'img-responsive')
|
||||
.caption.flex-grow
|
||||
.caption
|
||||
%p
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Filename
|
||||
%dd
|
||||
= @venue.photo_file_name
|
||||
-else
|
||||
%h4.text-center
|
||||
Not set!
|
||||
Loading…
Add table
Add a link
Reference in a new issue