display current events based on track
This commit is contained in:
parent
e82a3e1727
commit
514a88e0be
10 changed files with 56 additions and 39 deletions
13
app/views/admin/conferences/_conference_tweets.html.haml
Normal file
13
app/views/admin/conferences/_conference_tweets.html.haml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h2
|
||||
= "##{@conference.contact.social_tag} Tweets"
|
||||
%div#tweet-container
|
||||
- @tweets.each do |tweet|
|
||||
%div#tweet
|
||||
%blockquote.twitter-tweet
|
||||
%p{:lang => "en"}
|
||||
= tweet.text
|
||||
= link_to "— @" + tweet.user.name, "http://www.twitter.com/#{tweet.user.name}", target: "_blank"
|
||||
= link_to tweet.url, tweet.url.to_s
|
||||
14
app/views/admin/conferences/_current_events.html.haml
Normal file
14
app/views/admin/conferences/_current_events.html.haml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.container
|
||||
.row.row-centered
|
||||
- @current_event_schedules.each do |track, event_schedules|
|
||||
.col-md-4.col-sm-4.col-centered
|
||||
%h2.text-center
|
||||
= track
|
||||
- event_schedules.each do |event_schedule|
|
||||
%h3.text-center
|
||||
= event_schedule.event.title
|
||||
%h4.text-center
|
||||
presented by
|
||||
= event_schedule.event.speaker_names
|
||||
in
|
||||
= event_schedule.event.room.name
|
||||
12
app/views/admin/conferences/_sponsors.html.haml
Normal file
12
app/views/admin/conferences/_sponsors.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h2 Sponsors
|
||||
%div#sponsor-container
|
||||
- @conference.sponsorship_levels.each do |sponsorship_level|
|
||||
-if sponsorship_level.sponsors.any?
|
||||
- sponsorship_level.sponsors.each_slice(3) do |slice|
|
||||
.row.row-centered#sponsor
|
||||
- slice.each do |sponsor|
|
||||
.col-md-4.col-sm-4.col-centered.col-top
|
||||
= image_tag get_logo(sponsor), class: "img-responsive img-sponsor img-sponsor-#{sponsorship_level.position}"
|
||||
23
app/views/admin/conferences/conference_info.html.haml
Normal file
23
app/views/admin/conferences/conference_info.html.haml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
.container
|
||||
- if @conference.present?
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%div#conference-header
|
||||
%div.conference-logo
|
||||
= image_tag(@conference.picture_url, class: 'img-responsive') if @conference.picture?
|
||||
%div.conference-heading
|
||||
%h1
|
||||
= @conference.title
|
||||
%span
|
||||
= @conference.short_title
|
||||
- if @conference.description.present?
|
||||
%h3
|
||||
= @conference.description
|
||||
- if @current_event_schedules.present?
|
||||
.row#current-events
|
||||
= render 'current_events'
|
||||
- if @conference.contact.social_tag.present? && @tweets.any?
|
||||
.row#conference-tweets
|
||||
= render 'conference_tweets'
|
||||
- if @sponsors.any?
|
||||
= render 'sponsors'
|
||||
4
app/views/admin/conferences/conference_info.js.haml
Normal file
4
app/views/admin/conferences/conference_info.js.haml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
$('#current-events').html("#{escape_javascript(render 'current_events', data: @current_events)}");
|
||||
$('#conference-tweets').html("#{escape_javascript(render 'conference_tweets', data: @tweets)}");
|
||||
$('#tweet-container').children().hide();
|
||||
$('#tweet-container').children().eq(0).show();
|
||||
Loading…
Add table
Add a link
Reference in a new issue