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)
Thu May 08 12:36:21 -0700 2008
commit  81389f1c0a1dc1874f2f5c885fb43efa97233e60
tree    226e293aaccd6e1ecf915f90f1a9bc710c853bfc
parent  0177c8084c6d7da1cec4ecaf6f116c1865caae35
insoshi / app / views / people / show.html.erb
100644 62 lines (57 sloc) 2.184 kb
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<%- column_div :type => :primary do -%>
  <div class="profile vcard">
    <h2>Profile: <span class="fn n"><%= h @person.name %></span></h2>
    <%- if current_person?(@person) -%>
      <div class="notice">
        You are viewing your own profile.
        <%= link_to "Click here to edit it", edit_person_path(@person) %>
      </div>
    <%- end -%>
    <div class="toolbox">
      <%= image_tag @person.main_photo, :class => "profile-image photo",
                                        :alt => h(@person.name) %>
 
      <%- unless current_person?(@person) -%>
        <ul class="tools">
         <%- if logged_in? -%>
          <%- unless Connection.exists?(@person, current_person) -%>
            <li>
            <%= link_to "Connect with #{h @person.name}!",
                        person_connections_path(@person), :method => :post %>
            </li>
          <%- end -%>
          <%- if Connection.connected?(@person, current_person) -%>
          <li>
            <%= h @person.name %> is one of your contacts
            <br />
           (<%= link_to "end connection",
               connection_path(Connection.conn(current_person, @person)),
               :method => :delete,
              :confirm =>
"Are you sure you want to end connection with #{h @person.name}?" %>)
          
          </li>
          <%- end -%>
          <li><%= email_link @person %></li>
        <%- end -%>
          <li><%= link_to "#{h @person.name}'s blog",
                  blog_path(@person.blog) %></li>
        </ul>
      <%- end -%>
      
      <%- if current_person?(@person) and current_person.admin? -%>
        <ul class="tools">
          <li><%= email_link @person %> to everyone</li>
        </ul>
      <%- end -%>
    </div>
    <%= display @person.description %>
  </div>
 
  <%= render :partial => 'recent_activity' %>
  <%= render :partial => 'wall' %>
<%- end -%>
 
<%- column_div :type => :secondary do -%>
  <%= render :partial => 'shared/minifeed' %>
  <%- if logged_in? -%>
    <%= render :partial => 'shared/contacts_preview',
               :locals => { :person => @person } %>
    <%= render :partial => 'common_contacts' %>
  <%- end -%>
<%- end -%>