Browse Source

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

recurrent
echarp 8 years ago
parent
commit
6844cac3a0
  1. 4
      app/assets/stylesheets/moderations.css.sass
  2. 5
      app/assets/stylesheets/sessions.css.sass
  3. 8
      app/views/devise/sessions/new.html.haml
  4. 12
      app/views/moderations/index.html.haml
  5. 2
      config/locales/fr.yml
  6. 1
      config/routes.rb

4
app/assets/stylesheets/moderations.css.sass

@ -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

5
app/assets/stylesheets/sessions.css.sass

@ -29,6 +29,7 @@
background-color: #FFB
@include border-radius(0.8em)
&:focus
outline: 0
background-color: #F0F8FF !important
input[type=submit]
border: none
@ -39,5 +40,5 @@
margin-left: 6.75em
margin-bottom: 10px
.logout
margin: 2em auto
.logout
margin: 2em auto

8
app/views/devise/sessions/new.html.haml

@ -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"

12
app/views/moderations/index.html.haml

@ -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

2
config/locales/fr.yml

@ -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

1
config/routes.rb

@ -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

Loading…
Cancel
Save