Merge pull request #2385 from betagouv/improve-feedback
Amélioration des icônes de feedback
This commit is contained in:
commit
980d89dcac
2 changed files with 12 additions and 11 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
.icon {
|
||||
padding: 10px 5px;
|
||||
margin: 10px 10px;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue