mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-26 01:13:02 +01:00
- replace `match` with `get`/`post`/`patch`/`delete` - format routes.rb - rename the `show_user_{profile,question,answer}` routes to `profile`, `question`, `answer` so `url_for` (used by Rails Admin) works fine for these things - also add `to_param` to the `User` model so that `url_for(some_user)` uses the user name
18 lines
906 B
Text
18 lines
906 B
Text
.modal.fade{ id: "modal-view-comment#{comment.id}-smiles", aria: { hidden: true, labelledby: 'modal-commentsmile-label' }, role: :dialog, tabindex: -1 }
|
||
.modal-dialog
|
||
.modal-content
|
||
.modal-header
|
||
%h5.modal-title#modal-commentsmile-label= t 'views.answerbox.commentsmile'
|
||
%button.close{ data: { dismiss: :modal }, type: :button }
|
||
%span{ aria: { hidden: true } } ×
|
||
%span.sr-only Close
|
||
.modal-body
|
||
- if comment.smiles.all.count.zero?
|
||
= t 'views.answerbox.no_smile'
|
||
- else
|
||
%ul.smiles__user-list
|
||
- comment.smiles.all.each do |smile|
|
||
%li.smiles__user-list-entry
|
||
%a{ href: user_path(smile.user) }
|
||
%img{ src: smile.user.profile_picture.url(:small), alt: user_screen_name(smile.user, url: false) }
|
||
%span= user_screen_name(smile.user, url: false)
|