diff options
author | re4k <re4k@re4k.info> | 2013-03-29 23:00:11 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-03-29 23:00:11 +0900 |
commit | b1cd0b45b761132e47cbc01e99acd728f047b9ae (patch) | |
tree | 9bedd48e7a5c53056721fde3987b7fb27499fbc6 /app/views/shared/users.html.haml | |
parent | 61087e2460e60b08b554b600cdebc6efb2456dd6 (diff) | |
download | aclog-b1cd0b45b761132e47cbc01e99acd728f047b9ae.tar.gz |
Refactor
Add search (partial)
Diffstat (limited to 'app/views/shared/users.html.haml')
-rw-r--r-- | app/views/shared/users.html.haml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/shared/users.html.haml b/app/views/shared/users.html.haml index 6393630..776a193 100644 --- a/app/views/shared/users.html.haml +++ b/app/views/shared/users.html.haml @@ -4,10 +4,12 @@ - user = User.cached(user_id) %li - if user - %a{:href => url_for(params.merge(:screen_name_b => user.screen_name))} + = link_to_user_page user.screen_name do .avatar= image_tag user.profile_image_url, :alt => user.screen_name, :title => user.name - else .avatar= image_tag asset_path("missing_profile_image.png"), :alt => "Missing User: #{user_id}", :title => "Missing User: #{user_id}" - .count= count - .type= @event_type + .data + = link_to url_for(params.merge(:screen_name_b => user.screen_name)) do + .count= count + .type= @event_type |