Implement consistent admin interface

* Consistent route/model/controller/view layout
* Get rid of unused photos, speakers, dietchoices, social_events controllers
* Drop unused :public from Rooms and :description from CallForPapers
This commit is contained in:
Henne Vogelsang 2014-11-25 10:47:18 +01:00
parent f6a87331be
commit 28063129c7
133 changed files with 1461 additions and 1461 deletions

View file

@ -4,11 +4,11 @@
%b Rating
%td
- if @event.average_rating.to_f > 0
#{@event.average_rating}/#{@conference.call_for_papers.rating}
#{@event.average_rating}/#{@conference.call_for_paper.rating}
- else
Rating: 0/#{@conference.call_for_papers.rating}
Rating: 0/#{@conference.call_for_paper.rating}
- @conference.call_for_papers.rating.times do |counter|
- @conference.call_for_paper.rating.times do |counter|
- if @event.average_rating.to_f.round == counter+1
= label_tag "label_rating", "", :class => "avgrating", :avgrate => true
= javascript_tag "$('label[avgrate=true]').prevAll().andSelf().addClass('bright');"
@ -27,7 +27,7 @@
%td
%b Your vote
%td
- @conference.call_for_papers.rating.times do |counter|
- @conference.call_for_paper.rating.times do |counter|
- voted = @event.voted?(@event, current_user)
- if voted && voted.rating == counter+1
= link_to "", vote_admin_conference_event_path(@conference.short_title, @event, :rating => counter+1), :remote => true, :id =>"label#{counter+1}", :class => "myrating", :voted => true
@ -42,7 +42,7 @@
%td
= rate.name
%td
- @conference.call_for_papers.rating.times do |counter|
- @conference.call_for_paper.rating.times do |counter|
- voted = @event.voted?(@event, rate.user)
- if voted && voted.rating == counter+1
= label_tag "label#{counter+1}", "", :class => "othersrating", :voted => true