feedback: don't display feedback if user has no dossiers

This commit is contained in:
Pierre de La Morinerie 2018-08-13 14:19:54 +02:00
parent c7f616843f
commit 8927af7a33

View file

@ -15,8 +15,10 @@
= link_to(dossiers_path(current_tab: 'dossiers-invites')) do
dossiers invités
.container
- if @dossiers.present?
- if current_user.feedbacks.empty?
.container#user-satisfaction
#user-satisfaction
%h3 Que pensez-vous de ce service ?
.icons
= link_to feedback_path(mark: 0), data: { remote: true, method: :post } do
@ -26,8 +28,6 @@
= link_to feedback_path(mark: 2), data: { remote: true, method: :post } do
%span.icon.smile
.container
- if @dossiers.present?
- if @dossiers.total_pages >= 2
.card.feedback
.card-title Nous avons redesigné la liste des dossiers.