Skip to content

Commit

Permalink
Show full thread on Conversation and Task page, but shorten it for Ov…
Browse files Browse the repository at this point in the history
…erview
  • Loading branch information
Pablo Villalba committed Sep 5, 2010
1 parent 8ccb669 commit b597b4e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/views/activities/_thread_comments.haml
@@ -1,9 +1,12 @@
- thread_id = "#{thread.class.to_s}_#{thread.id}"

- if comments.size > 2
%span.more_comments
= link_to t('activities.thread.more_comments', :count => comments.size - 2),
show_thread_path(thread, :thread_type => thread.class.to_s),
:'data-remote' => true

= render comments[0..1].reverse, :threaded => true
- case controller.controller_name
- when "projects"
- if comments.size > 2
%span.more_comments
= link_to t('activities.thread.more_comments', :count => comments.size - 2),
show_thread_path(thread, :thread_type => thread.class.to_s),
:'data-remote' => true
= render comments[0..1].reverse, :threaded => true
- else
= render comments.reverse, :threaded => true

0 comments on commit b597b4e

Please sign in to comment.