Plus d'outline et tous les liens pour la modération

This commit is contained in:
echarp 2014-01-11 10:51:19 +01:00
parent 19193f1680
commit 6844cac3a0
6 changed files with 22 additions and 10 deletions

View File

@ -22,6 +22,10 @@
text-align: right
font-style: italic
margin-top: 15px
th.actions
padding: 0
a
font-weight: normal
main > h3
font-size: inherit

View File

@ -29,6 +29,7 @@
background-color: #FFB
@include border-radius(0.8em)
&:focus
outline: 0
background-color: #F0F8FF !important
input[type=submit]
border: none

View File

@ -1,19 +1,19 @@
%h2=t '.title'
= form_for resource, as: resource_name, url: session_path(resource_name) do |f|
%div.field
.field
= f.label :login
= f.text_field :login, autofocus: true
%div.field
.field
= f.label :password
= f.password_field :password
- if devise_mapping.rememberable?
%div
.field
= f.check_box :remember_me
= f.label :remember_me
%div= f.submit t('.sign_in')
.actions= f.submit t('.sign_in')
= render "devise/shared/links"

View File

@ -31,12 +31,16 @@
%td= event.city
%td= event.region.name
%td= time_ago_in_words event.submission_time.to_date
%td
= link_to t('edit'), edit_moderation_path(event)
%th.actions
= link_to t('edit'), edit_moderation_path(event), class: 'fa-pencil'
\-
= link_to t('validate'), edit_moderation_path(event)
= link_to t('validate'), edit_moderation_path(event), class: 'fa-thumbs-up'
\-
= link_to t('refuse'), edit_moderation_path(event)
= link_to t('refuse'), edit_moderation_path(event), class: 'fa-thumbs-down'
%br/
= link_to t('.askInfos'), edit_moderation_path(event), class: 'fa-bullhorn'
%br/
= link_to t('.createNote'), new_note_path('event.id' => event), class: 'fa-files-o'
- event.notes.each do |note|
%tr

View File

@ -142,6 +142,8 @@ fr:
actions: Actions
posted_by: Posté par %{author} le %{date}
date: Date
askInfos: Demander des infos
createNote: Ajouter une note
edit:
moderation: Modération
preview: Prévisualisation de l'évènement

View File

@ -4,6 +4,7 @@ AgendaDuLibreRails::Application.routes.draw do
get 'stats', on: :collection
end
resources :events
resources :notes
resources :users
resources :tags, only: [ :index, :show ]
resources :moderations