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|
|
2017-05-22 16:49:34 +02:00
|
|
|
.actions
|
|
|
|
= link_to moderations_path do
|
|
|
|
%em.fa.fa-arrow-left
|
|
|
|
= t '.ko'
|
|
|
|
|
|
|
|
= f.button do
|
|
|
|
%em.fa.fa-thumbs-up
|
|
|
|
= 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
|
2018-03-01 20:46:06 +01:00
|
|
|
%em.fab.fa-twitter
|
2014-10-04 18:12:03 +02:00
|
|
|
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
|
|
|
|
2019-11-17 12:56:11 +01:00
|
|
|
- if @event.repeat.positive?
|
2016-09-11 17:40:49 +02:00
|
|
|
%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
|
2019-11-17 12:56:11 +01:00
|
|
|
= render template: '/events/show'
|