Merge pull request #2385 from betagouv/improve-feedback

Amélioration des icônes de feedback
This commit is contained in:
Pierre de La Morinerie 2018-08-13 15:04:43 +02:00 committed by GitHub
commit 980d89dcac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View file

@ -7,6 +7,7 @@
.icon {
padding: 10px 5px;
margin: 10px 10px;
&:hover {
cursor: pointer;

View file

@ -15,17 +15,6 @@
= link_to(dossiers_path(current_tab: 'dossiers-invites')) do
dossiers invités
- if current_user.feedbacks.empty?
.container#user-satisfaction
%h3 Que pensez-vous de ce service ?
.icons
= link_to feedback_path(mark: 0), data: { remote: true, method: :post } do
%span.icon.frown
= link_to feedback_path(mark: 1), data: { remote: true, method: :post } do
%span.icon.meh
= link_to feedback_path(mark: 2), data: { remote: true, method: :post } do
%span.icon.smile
.container
- if @dossiers.present?
- if @dossiers.total_pages >= 2
@ -64,6 +53,17 @@
= dossier.updated_at.localtime.strftime("%d/%m/%Y")
= paginate(@dossiers)
- if current_user.feedbacks.empty?
#user-satisfaction
%h3 Que pensez-vous de ce service ?
.icons
= link_to feedback_path(mark: 0), data: { remote: true, method: :post } do
%span.icon.frown
= link_to feedback_path(mark: 1), data: { remote: true, method: :post } do
%span.icon.meh
= link_to feedback_path(mark: 2), data: { remote: true, method: :post } do
%span.icon.smile
- else
.dossiers-table-empty
%h2.empty-text Aucun dossier.