osem-fcy/app/views/home/index.html.haml

39 lines
1.8 KiB
Text
Raw Normal View History

2013-01-07 09:04:09 +01:00
.container-fluid
2013-01-17 15:56:56 +01:00
%h1.center-text{:style => "padding-bottom: 30px"}
2013-01-07 09:04:09 +01:00
Upcoming Conferences
- @conferences.each do |conference|
2013-01-17 06:58:57 +01:00
- if conference.cfp_open? || conference.registration_open?
2013-01-07 09:04:09 +01:00
.well
2013-01-17 15:56:56 +01:00
.row-fluid
.span3
= image_tag conference.logo(:original)
.span9
2013-01-17 15:56:56 +01:00
%h2.center-text
= conference.title
%h4.center-text
= conference.date_range_string
.center-text
%i
2013-02-11 17:56:50 +01:00
%a= link_to conference.venue.name, conference.venue.website, :target => "_new"
2013-01-17 15:56:56 +01:00
,
%a= link_to conference.venue.address, "http://maps.google.com/maps?q=#{conference.venue.address}", :target => "_new"
2013-01-17 15:56:56 +01:00
.row-fluid
.span12
.center-text
= conference.venue.description
2013-01-07 09:04:09 +01:00
.row-fluid{:style => "padding-top: 30px;"}
2013-01-17 15:56:56 +01:00
.span3
- if conference.registration_open?
- if conference.user_registered?(current_user)
= link_to "Modify Registration", register_conference_path(conference.short_title), :class => "btn btn-success btn-large"
- else
= link_to "Register", register_conference_path(conference.short_title), :class => "btn btn-success btn-large"
2013-01-07 09:04:09 +01:00
- else
%b Registration is closed.
2013-01-17 15:56:56 +01:00
.span9
2013-01-17 06:58:57 +01:00
- if conference.cfp_open?
- if !current_user.nil? && current_user.person.proposal_count(conference) > 0
2013-01-17 15:56:56 +01:00
= link_to "View My Proposals", conference_proposal_index_path(conference.short_title), :class => "btn btn-success btn-large pull-right"
2013-01-17 06:58:57 +01:00
- else
2013-01-17 15:56:56 +01:00
= link_to "Submit Proposal", conference_proposal_index_path(conference.short_title), :class => "btn btn-success btn-large pull-right"