app/helpers/activities_helper.rb
# Return a link to the wall.
Return a link to the wall.
Return a link to the wall .
def wall(activity)
    commenter = activity.owner
    if activity.item.commentable.class.to_s == "User"
      user = activity.item.commentable
      if commenter == user
          "自己"
      elsif logged_in_user?(user)
          "你"
      else
        link_to("#{someones(user, commenter, false)}",
                profile_path(user, :anchor => "tWall"))
      end
    elsif activity.item.commentable.class.to_s == "Group"
      group = activity.item.commentable
      link_to("#{someones(group, commenter, false)}",
              group_path(group, :anchor => "tWall"))
    end
  end
def wall ( activity ) commenter = activity . owner if activity . item . commentable . class . to_s == "User" user = activity . item . commentable if commenter == user "自己" elsif logged_in_user? ( user ) "你" else link_to ( "#{someones(user, commenter, false)}" , profile_path ( user , :anchor => "tWall" ) ) end elsif activity . item . commentable . class . to_s == "Group" group = activity . item . commentable link_to ( "#{someones(group, commenter, false)}" , group_path ( group , :anchor => "tWall" ) ) end end
Return a link to the wall.
Return a link to the wall .
activity
<not_specific>