feedback: move the icons under the list

This commit is contained in:
Pierre de La Morinerie 2018-08-13 12:39:58 +00:00
parent 8927af7a33
commit 6da2e54d4c

View file

@ -17,17 +17,6 @@
.container .container
- if @dossiers.present? - if @dossiers.present?
- 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
- if @dossiers.total_pages >= 2 - if @dossiers.total_pages >= 2
.card.feedback .card.feedback
.card-title Nous avons redesigné la liste des dossiers. .card-title Nous avons redesigné la liste des dossiers.
@ -64,6 +53,17 @@
= dossier.updated_at.localtime.strftime("%d/%m/%Y") = dossier.updated_at.localtime.strftime("%d/%m/%Y")
= paginate(@dossiers) = 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 - else
.dossiers-table-empty .dossiers-table-empty
%h2.empty-text Aucun dossier. %h2.empty-text Aucun dossier.