rubycentral/cfp-app

View on GitHub
app/views/staff/proposals/index.html.haml

Summary

Maintainability
Test Coverage
.event-info-bar
  .row
    .col-md-8
      .event-info.event-info-dense
        %strong.event-title= event.name
        - if event.start_date? && event.end_date?
          %span.event-meta
            %i.fa.fa-fw.fa-calendar
            = event.date_range
    .col-md-4.text-right.text-right-responsive
      .event-info.event-info-dense
        %span{:class => "event-meta event-status-badge event-status-#{event.status}"}
          CFP
          = event.status
        - if event.open?
          %span.event-meta
            CFP closes:
            %strong= event.closes_at(:month_day_year)
.row
   

-#.row
-#  .col-sm-offset-6.col-sm-6
-#    .btn-nav.text-right
-#      = link_to event_staff_proposals_path(format: "csv"), id: "download_link", class: "btn btn-info btn-sm" do
-#        %span.glyphicon.glyphicon-download-alt
-#        Download CSV
.row
   

-#- if event.public_tags? && @taggings_count.present?
-#  .row
-#    .col-sm-7
-#      - @taggings_count.sort_by{|k,v| v}.reverse.each_slice(6).to_a.each do |row|
-#        %ul#columns.list-inline
-#          -row.each do |name, count|
-#            %li
-#              .label.label-success
-#                = name
-#                = count

.row
  .col-sm-offset-6.col-sm-6.text-right
    %small.text-right <em>Hint:</em> Hold <kbd>shift</kbd> to sort by multiple columns

.row
  .col-md-12
    %table#organizer-proposals.datatable.table.table-striped.proposal-list
      %thead
        %tr
          %th
          %th
          %th
          %th
          %th
          %th
          %th
          - if event.public_tags?
            %th
          %th
          %th
          %th.actions
        %tr
          %th Score
          %th Ratings
          %th Standard Deviation
          %th Speakers
          %th Talk Title
          %th Track
          %th Session Format
          - if event.public_tags?
            %th Proposal Tags
          %th Reviewer Tags
          %th Status
          %th.actions Soft Actions (Internal)
      %tbody
        = render @proposals