aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared/users.html.haml
blob: 22085f32aa18366c717158e93412078514b54298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.users
  %ul.inline
    - @usermap.take(50).each do |user_id, count|
      - user = User.cached(user_id)
      %li
        - if user
          = link_to_user_page user.screen_name do
            .avatar= image_tag user.profile_image_url, :alt => user.screen_name, :title => user.name
            .data
              = link_to url_for(params.merge(:screen_name_b => user.screen_name)) do
                .count= count
                .type= @event_type
        - else
          .avatar= image_tag asset_path("missing_profile_image.png"), :alt => "Missing User: #{user_id}", :title => "Missing User: #{user_id}"
          .data
            .count= count
            .type= @event_type