Make it possible to view proposals from the schedule
This commit is contained in:
parent
9d668ad1b1
commit
c18400f9df
4 changed files with 100 additions and 120 deletions
|
|
@ -1,87 +1,44 @@
|
|||
.row-fluid
|
||||
.span10
|
||||
.span3
|
||||
= image_tag @event.submitter.gravatar_url(:size => 200), :class => "img-rounded"
|
||||
%h3
|
||||
= @event.title
|
||||
%br
|
||||
%span.muted
|
||||
= @event.subtitle
|
||||
|
||||
.span2
|
||||
- if @event.transition_possible? :confirm
|
||||
= link_to "Confirm", conference_proposal_confirm_path(@conference.short_title, @event), :method => :put, :class => "btn btn-mini btn-success"
|
||||
= link_to "Edit", edit_conference_proposal_path(@conference.short_title, @event.id), :class => "btn btn-mini btn-primary"
|
||||
= link_to "Withdraw", conference_proposal_path(@conference.short_title, @event.id), :method => :delete,
|
||||
:confirm => "Are you sure you want to withdraw this proposal?", :class => "btn btn-mini btn-danger"
|
||||
|
||||
.row-fluid
|
||||
.span12
|
||||
%table.table
|
||||
%tr
|
||||
%td
|
||||
%b Type
|
||||
%td
|
||||
- if @event.event_type
|
||||
= @event.event_type.title
|
||||
- if !@event.track.nil?
|
||||
%tr
|
||||
%td
|
||||
%b Track
|
||||
%td
|
||||
= @event.track.name
|
||||
- if !@event.room.nil?
|
||||
%tr
|
||||
%td
|
||||
%b Room
|
||||
%td
|
||||
= @event.room.name
|
||||
- if !@event.start_time.nil?
|
||||
%tr
|
||||
%td
|
||||
%b Scheduled time
|
||||
%td
|
||||
= @event.start_time
|
||||
%tr
|
||||
%td
|
||||
%b Submitted on
|
||||
%td= @event.created_at
|
||||
%tr
|
||||
%td
|
||||
%b Last updated on
|
||||
%td= @event.updated_at
|
||||
%tr
|
||||
%td
|
||||
%b Abstract
|
||||
%td= simple_format(@event.abstract)
|
||||
%tr
|
||||
%td
|
||||
%b Description
|
||||
%td= simple_format(@event.description)
|
||||
- if @event.event_attachments.size > 0
|
||||
%table.table
|
||||
%thead
|
||||
%th
|
||||
%b Filename
|
||||
%th
|
||||
%b Title
|
||||
%th
|
||||
%b Size
|
||||
%th
|
||||
%b Public?
|
||||
%th
|
||||
%tbody
|
||||
- @event.event_attachments.each do |a|
|
||||
%tr
|
||||
%td
|
||||
= link_to a.attachment_file_name, conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id)
|
||||
%td
|
||||
= a.title
|
||||
%td
|
||||
= number_to_human_size a.attachment_file_size
|
||||
%td
|
||||
- if a.public?
|
||||
Public
|
||||
- else
|
||||
Not Public
|
||||
%td
|
||||
= link_to "Delete", conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id),
|
||||
:method => :delete, :confirm => "Are you sure you want to delete this attachment? It's permanant!"
|
||||
= @event.submitter.public_name
|
||||
- if @event.submitter.company
|
||||
%br
|
||||
%span.muted= @event.submitter.company
|
||||
-if @event.submitter.biography
|
||||
%p= @event.submitter.biography
|
||||
.span9
|
||||
.row-fluid
|
||||
.span12
|
||||
%h3.muted
|
||||
Video coming soon! Meanwhile...
|
||||
.row-fluid
|
||||
.span12.flexvideo
|
||||
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=>"http://www.youtube.com/embed/Eiv4e5ZxTmg"}
|
||||
.row-fluid
|
||||
.span8
|
||||
%h2
|
||||
= @event.title
|
||||
- if @event.subtitle
|
||||
%br
|
||||
%span.muted
|
||||
= @event.subtitle
|
||||
%p
|
||||
= simple_format(@event.abstract)
|
||||
.span4
|
||||
%dl
|
||||
%dt Speaker:
|
||||
%dd= @event.submitter.public_name
|
||||
%dt Date:
|
||||
%dd= @event.start_time.strftime("%Y %B %e")
|
||||
- if @event.language
|
||||
%dt Language:
|
||||
%dd= @event.language
|
||||
%dt Conference:
|
||||
%dd= @event.conference.title
|
||||
- if @event.track_id
|
||||
%dt Track:
|
||||
%dd
|
||||
%span.label
|
||||
= @event.track.name
|
||||
Loading…
Add table
Add a link
Reference in a new issue