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:
Profile basically done
Michael Hartl (author)
Tue Apr 22 08:41:12 -0700 2008
commit  a0c5e16868c23fad2329cbfd66632ad413403e37
tree    016aa73c7c97358595d0defaad2acbaef4c40173
parent  ac6bae012ae819a74eef30b153631fb4be92914a
...
108
109
110
111
112
 
 
113
114
115
...
108
109
110
 
 
111
112
113
114
115
0
@@ -108,8 +108,8 @@ module ApplicationHelper
0
     else
0
       path = new_person_message_path(person)
0
     end
0
- img = image_tag "email.png", :class => "inlined"
0
- action = reply.nil? ? "Send message" : "Send reply"
0
+ img = image_tag("icons/email.gif")
0
+ action = reply.nil? ? "Send a message" : "Send reply"
0
     opts = { :class => 'email-link' }
0
     str = link_to(img, path, opts)
0
     str << "&nbsp;"
...
1
2
 
 
3
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
 
 
 
 
 
 
 
 
 
 
 
21
...
 
 
1
2
3
4
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1,19 +1,17 @@
0
-<div class="wall_comment element clearfix">
0
- <div class="column span-3 first">
0
+<li>
0
+ <div class="profile-image">
0
     <%= image_link(comment.commenter, :image => :thumbnail) %>
0
+ <%= image_tag "icons/comment.gif", :class => "icon" %>
0
   </div>
0
- <div class="content column span-<%= LARGER_COLUMN-3 %> last">
0
- <div class="header">
0
- <%= time_ago_in_words(comment.created_at) %> ago
0
- <%= person_link comment.commenter %> said
0
- </div>
0
- <div class="body">
0
- <%= sanitize comment.body %>
0
- <%- if current_person?(comment.commentable) -%>
0
- <br />
0
- <%= link_to "delete", person_comment_path(@person, comment),
0
- :method => :delete %>
0
- <%- end -%>
0
- </div>
0
- </div>
0
-</div>
0
\ No newline at end of file
0
+ <p class="meta published">
0
+ <%= person_link comment.commenter %> said
0
+ <%= time_ago_in_words(comment.created_at).capitalize %> ago
0
+ </p>
0
+ <%= display comment.body %>
0
+
0
+ <%- if current_person?(comment.commentable) -%>
0
+ <br />
0
+ <%= link_to "delete", person_comment_path(@person, comment),
0
+ :method => :delete %>
0
+ <%- end -%>
0
+</li>
0
\ No newline at end of file
...
1
2
 
 
3
4
5
6
 
7
8
9
10
 
11
12
13
14
15
 
 
 
16
17
18
...
1
 
2
3
4
5
6
 
7
8
9
10
 
11
12
13
14
15
 
16
17
18
19
20
21
0
@@ -1,17 +1,20 @@
0
 <div class="wall">
0
- <h1>Comment Wall</h1>
0
+ <h2>Comment Wall</h2>
0
+ <a name="wall"></a>
0
 
0
   <% form_for :comment, :url => person_comments_path(@person) do |f| %>
0
     <div class="form_row">
0
- <%= f.text_area :body %>
0
+ <%= f.text_area :body, :rows => 2 %>
0
     </div>
0
   
0
     <div class="form_row">
0
- <%= submit_tag "Submit" %>
0
+ <%= submit_tag "Submit", :class => "button" %>
0
     </div>
0
   <% end %>
0
 
0
   <%- unless @person.comments.empty? -%>
0
- <%= render :partial => 'comment', :collection => @person.comments %>
0
+ <ul class="list comments full">
0
+ <%= render :partial => 'comment', :collection => @person.comments %>
0
+ </ul>
0
   <%- end -%>
0
 </div>
0
\ No newline at end of file
...
3
4
5
6
7
8
9
10
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15
16
...
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
0
@@ -3,14 +3,27 @@
0
   <div class="profile vcard">
0
     <h2>Profile: <span class="fn n"><%= h @person.name %></span></h2>
0
 
0
-
0
-
0
     <div class="toolbox">
0
       <%= image_link @person, :class => "profile-image photo",
0
                               :image => "main_photo" %>
0
- <ul class="tools">
0
- <li>foo</li>
0
- </ul>
0
+
0
+ <%- unless current_person?(@person) -%>
0
+ <ul class="tools">
0
+ <li><%= email_link @person %></li>
0
+ <li><%= link_to "#{h @person.name}'s blog",
0
+ blog_path(@person.blog) %></li>
0
+ <%- unless Connection.exists?(@person, current_person) -%>
0
+ <li>
0
+ <%= link_to "Connect with #{h @person.name}!",
0
+ person_connections_path(@person), :method => :post %>
0
+ </li>
0
+ <%- end -%>
0
+ <%- if logged_in? and
0
+ Connection.connected?(@person, current_person) -%>
0
+ <li><%= h @person.name %> is one of your contacts</li>
0
+ <%- end -%>
0
+ </ul>
0
+ <%- end -%>
0
     </div>
0
 
0
     <div class="note"><%= display @person.description %></div>
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<%= column_div, :type => :primary %>
0
+<%- column_div :type => :primary do -%>
0
   <h2>Sign in</h2>
0
 
0
   <% form_tag session_path do -%>

Comments

    No one has commented yet.