From efdb2cd63be471e4aadbcd0c4130b05ff360a9d3 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Tue, 2 Oct 2018 21:29:49 +0300 Subject: [PATCH] Remove duplicate code and style fixes --- app/controllers/proposals_controller.rb | 1 - app/views/schedules/_schedule_item.html.haml | 7 ------- 2 files changed, 8 deletions(-) diff --git a/app/controllers/proposals_controller.rb b/app/controllers/proposals_controller.rb index 63483066..f1c15ad2 100644 --- a/app/controllers/proposals_controller.rb +++ b/app/controllers/proposals_controller.rb @@ -8,7 +8,6 @@ class ProposalsController < ApplicationController # We authorize manually in these actions skip_authorize_resource :event, only: [:confirm, :restart, :withdraw] - def index @event = @program.events.new @event.event_users.new(user: current_user, event_role: 'submitter') diff --git a/app/views/schedules/_schedule_item.html.haml b/app/views/schedules/_schedule_item.html.haml index 785bb678..d72f5e33 100644 --- a/app/views/schedules/_schedule_item.html.haml +++ b/app/views/schedules/_schedule_item.html.haml @@ -15,13 +15,6 @@ "data-user" => current_user.id } = event.title - - if current_user - = link_to('#', onClick: 'starClicked();') do - %span#star{ class: "fa fa-lg #{ event.favourite_users.exists?(current_user.id) ? 'fa-star' : 'fa-star-o' }", | - "aria-hidden" =>"true", | - "data-url" => conference_program_proposal_path(@conference.short_title, event.id), | - "data-user" => current_user.id } - - event.speakers_ordered.each do |speaker| = image_tag speaker.gravatar_url, :class => "img-circle pull-right speaker-pic", | :alt => speaker.name, |