mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix the venue display on splash
This commit is contained in:
parent
5a0328842e
commit
ff025a4839
3 changed files with 14 additions and 36 deletions
|
|
@ -64,6 +64,9 @@
|
|||
#venue {
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
#venue-pic {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
#lodging {
|
||||
|
|
@ -171,18 +174,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Venue icon styles */
|
||||
.icon-container {
|
||||
position: relative;
|
||||
height: 60%;
|
||||
.icon-inner {
|
||||
position:absolute;
|
||||
top:50%;
|
||||
left: 50%;
|
||||
transform:translate(-50%,-50%);
|
||||
.fa-university {
|
||||
font-size: 10em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,6 @@
|
|||
= f.inputs :name, :website
|
||||
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
|
||||
= f.inputs :street, :postalcode, :city, :country, :latitude, :longitude
|
||||
- if @venue.picture?
|
||||
= image_tag @venue.picture.thumb.url
|
||||
= f.input :picture
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
||||
#commercials-content.tab-pane
|
||||
|
|
|
|||
|
|
@ -6,32 +6,25 @@
|
|||
-else
|
||||
.container
|
||||
.row
|
||||
- if @conference.venue.commercial.present? and @conference.venue.commercial.persisted?
|
||||
.col-md-5
|
||||
.thumbnail
|
||||
.col-md-6
|
||||
.thumbnail#venue-pic
|
||||
- if @conference.venue.commercial.present? and @conference.venue.commercial.persisted?
|
||||
.flexvideo{ id: "resource-content-#{@conference.venue.commercial.id}"}
|
||||
= render partial: 'shared/media_item', locals: { commercial: @conference.venue.commercial }
|
||||
- elsif @conference.venue.picture.present?
|
||||
.col-md-5
|
||||
.thumbnail
|
||||
- elsif @conference.venue.picture?
|
||||
= image_tag @conference.venue.picture.url, alt: @conference.venue.name, class:"img-responsive"
|
||||
- else
|
||||
.col-md-5
|
||||
.thumbnail.icon-container
|
||||
.icon-inner
|
||||
= fa_icon "university"
|
||||
.col-md-6
|
||||
%h2.text-center
|
||||
= "#{@conference.venue.city} / #{@conference.venue.country_name}"
|
||||
.col-md-6
|
||||
.thumbnail
|
||||
- else
|
||||
%p.text-center
|
||||
%span.fa.fa-university.fa-5x
|
||||
.caption
|
||||
%h3.text-center
|
||||
= @conference.venue.name
|
||||
- unless @conference.venue.description.blank?
|
||||
= markdown(@conference.venue.description)
|
||||
.col-md-6
|
||||
%h2
|
||||
= "#{@conference.venue.city} / #{@conference.venue.country_name}"
|
||||
%address
|
||||
%h1
|
||||
= @conference.venue.name
|
||||
= @conference.venue.street
|
||||
%br
|
||||
= "#{@conference.venue.postalcode}, #{@conference.venue.city}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue