Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_stream_element.mobile.haml « shared « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: beef700e732cd32d0361d8041535c05eed00dcf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

.stream_element{:data=>{:guid=>post.id}}
  = person_image_link(post.author, :size => :thumb_small)

  .content
    .from
      = person_link(post.author)

    - if post.activity_streams?
      = image_tag post.image_url
    - else
      = render 'status_messages/status_message', :post => post, :photos => post.photos

    .info
      %span.time{:integer => post.created_at.to_i}
        = t('ago', :time => time_ago_in_words(post.created_at))
      %span.via
        - if post.activity_streams?
          = t('.via', :link => link_to("#{post.provider_display_name}", post.actor_url)).html_safe

      - if post.activity_streams?
        = link_to "#{t('comments', :count => post.comments.length)} →", activity_streams_photo_path(post), :class => 'comment_link right'
        %br
      - else
        = link_to "#{t('comments', :count => post.comments.length)} →", status_message_path(post), :class => 'comment_link right'