Get rid of the splashpage banner photo and "descriptions"
This commit is contained in:
parent
60ba81ab46
commit
30e8ab856c
23 changed files with 1235 additions and 184 deletions
|
|
@ -1,8 +1,9 @@
|
|||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f|
|
||||
= f.input :title, :hint => "The full name of the conference, such as 'openSUSE Conference 2013'"
|
||||
= f.input :short_title, :hint => "A short title, such as 'osc2013', to be used in URLs"
|
||||
= f.input :title, :hint => "The full title of the conference, e.g. 'openSUSE Conference 2014'"
|
||||
= f.input :short_title, :hint => "A short title, e.g. 'oSC14', to be used in URLs"
|
||||
= f.input :description, hint: markdown_hint('A description of the conference.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :color, :hint => "The color will be used eg for the dashboard.", :input_html => {:size => 6, :type => "color"}
|
||||
- if !@conference.logo.blank?
|
||||
= image_tag @conference.logo(:thumb)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@
|
|||
Short Title
|
||||
%dd
|
||||
= @conference.short_title
|
||||
%dt
|
||||
Description
|
||||
%dd
|
||||
= markdown(@conference.description)
|
||||
%dt
|
||||
Date
|
||||
%dd
|
||||
|
|
|
|||
|
|
@ -2,26 +2,14 @@
|
|||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@splashpage, url: admin_conference_splashpage_path(@conference.short_title)) do |f|
|
||||
= f.inputs name: 'Banner' do
|
||||
= f.input :banner_photo, hint: 'This will be the top most component of the splash. This background cover will contain start_date and end_date of the conference and the description.'
|
||||
= f.input :banner_description, hint: markdown_hint('This description will be shown at the bottom of the banner photo of the Splashpage.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_banner, label: 'Display banner on the splashpage?'
|
||||
= f.inputs name: 'Components' do
|
||||
= f.input :ticket_description, hint: markdown_hint('This will appear in the Tickets segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_tickets, label: 'Display tickets on the splashpage?'
|
||||
%br
|
||||
= f.input :sponsor_description, hint: markdown_hint('This will appear in the Sponsors segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_sponsors, label: 'Display sponsors on the splashpage?'
|
||||
%br
|
||||
= f.input :registration_description, hint: markdown_hint(''), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_registrations, label: 'Display the registration period on the splashpage?'
|
||||
%br
|
||||
= f.input :lodging_description, hint: markdown_hint('This will appear in the Lodgings segment of the splash.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :include_lodgings, label: 'Display the lodgings on the splashpage?'
|
||||
%br
|
||||
= f.input :include_tracks, label: 'Display tracks on the splashpage?'
|
||||
= f.input :include_program, label: 'Display program on the splashpage?'
|
||||
= f.input :include_social_media, label: 'Display social media on the splashpage?'
|
||||
= f.input :include_venue, label: 'Display venue on the splashpage?'
|
||||
= f.input :public, label: 'Make splash page public! (Attention: Please do this only after you have finished the configuration of the conference!)'
|
||||
= f.input :include_registrations, label: 'Display the registration period on the splashpage?'
|
||||
= f.input :include_tickets, label: 'Display tickets on the splashpage?'
|
||||
= f.input :include_lodgings, label: 'Display the lodgings on the splashpage?'
|
||||
= f.input :include_sponsors, label: 'Display sponsors on the splashpage?'
|
||||
= f.input :include_social_media, label: 'Display social media on the splashpage?'
|
||||
= f.input :public, label: 'Make splash page public?'
|
||||
= f.submit 'Save Splashpage', class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -4,11 +4,6 @@
|
|||
.row
|
||||
.col-md-8
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Ticket:
|
||||
%dd
|
||||
- unless @splashpage.ticket_description.blank?
|
||||
= markdown(@splashpage.ticket_description)
|
||||
%dt
|
||||
Include Tickets:
|
||||
%dd
|
||||
|
|
@ -16,11 +11,6 @@
|
|||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Sponsor:
|
||||
%dd
|
||||
- unless @splashpage.sponsor_description.blank?
|
||||
= markdown(@splashpage.sponsor_description)
|
||||
%dt
|
||||
Include Sponsors:
|
||||
%dd
|
||||
|
|
@ -28,11 +18,6 @@
|
|||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Registration:
|
||||
%dd
|
||||
- unless @splashpage.registration_description.blank?
|
||||
= markdown(@splashpage.registration_description)
|
||||
%dt
|
||||
Include Registrations:
|
||||
%dd
|
||||
|
|
@ -40,11 +25,6 @@
|
|||
Yes
|
||||
- else
|
||||
No
|
||||
%dt
|
||||
Lodging:
|
||||
%dd
|
||||
- unless @splashpage.lodging_description.blank?
|
||||
= markdown(@splashpage.lodging_description)
|
||||
%dt
|
||||
Include Tracks:
|
||||
%dd
|
||||
|
|
@ -74,34 +54,6 @@
|
|||
- else
|
||||
No
|
||||
|
||||
.row.row-flex.row-flex-wrap
|
||||
.col-md-4
|
||||
.thumbnail.flex-col
|
||||
%h3.text-center
|
||||
Conference Banner
|
||||
- if @splashpage.banner_photo?
|
||||
= image_tag(@splashpage.banner_photo(:large), class: 'img-responsive')
|
||||
.caption.flex-grow
|
||||
.caption
|
||||
%p
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Filename
|
||||
%dd
|
||||
= @splashpage.banner_photo_file_name
|
||||
%dt Description
|
||||
%dd
|
||||
- unless @splashpage.banner_description.blank?
|
||||
= markdown(@splashpage.banner_description)
|
||||
%dt Included
|
||||
%dd
|
||||
- if @splashpage.include_banner
|
||||
Yes
|
||||
- else
|
||||
No
|
||||
- else
|
||||
%h4.text-center
|
||||
Not set!
|
||||
%br
|
||||
- if can? :update, @splashpage
|
||||
= link_to 'Edit', edit_admin_conference_splashpage_path, class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -1,20 +1,27 @@
|
|||
#splash
|
||||
- if @conference.splashpage
|
||||
- if @conference.splashpage.include_banner?
|
||||
#splash-banner{ style: ("background-image: url(#{@conference.splashpage.banner_photo})" unless @conference.splashpage.banner_photo.blank?) }
|
||||
#splash-banner
|
||||
.container
|
||||
.row
|
||||
.col-md-8.col-md-offset-2#splash-header
|
||||
.row
|
||||
.col-md-4
|
||||
= image_tag(@conference.logo(:original), class: 'img-responsive', id: 'splash-logo') if @conference.logo?
|
||||
.col-md-8
|
||||
%h1
|
||||
= @conference.title
|
||||
%p.lead
|
||||
- if @conference.start_date && @conference.end_date
|
||||
= date_string(@conference.start_date, @conference.end_date)
|
||||
|
||||
- unless @conference.description.blank?
|
||||
%section#about
|
||||
.container
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h1= @conference.title
|
||||
- if @conference.start_date && @conference.end_date
|
||||
%h3= date_string(@conference.start_date, @conference.end_date)
|
||||
- unless @conference.splashpage.banner_description.blank?
|
||||
%p.lead
|
||||
= markdown(@conference.splashpage.banner_description)
|
||||
-unless @conference.photos.blank?
|
||||
= link_to 'Gallery', gallery_photos_conference_path(@conference.short_title), class: 'btn btn-primary btn-lg', id: 'gallery-btn', remote: true
|
||||
= render 'gallery'
|
||||
|
||||
.col-md-8.col-md-offset-2
|
||||
%h3.text-center
|
||||
= markdown(@conference.description)
|
||||
|
||||
- if @conference.splashpage.include_program
|
||||
%section#program
|
||||
= render 'program'
|
||||
|
|
@ -49,3 +56,8 @@
|
|||
|
||||
// grmbl
|
||||
= render 'footer'
|
||||
|
||||
- content_for :script_head do
|
||||
:javascript
|
||||
var triangle_tcs = tinycolor("#{@conference.color}").monochromatic();
|
||||
var triangle_colors = triangle_tcs.map(function(t) { return t.toHexString(); });
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@
|
|||
%li{:class=> "#{active_nav_li(admin_conference_photos_path(@conference.short_title))}"}
|
||||
= link_to 'Photos', admin_conference_photos_path(@conference.short_title)
|
||||
- if can? :update, @conference
|
||||
%li{:class=> active_nav_li(admin_conference_splashpage_path(@conference.short_title))}
|
||||
= link_to 'Splashpage', admin_conference_splashpage_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(edit_admin_conference_splashpage_path(@conference.short_title))}
|
||||
= link_to 'Splashpage', edit_admin_conference_splashpage_path(@conference.short_title)
|
||||
- if can? :index, @conference.venue
|
||||
%li{:class=> "#{active_nav_li(edit_admin_conference_venue_path(@conference.short_title))}"}
|
||||
= link_to(edit_admin_conference_venue_path(@conference.short_title)) do
|
||||
|
|
|
|||
|
|
@ -8,11 +8,10 @@
|
|||
%p
|
||||
OSEM requires JavaScript to be enabled to function. Please turn on JavaScript in your browser's settings and reload the page to continue.
|
||||
- flash.each do |type, message|
|
||||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
%div{:class=>"alert alert-dismissable #{bootstrap_class_for(type)}", :id=>"flash"}
|
||||
.button.close{"data-dismiss" => "alert", "aria-hidden"=>"true"}
|
||||
×
|
||||
%p
|
||||
= message
|
||||
.row
|
||||
.col-md-12
|
||||
%div{:class=>"alert alert-dismissable #{bootstrap_class_for(type)}", :id=>"flash"}
|
||||
.button.close{"data-dismiss" => "alert", "aria-hidden"=>"true"}
|
||||
×
|
||||
%p
|
||||
= message
|
||||
|
|
@ -15,14 +15,9 @@
|
|||
detectlang: true,
|
||||
autocollect: true
|
||||
};
|
||||
|
||||
$(function() {
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
|
||||
= content_for(:script_head)
|
||||
= javascript_include_tag "//cdn.transifex.com/live.js"
|
||||
|
||||
= yield(:head)
|
||||
%body
|
||||
= render 'layouts/navigation'
|
||||
|
|
@ -31,7 +26,8 @@
|
|||
= render 'layouts/admin'
|
||||
-else
|
||||
#messages
|
||||
= render 'layouts/messages'
|
||||
.container
|
||||
= render 'layouts/messages'
|
||||
#content
|
||||
= yield
|
||||
#footer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue