parent
e4797e474b
commit
aaaeb323bc
@ -1,65 +1,63 @@
|
||||
%h2
|
||||
= t '.title'
|
||||
«
|
||||
%em= params[:id]
|
||||
»
|
||||
%em.fa.fa-tag
|
||||
%em= title params[:id]
|
||||
|
||||
%nav
|
||||
= link_to tags_path, class: :back do
|
||||
%em.fa.fa-arrow-left
|
||||
= Event.human_attribute_name(:tag).pluralize
|
||||
\/
|
||||
= link_to events_path tag: params[:id] do
|
||||
%em.fa.fa-calendar
|
||||
Agenda
|
||||
\/
|
||||
= link_to events_path format: :rss, tag: params[:id] do
|
||||
%em.fa.fa-rss
|
||||
RSS
|
||||
\/
|
||||
= link_to events_path format: :ics, tag: params[:id] do
|
||||
%em.fa.fa-th-list
|
||||
iCal
|
||||
\/
|
||||
= link_to maps_path tag: params[:id] do
|
||||
%em.fa.fa-map-marker
|
||||
OpenStreetMap
|
||||
\/
|
||||
= link_to maps_path format: :json, tag: params[:id] do
|
||||
%em.fa.fa-dot-circle-o
|
||||
GeoJSON
|
||||
%aside
|
||||
%h1
|
||||
%em.fa.fa-link
|
||||
= t '.links'
|
||||
|
||||
- if @events_future.any? || @events_past.any?
|
||||
%fieldset
|
||||
%legend
|
||||
%em.fa.fa-calendar
|
||||
= Event.model_name.human.pluralize
|
||||
- if @events_future.any?
|
||||
%h3=raw t 'future', count: @events_future.count
|
||||
%ul.fa-ul
|
||||
- @events_future.order('start_time asc').each do |event|
|
||||
%li
|
||||
= link_to event do
|
||||
- if event.locality?
|
||||
%em.locality.fa-li.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
||||
- else
|
||||
%em.locality.fa-li.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
||||
%em.city= event.city
|
||||
= event.title
|
||||
.date= display_date event
|
||||
%ul.fa-ul
|
||||
%li
|
||||
= link_to tags_path, class: :back do
|
||||
%em.fa.fa-li.fa-arrow-left
|
||||
= Event.human_attribute_name :tags
|
||||
%li
|
||||
= link_to events_path tag: params[:id] do
|
||||
%em.fa.fa-li.fa-calendar
|
||||
Agenda
|
||||
%li
|
||||
= link_to events_path format: :rss, tag: params[:id] do
|
||||
%em.fa.fa-li.fa-rss
|
||||
RSS
|
||||
%li
|
||||
= link_to events_path format: :ics, tag: params[:id] do
|
||||
%em.fa.fa-li.fa-th-list
|
||||
iCal
|
||||
%li
|
||||
= link_to maps_path tag: params[:id] do
|
||||
%em.fa.fa-li.fa-map-marker
|
||||
OpenStreetMap
|
||||
%li
|
||||
= link_to maps_path format: :json, tag: params[:id] do
|
||||
%em.fa.fa-li.fa-dot-circle-o
|
||||
GeoJSON
|
||||
|
||||
- if @events_past.any?
|
||||
%h3=raw t 'past', count: @events_past.count
|
||||
%ul.fa-ul
|
||||
- @events_past.order('start_time desc').each do |event|
|
||||
%li
|
||||
= link_to event do
|
||||
- if event.locality?
|
||||
%em.locality.fa-li.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
||||
- else
|
||||
%em.locality.fa-li.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
||||
%em.city= event.city
|
||||
= event.title
|
||||
.date= display_date event
|
||||
- if @events_future.any? || @events_past.any?
|
||||
- if @events_future.any?
|
||||
%h3= raw t '.future'
|
||||
%ul.fa-ul
|
||||
- @events_future.order('start_time asc').each do |event|
|
||||
%li
|
||||
= link_to event do
|
||||
- if event.locality?
|
||||
%em.locality.fa-li.fa.fa-globe
|
||||
- else
|
||||
%em.locality.fa-li.fa.fa-shield
|
||||
%em.city= event.city
|
||||
= event.title
|
||||
.date= display_date event
|
||||
|
||||
#map.events(data-url="#{maps_path format: :json, tag: params[:id]}")
|
||||
- if @events_past.any?
|
||||
%h3= raw t '.past'
|
||||
%ul.fa-ul
|
||||
- @events_past.order('start_time desc').each do |event|
|
||||
%li
|
||||
= link_to event do
|
||||
- if event.locality?
|
||||
%em.locality.fa-li.fa.fa-globe
|
||||
- else
|
||||
%em.locality.fa-li.fa.fa-shield
|
||||
%em.city= event.city
|
||||
= event.title
|
||||
.date= display_date event
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1,21 @@
|
||||
(function() {
|
||||
$(document).on('turbolinks:load', function() {
|
||||
return tinyMCE.init({
|
||||
schema: 'html5',
|
||||
menubar: false,
|
||||
language: 'fr_FR',
|
||||
selector: 'textarea.description',
|
||||
content_css: '/assets/application-2206cdbaf19b5e0a020de5739e2c911351d6bdd80a0dac961f79729f718ae851.css',
|
||||
entity_encoding: 'raw',
|
||||
add_unload_trigger: true,
|
||||
browser_spellcheck: true,
|
||||
toolbar: [' bold italic strikethrough | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify | link image media insertdatetime charmap table | undo redo | searchreplace | code visualblocks preview fullscreen'],
|
||||
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print, preview, table, fullscreen, searchreplace, media, insertdatetime, visualblocks, visualchars, wordcount, contextmenu, code'
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('turbolinks:before-cache', function() {
|
||||
return tinymce.remove();
|
||||
});
|
||||
|
||||
}).call(this);
|
Binary file not shown.
Loading…
Reference in new issue