public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Michael Hartl (author)
Fri Apr 04 18:38:27 -0700 2008
commit  29e1dd8b5fca05218940392d951216327046cf8e
tree    f2b642bcf1fe2f1b9c4cfad5aa29836d1556ef43
parent  305c905d8fd2609a1f9c1c8ac13faf4a4f1bfaee
insoshi / app / views / messages / _sender_info.html.erb
100644 14 lines (13 sloc) 0.525 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<% if message.sender == current_person %>
  <% other_person = message.recipient %>
  <h2>Sent to <%= name_link other_person %></h2>
<% else %>
  <% other_person = message.sender %>
  <h2>Sent by <%= name_link other_person %></h2>
<% end %>
<div><%= image_link message.sender, :image => :thumbnail %></div>
<span class="time"><%= time_ago_in_words message.created_at %> ago</span>
<div class="status-mail">
  <%= email_link other_person, :replying_to => message,
                               :rowclass => rowclass %>
</div>