2014-08-09 18:59:11 +02:00
|
|
|
%h2
|
2014-10-04 18:12:03 +02:00
|
|
|
%em.fa.fa-exclamation-triangle
|
2015-10-23 16:21:42 +02:00
|
|
|
= t '.title'
|
2014-07-01 15:50:39 +02:00
|
|
|
|
2014-10-04 18:12:03 +02:00
|
|
|
- if @event.locality?
|
2015-10-23 16:21:42 +02:00
|
|
|
%h2.warning= t '.warning'
|
2014-10-04 18:12:03 +02:00
|
|
|
|
|
|
|
= form_for @moderation, url: { action: :accept }, html: { method: :put } do |f|
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to moderations_path do
|
2014-10-04 18:12:03 +02:00
|
|
|
%em.fa.fa-arrow-left
|
2015-10-23 16:21:42 +02:00
|
|
|
= t '.ko'
|
2014-10-04 18:12:03 +02:00
|
|
|
|
|
|
|
= f.button do
|
|
|
|
%em.fa.fa-thumbs-up
|
2015-10-23 16:21:42 +02:00
|
|
|
= t '.ok'
|
2014-07-01 15:50:39 +02:00
|
|
|
|
2014-10-04 18:12:03 +02:00
|
|
|
- if ENV['TWITTER_CONSUMER_KEY'] || Rails.env.development?
|
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
%em.fa.fa-twitter
|
|
|
|
Tweet
|
2014-09-03 18:49:17 +02:00
|
|
|
|
2015-10-23 16:21:42 +02:00
|
|
|
%h3= t '.tweet_helper'
|
2014-09-03 18:49:17 +02:00
|
|
|
|
2015-10-23 16:21:42 +02:00
|
|
|
= @event.to_tweet
|
2014-07-01 15:50:39 +02:00
|
|
|
|
2016-09-11 17:40:49 +02:00
|
|
|
- if @event.repeat > 0
|
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
%em.fa.fa-repeat
|
|
|
|
= Event.human_attribute_name :repeat
|
|
|
|
|
|
|
|
%h3= t '.repeat_helper', count: @event.repeat
|
|
|
|
|
|
|
|
%p.rule
|
|
|
|
= Event.human_attribute_name :rule
|
|
|
|
= t @event.rule, scope: 'activerecord.attributes.event.rule_values'
|
|
|
|
|
2014-08-09 18:59:11 +02:00
|
|
|
%fieldset
|
2014-10-04 18:12:03 +02:00
|
|
|
%legend
|
|
|
|
%em.fa.fa-calendar
|
2015-10-23 16:21:42 +02:00
|
|
|
= Event.model_name.human
|
2014-08-09 18:59:11 +02:00
|
|
|
= render file: '/events/show'
|