diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8991b8b..66bf903 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -27,12 +27,6 @@ module ApplicationHelper icon(proposition_status_glyph(status)) end - def proposition_status(record) - klass = record.class - output = '' - - end - def action_buttons(conference, record, actions = [:index, :show, :edit, :destroy]) klass = record.class output = '' @@ -54,7 +48,7 @@ module ApplicationHelper if actions.include? :edit output += link_to(icon(:edit), [:edit, :management, conference, record], { title: t('actions.edit.button', model: klass.model_name.human), - class: 'btn btn-primary' + class: 'btn btn-warning' }) end diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index 5d717b9..08710ed 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -3,7 +3,8 @@ module EventsHelper event.participants.map do |participant| if participant.personal_profile(event.conference).present? profile = participant.personal_profile(event.conference) - link_to icon(:user, profile.name), management_conference_personal_profile_path(profile, conference_id: event.conference.id) + link_to icon(:user, profile.name), + management_conference_personal_profile_path(profile, conference_id: event.conference.id) else link_to icon('user-plus', participant.email), new_management_conference_personal_profile_path(conference_id: event.conference.id, diff --git a/app/views/management/events/show.html.slim b/app/views/management/events/show.html.slim index 9ed8924..d5f79c6 100644 --- a/app/views/management/events/show.html.slim +++ b/app/views/management/events/show.html.slim @@ -6,7 +6,7 @@ h4 = t 'events.metadata', type: @event.event_type.name, language: t("locales.#{@event.language}").mb_chars.downcase, length: @event.length .pull-right.heading-actions - .dropdown + .dropdown> button class="btn btn-sm dropdown-toggle btn-#{proposition_status_class(@event.status)}" type="button" data-toggle="dropdown" title="#{t "status.#{@event.status}"}" = icon(proposition_status_glyph(@event.status)) span.caret<