mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +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
12 lines
430 B
Text
12 lines
430 B
Text
.media.smiles
|
|
.pull-left
|
|
%i.fa.fa-smile-o
|
|
.media-body
|
|
- if a.smiles.all.count.zero?
|
|
= t 'views.answerbox.no_smile'
|
|
- else
|
|
- a.smiles.all.each do |smile|
|
|
%a{ href: user_path(smile.user),
|
|
title: user_screen_name(smile.user, url: false),
|
|
data: { toggle: :tooltip, placement: :top, smile_id: smile.id } }
|
|
%img.avatar-xs{ src: smile.user.profile_picture.url(:medium) }
|