From 4c641420b919b67d3f2a4d48319c960e8216d61a Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 17 May 2014 17:48:55 +0200 Subject: [PATCH] =?UTF-8?q?Une=20page=20de=20contact,=20=C3=A9ditable=20en?= =?UTF-8?q?=20markdown=20depuis=20la=20bd,=20est=20rajout=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/application/contact.haml | 2 ++ app/views/layouts/application.html.haml | 2 +- config/routes.rb | 1 + db/seeds.rb | 11 ++++++++++- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 app/views/application/contact.haml diff --git a/app/views/application/contact.haml b/app/views/application/contact.haml new file mode 100644 index 00000000..845f4076 --- /dev/null +++ b/app/views/application/contact.haml @@ -0,0 +1,2 @@ +- markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true) += raw markdown.render t '.content' diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 74033a12..b3245053 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -69,5 +69,5 @@ = link_to t('.tags'), tags_url = link_to t('.infos'), application_infos_url = link_to t('.stats'), stats_regions_url - = link_to t('.contact'), users_url + = link_to t('.contact'), application_contact_url = link_to t('.moderation'), moderations_url diff --git a/config/routes.rb b/config/routes.rb index 4fb88e96..466a2d45 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,7 @@ Rails.application.routes.draw do get 'map/index' get 'application/infos' + get 'application/contact' resources :users resources :events diff --git a/db/seeds.rb b/db/seeds.rb index 834b7471..57a6fab2 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -345,5 +345,14 @@ Bien que le logiciel faisant fonctionner l'Agenda du Libre soit spécifique, d'a * Ajout du schéma des [tables SQL](http://www.agendadulibre.org/svn/trunk/schema.sql) #### 05/06/2005 -* Lancement du site" } +* Lancement du site" }, + + { locale: 'fr', key: 'application.contact.content', + value: "## Contact + +Pour contacter les modérateurs du site *Agenda du Libre*: + +* Par courrier électronique, à l'adresse moderateurs@agendadulibre.org +* Par [IRC](http://fr.wikipedia.org/wiki/IRC), sur le canal `#agendadulibre` du réseau *Freenode*" } + ])