Travail sur l'accessibilité
This commit is contained in:
parent
320f576641
commit
0e6535ac93
4
Gemfile
4
Gemfile
@ -19,8 +19,6 @@ gem 'therubyracer', platforms: :ruby
|
|||||||
|
|
||||||
# Use jquery as the JavaScript library
|
# Use jquery as the JavaScript library
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
# Messages and notifications displayed nicely using javascript
|
|
||||||
gem 'gritter'
|
|
||||||
|
|
||||||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
||||||
gem 'turbolinks'
|
gem 'turbolinks'
|
||||||
@ -49,6 +47,8 @@ gem 'spring', group: :development
|
|||||||
gem 'haml-rails'
|
gem 'haml-rails'
|
||||||
gem 'compass-rails'
|
gem 'compass-rails'
|
||||||
gem 'modernizr-rails'
|
gem 'modernizr-rails'
|
||||||
|
# Using presentation framework http://foundation.zurb.com
|
||||||
|
gem 'foundation-rails'
|
||||||
gem 'activeadmin', github: 'gregbell/active_admin'
|
gem 'activeadmin', github: 'gregbell/active_admin'
|
||||||
|
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
|
@ -113,8 +113,10 @@ GEM
|
|||||||
formatador (0.2.5)
|
formatador (0.2.5)
|
||||||
formtastic (2.3.0.rc3)
|
formtastic (2.3.0.rc3)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
|
foundation-rails (5.3.0.1)
|
||||||
|
railties (>= 3.1.0)
|
||||||
|
sass (>= 3.2.0)
|
||||||
fssm (0.2.10)
|
fssm (0.2.10)
|
||||||
gritter (1.1.0)
|
|
||||||
guard (2.6.1)
|
guard (2.6.1)
|
||||||
formatador (>= 0.2.4)
|
formatador (>= 0.2.4)
|
||||||
listen (~> 2.7)
|
listen (~> 2.7)
|
||||||
@ -298,7 +300,7 @@ DEPENDENCIES
|
|||||||
differ
|
differ
|
||||||
email_validator
|
email_validator
|
||||||
font-awesome-rails
|
font-awesome-rails
|
||||||
gritter
|
foundation-rails
|
||||||
guard-brakeman
|
guard-brakeman
|
||||||
guard-bundler
|
guard-bundler
|
||||||
guard-livereload
|
guard-livereload
|
||||||
|
@ -1,7 +1 @@
|
|||||||
$(document).ready ->
|
$(document).ready ->
|
||||||
$('#flash_messages .flash, #error_explanation.flash').removeClass('flash').each ->
|
|
||||||
$(this).hide()
|
|
||||||
jQuery.gritter.add
|
|
||||||
image: "/assets/#{$(this).attr('class')}.png",
|
|
||||||
title: $(this).children('h2').text(),
|
|
||||||
text: $(this).children('p').text()
|
|
||||||
|
@ -7,12 +7,6 @@
|
|||||||
line-height: 1em
|
line-height: 1em
|
||||||
@include transition-duration(0.5s)
|
@include transition-duration(0.5s)
|
||||||
|
|
||||||
[class^="fa-"], [class*=" fa-"]
|
|
||||||
font-family: FontAwesome, georgia, serif !important
|
|
||||||
&:before
|
|
||||||
font-style: normal
|
|
||||||
font-weight: normal !important
|
|
||||||
|
|
||||||
html
|
html
|
||||||
color: black
|
color: black
|
||||||
line-height: 1.3em
|
line-height: 1.3em
|
||||||
@ -29,14 +23,20 @@ body
|
|||||||
border-bottom: 0px
|
border-bottom: 0px
|
||||||
|
|
||||||
a:link, a:visited
|
a:link, a:visited
|
||||||
color: #369
|
color: #258
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
a:hover, a:active, a:focus
|
a:hover, a:active, a:focus
|
||||||
color: #2E97FF
|
color: #2E97FF
|
||||||
|
|
||||||
.js #flash_messages
|
#flash_messages
|
||||||
display: none
|
font-size: x-large
|
||||||
|
.flash.notice
|
||||||
|
color: green
|
||||||
|
|
||||||
|
.fa:before
|
||||||
|
font-style: normal
|
||||||
|
font-weight: normal !important
|
||||||
|
|
||||||
header.top
|
header.top
|
||||||
position: relative
|
position: relative
|
||||||
@ -110,7 +110,9 @@ main
|
|||||||
line-height: 1.1em
|
line-height: 1.1em
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
vertical-align: baseline
|
vertical-align: baseline
|
||||||
background-color: buttonface
|
select, option
|
||||||
|
color: black
|
||||||
|
background-color: white
|
||||||
|
|
||||||
.field_with_errors
|
.field_with_errors
|
||||||
display: inline
|
display: inline
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
||||||
* file per style scope.
|
* file per style scope.
|
||||||
*
|
*
|
||||||
*= require gritter
|
|
||||||
*= require_tree .
|
*= require_tree .
|
||||||
*= require_self
|
*= require_self
|
||||||
*/
|
*/
|
@ -7,7 +7,6 @@ form.region_selector
|
|||||||
label
|
label
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
|
||||||
header.calendar-header
|
header.calendar-header
|
||||||
font-size: 1.5em
|
font-size: 1.5em
|
||||||
margin-top: 1em
|
margin-top: 1em
|
||||||
@ -44,14 +43,14 @@ body.events.index table
|
|||||||
background-color: #A1C3E7
|
background-color: #A1C3E7
|
||||||
&.today
|
&.today
|
||||||
border: 1px solid #FFB578
|
border: 1px solid #FFB578
|
||||||
background-color: #ffe0c7
|
background-color: #FFE0C7
|
||||||
.day_number
|
.day_number
|
||||||
color: #544f32
|
color: #531
|
||||||
font-size: 0.8em
|
font-size: 0.8em
|
||||||
margin-top: -1px
|
margin-top: -1px
|
||||||
.event
|
.event
|
||||||
a:link, a:visited
|
a:link, a:visited
|
||||||
color: #8F4900
|
color: #730
|
||||||
&.future
|
&.future
|
||||||
border-color: rgb(150, 207, 255)
|
border-color: rgb(150, 207, 255)
|
||||||
background-color: #C6E5FF
|
background-color: #C6E5FF
|
||||||
@ -62,16 +61,17 @@ body.events.index table
|
|||||||
border: none
|
border: none
|
||||||
background-color: #ededed
|
background-color: #ededed
|
||||||
.day_number
|
.day_number
|
||||||
|
color: #444
|
||||||
font-size: 0.6em
|
font-size: 0.6em
|
||||||
li
|
li
|
||||||
color: #555
|
color: #555
|
||||||
.event
|
.event
|
||||||
a:link, a:visited
|
a:link, a:visited
|
||||||
color: #888
|
color: #444
|
||||||
|
|
||||||
.day_number
|
.day_number
|
||||||
float: left
|
float: left
|
||||||
color: #727070
|
color: #111
|
||||||
margin: 0 1px 3px 1px
|
margin: 0 1px 3px 1px
|
||||||
font-size: 0.6em
|
font-size: 0.6em
|
||||||
font-weight: bolder
|
font-weight: bolder
|
||||||
@ -101,7 +101,7 @@ body.events.index table
|
|||||||
content: ':'
|
content: ':'
|
||||||
margin-right: -1px
|
margin-right: -1px
|
||||||
a:link, a:visited
|
a:link, a:visited
|
||||||
color: #666
|
color: #111
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
&:hover
|
&:hover
|
||||||
color: black
|
color: black
|
||||||
|
@ -4,6 +4,7 @@ class EventsController < ApplicationController
|
|||||||
before_filter :set_mailer_host
|
before_filter :set_mailer_host
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
flash[:notice] = 'hello world'
|
||||||
@events = Event.moderated
|
@events = Event.moderated
|
||||||
if (params[:region] && params[:region].present? && params[:region] != 'all')
|
if (params[:region] && params[:region].present? && params[:region] != 'all')
|
||||||
@events = @events.region(params[:region])
|
@events = @events.region(params[:region])
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#flash_messages
|
#flash_messages
|
||||||
- flash.each do |key, value|
|
- flash.each do |key, value|
|
||||||
.flash(class="#{key}")
|
.flash(class="#{key}")= value
|
||||||
%h2=t key, scope: [:gflash, :titles]
|
|
||||||
%p= value
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
%meta(name='dcterms.subject' content='agenda')
|
%meta(name='dcterms.subject' content='agenda')
|
||||||
|
|
||||||
= favicon_link_tag '/favicon.ico'
|
= favicon_link_tag '/favicon.ico'
|
||||||
= auto_discovery_link_tag :rss, { controller: 'events', format: :rss }
|
= auto_discovery_link_tag :rss, { controller: '/events', format: :rss }
|
||||||
|
|
||||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||||
@ -29,8 +29,6 @@
|
|||||||
// /https://github.com/aFarkas/iepp/wiki
|
// /https://github.com/aFarkas/iepp/wiki
|
||||||
|
|
||||||
%body(class = "#{controller.controller_name} #{controller.action_name}")
|
%body(class = "#{controller.controller_name} #{controller.action_name}")
|
||||||
= render 'layouts/flash', flash: flash if flash.present?
|
|
||||||
|
|
||||||
%header.top
|
%header.top
|
||||||
= image_tag 'baby_gnu_adl.png', alt: 'Baby GNU', class: :logo
|
= image_tag 'baby_gnu_adl.png', alt: 'Baby GNU', class: :logo
|
||||||
%h1= link_to t('.title'), root_url
|
%h1= link_to t('.title'), root_url
|
||||||
@ -58,6 +56,8 @@
|
|||||||
= image_tag 'suisse.png', alt: t('.flag')
|
= image_tag 'suisse.png', alt: t('.flag')
|
||||||
=t '.suisse'
|
=t '.suisse'
|
||||||
|
|
||||||
|
= render 'layouts/flash', flash: flash if flash.present?
|
||||||
|
|
||||||
%main
|
%main
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
|
@ -27,20 +27,30 @@
|
|||||||
Du
|
Du
|
||||||
=l event.start_time, format: :at
|
=l event.start_time, format: :at
|
||||||
au
|
au
|
||||||
#{l event.end_time, format: :at}
|
=l event.end_time, format: :at
|
||||||
%td= event.city
|
%td= event.city
|
||||||
%td= event.region.name
|
%td= event.region.name
|
||||||
%td= time_ago_in_words event.submission_time.to_date
|
%td= time_ago_in_words event.submission_time.to_date
|
||||||
%th.actions
|
%th.actions
|
||||||
= link_to t('edit'), edit_moderation_path(event), class: 'fa-pencil'
|
= link_to edit_moderation_path event do
|
||||||
|
%em.fa.fa-pencil
|
||||||
|
=t 'edit'
|
||||||
\-
|
\-
|
||||||
= link_to t('validate'), edit_moderation_path(event), class: 'fa-thumbs-up'
|
= link_to edit_moderation_path event do
|
||||||
|
%em.fa.fa-thumbs-up
|
||||||
|
=t 'validate'
|
||||||
\-
|
\-
|
||||||
= link_to t('refuse'), edit_moderation_path(event), class: 'fa-thumbs-down'
|
= link_to edit_moderation_path event do
|
||||||
|
%em.fa.fa-thumbs-down
|
||||||
|
=t 'refuse'
|
||||||
%br/
|
%br/
|
||||||
= link_to t('.askInfos'), new_moderation_note_path(event, envoiParMail: :oui), class: 'fa-bullhorn'
|
= link_to new_moderation_note_path event, envoiParMail: :oui do
|
||||||
|
%em.fa.fa-bullhorn
|
||||||
|
=t '.askInfos'
|
||||||
%br/
|
%br/
|
||||||
= link_to t('.createNote'), new_moderation_note_path(event), class: 'fa-files-o'
|
= link_to new_moderation_note_path event do
|
||||||
|
%em.fa.fa-files-o
|
||||||
|
=t '.createNote'
|
||||||
|
|
||||||
- event.notes.each do |note|
|
- event.notes.each do |note|
|
||||||
%tr
|
%tr
|
||||||
|
Loading…
Reference in New Issue
Block a user