Sha256: 741293d94347881f4db402830c4a68012d6c4bb46b6e2af9b476a9a10aac2a0d

Contents?: true

Size: 783 Bytes

Versions: 1

Compression:

Stored size: 783 Bytes

Contents

%h2
  = t('recent_topics')
%ul.recently
  - Topic.latest(10).each do |topic|
    - if topic.visible_to?(current_reader)
      %li.topic
        %span.subject
          %a{:href => forum_topic_url(topic.forum, topic)}
            - if topic.reader
              = gravatar_for(topic.reader, {:size => 40}, {:alt => topic.reader.name, :class => 'gravatar'})
            = topic.name
        %span.context
          = t('posted_by')
          = link_to topic.reader.name + '.', reader_url(topic.reader)
          = t('post_count_from', :count => topic.posts.count - 1)
          - if topic.has_posts?
            = link_to topic.replied_by.name, reader_url(topic.replied_by)
            = friendly_date(topic.replied_at)
          - else 
            = friendly_date(topic.created_at)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-forum-extension-1.1.2 app/views/topics/_latest.html.haml