From 320f576641f5b874f318b98df42f7cb195df4e93 Mon Sep 17 00:00:00 2001 From: echarp Date: Fri, 27 Jun 2014 13:46:37 +0200 Subject: [PATCH] =?UTF-8?q?Rajout=20des=20liens=20pour=20valider=20le=20si?= =?UTF-8?q?te,=20du=20point=20de=20vue=20W3C=20et=20accessibilit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/all.css.sass | 4 ++-- app/views/application/infos.haml | 13 +++++++++++++ app/views/events/index.html.haml | 6 +++--- app/views/layouts/application.html.haml | 18 +++++++++--------- config/locales/fr.yml | 5 +++++ 5 files changed, 32 insertions(+), 14 deletions(-) diff --git a/app/assets/stylesheets/all.css.sass b/app/assets/stylesheets/all.css.sass index 76917d4f..8793e6f9 100644 --- a/app/assets/stylesheets/all.css.sass +++ b/app/assets/stylesheets/all.css.sass @@ -14,7 +14,7 @@ font-weight: normal !important html - color: #000000 + color: black line-height: 1.3em font-family: georgia, serif padding-bottom: 6px @@ -29,7 +29,7 @@ body border-bottom: 0px a:link, a:visited - color: #336699 + color: #369 font-weight: bold text-decoration: none a:hover, a:active, a:focus diff --git a/app/views/application/infos.haml b/app/views/application/infos.haml index 5efedd3b..45a553f4 100644 --- a/app/views/application/infos.haml +++ b/app/views/application/infos.haml @@ -1,2 +1,15 @@ :markdown #{t '.content'} + +%a(href="http://validator.w3.org/unicorn/check?ucn_uri=#{root_url}" + style="text-decoration:none;") + %img(src="http://www.w3.org/html/logo/badge/html5-badge-h-css3-graphics-semantics.png" + width="197" height="64" + alt="HTML5 Powered with CSS3 / Styling, Graphics, 3D & Effects, and Semantics" + title="HTML5 Powered with CSS3 / Styling, Graphics, 3D & Effects, and Semantics") + +%a(href="http://wave.webaim.org/report#/#{root_url}") + %img(src="http://wave.webaim.org/img/wavelogo.png" + height="55" + alt="web accessibility evaluation tool" + title="web accessibility evaluation tool") diff --git a/app/views/events/index.html.haml b/app/views/events/index.html.haml index 07536e01..3bcc6408 100644 --- a/app/views/events/index.html.haml +++ b/app/views/events/index.html.haml @@ -45,7 +45,7 @@ .formats =t '.calendar_in' - = link_to('rss', events_url(:rss, tag: params[:tag]))+',' - = link_to 'iCal', events_url(:rss, tag: params[:tag]) + = link_to('rss', events_url(:rss, tag: params[:tag], region: params[:region]))+',' + = link_to 'iCal', events_url(:rss, tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region]) ou - = link_to 'calendrier Google', events_url(:rss, tag: params[:tag]) + = link_to 'calendrier Google', "http://www.google.com/calendar/render?cid=#{events_url(format: :ics, tag: params[:tag], region: params[:region])}" diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index cce78f09..58731d72 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -32,7 +32,7 @@ = render 'layouts/flash', flash: flash if flash.present? %header.top - = image_tag 'baby_gnu_adl.png', alt: 'baby gnu logo', class: :logo + = image_tag 'baby_gnu_adl.png', alt: 'Baby GNU', class: :logo %h1= link_to t('.title'), root_url %h2=t '.subtitle' @@ -43,20 +43,20 @@ %ul.countries %li = link_to 'http://www.agendadulibre.org' do - = image_tag 'france.png' - France + = image_tag 'france.png', alt: t('.flag') + =t '.france' %li = link_to 'http://www.agendadulibre.qc.ca' do - = image_tag 'quebec.png' - Québec + = image_tag 'quebec.png', alt: t('.flag') + =t '.quebec' %li = link_to 'http://www.agendadulibre.be' do - = image_tag 'belgique.png' - Belgique + = image_tag 'belgique.png', alt: t('.flag') + =t '.belgique' %li = link_to 'http://www.agendadulibre.ch' do - = image_tag 'suisse.png' - Suisse + = image_tag 'suisse.png', alt: t('.flag') + =t '.suisse' %main = yield diff --git a/config/locales/fr.yml b/config/locales/fr.yml index e2a08842..fd07fa98 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -96,6 +96,11 @@ fr: login: Authentication title: L'Agenda du Libre subtitle: L'agenda des évènements du Logiciel Libre en France + flag: Drapeau + france: France + quebec: Québec + belgique: Belgique + suisse: Suisse propose: Proposer un évènement rss: Flux RSS ical: Calendriers iCal