feedback: don't display feedback if user has no dossiers
This commit is contained in:
parent
c7f616843f
commit
8927af7a33
1 changed files with 11 additions and 11 deletions
|
@ -15,19 +15,19 @@
|
||||||
= link_to(dossiers_path(current_tab: 'dossiers-invites')) do
|
= link_to(dossiers_path(current_tab: 'dossiers-invites')) do
|
||||||
dossiers invités
|
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
|
.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.
|
||||||
|
|
Loading…
Reference in a new issue