agenda-libre-ruby/app/views/moderations/validate.html.haml

45 lines
902 B
Plaintext
Raw Normal View History

%h2
%em.fa.fa-exclamation-triangle
= t '.title'
2014-07-01 15:50:39 +02:00
- if @event.locality?
%h2.warning= t '.warning'
= 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
- if ENV['TWITTER_CONSUMER_KEY'] || Rails.env.development?
%fieldset
%legend
%em.fa.fa-twitter
Tweet
%h3= t '.tweet_helper'
= @event.to_tweet
2014-07-01 15:50:39 +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'
%fieldset
%legend
%em.fa.fa-calendar
= Event.model_name.human
= render file: '/events/show'