From f3fce5fc6c5a7142c284393f538dfaa7566cc1f4 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 27 Dec 2015 16:29:11 +0100 Subject: [PATCH] Addition of an edition link directly on the organisations listing. Refs #22 --- app/views/orgas/index.html.haml | 7 +++++-- config/locales/views/en.yml | 2 +- config/locales/views/fr.yml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/orgas/index.html.haml b/app/views/orgas/index.html.haml index cfa2de14..3ef0ea7f 100644 --- a/app/views/orgas/index.html.haml +++ b/app/views/orgas/index.html.haml @@ -15,6 +15,7 @@ %th= sort_link @search, :updated_at, Orga.human_attribute_name(:updated_at) %th/ %th/ + %th/ %tbody - @orgas.each do |orga| @@ -37,8 +38,10 @@ = link_to orga.url do %em.fa.fa-external-link %td - = link_to orga_path(orga, q: params[:q], page: params[:page]), - class: :view_link do + = link_to orga_path(orga, q: params[:q], page: params[:page]) do %em.fa.fa-eye + %td + = link_to edit_orga_path orga do + %em.fa.fa-pencil = paginate @orgas diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 82369ab3..5e1d76cb 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -220,7 +220,7 @@ description." ko: Moderation maps: index: - title: Events map + title: Map of the Free events: Events orgas: Organiser users: diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index 9b1036d8..51bb0304 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -221,7 +221,7 @@ description plus complète." ko: Modération maps: index: - title: Carte des événements + title: Carte du Libre events: Événements orgas: Orga users: