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
Decent 1st cut at the front page
Michael Hartl (author)
Fri Feb 29 23:49:55 -0800 2008
commit  109364e9191e4ebede7b004d0309816cf7f99614
tree    6402b1e18b3180a3c05c7aadd01735a04e2eb560
parent  40419a96dbf9aeec316460a80e1e6fabd5f0bce7
...
5
6
7
8
9
10
11
...
5
6
7
 
 
8
9
0
@@ -5,7 +5,5 @@ class HomeController < ApplicationController
0
     @michael = Person.find_by_email("michael@michaelhartl.com")
0
     @linda = Person.find_by_email("linda@michaelhartl.com")
0
     
0
-
0
-
0
   end
0
 end
...
6
7
8
9
 
10
11
 
12
13
14
...
6
7
8
 
9
10
 
11
12
13
14
0
@@ -6,9 +6,9 @@ class Photo < ActiveRecord::Base
0
                  :storage => :file_system,
0
                  :max_size => UPLOAD_LIMIT.megabytes,
0
                  :min_size => 1,
0
- :resize_to => '350x350>',
0
+ :resize_to => '350x390>',
0
                  :thumbnails => { :thumbnail => '110x110>',
0
- :icon => '40x40>' },
0
+ :icon => '30x40>' },
0
                  :processor => 'ImageScience'
0
                  
0
   # Override the crappy default AttachmentFu error messages.
...
16
17
18
19
20
21
22
23
 
 
 
 
 
 
24
 
 
 
25
26
27
...
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
...
16
17
18
 
 
 
 
 
19
20
21
22
23
24
25
26
27
28
29
30
31
...
41
42
43
 
 
 
 
 
 
 
 
 
 
 
 
44
45
0
@@ -16,12 +16,16 @@
0
   <tr><th colspan="2">New Messages</th></tr>
0
   <%- current_person.new_messages.each do |message| -%>
0
   <tr>
0
- <td><%= link_to image_tag(message.sender.icon), message.sender %></td>
0
- <td class="small">
0
- <%= link_to message.subject, message %>
0
- <br />
0
- Sent by <%= link_to message.sender.name, message.sender %>
0
+ <td class="column first span-1">
0
+ <%= link_to image_tag(message.sender.icon), message.sender %>
0
+ </td>
0
+ <td class="column span-5 last">
0
+ <span class="small">
0
+ From <%= link_to message.sender.name, message.sender %>
0
       <%= time_ago_in_words message.created_at %> ago
0
+ <br />
0
+ <%= link_to message.subject, message %>
0
+ </span>
0
     </td>
0
   </tr>
0
   <%- end -%>
0
@@ -37,16 +41,4 @@
0
     <%- end -%>
0
   </tr>
0
   <%- end -%>
0
-</table>
0
-
0
-
0
-<table>
0
- <tr><th colspan="4">Network Members</th></tr>
0
- <%- Person.find(:all, :limit => 16).collect_every(4) do |row| -%>
0
- <tr>
0
- <%- row.each do |person| -%>
0
- <td><%= link_to image_tag(person.icon), person %></td>
0
- <%- end -%>
0
- </tr>
0
- <%- end -%>
0
 </table>
0
\ No newline at end of file
...
22
23
24
25
 
 
 
 
 
 
 
 
 
 
 
 
 
26
27
28
...
22
23
24
 
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
0
@@ -22,7 +22,19 @@
0
       </td>
0
     <%- end -%>
0
     </tr>
0
- </table>
0
+ </table>
0
+
0
+ <table>
0
+ <tr><th colspan="4">Network Members</th></tr>
0
+ <%- Person.find(:all, :limit => 8).collect_every(4) do |row| -%>
0
+ <tr>
0
+ <%- row.each do |person| -%>
0
+ <td><%= link_to image_tag(person.thumbnail), person %></td>
0
+ <%- end -%>
0
+ </tr>
0
+ <%- end -%>
0
+</table>
0
+
0
 </div>
0
 
0
 <div class="module column last span-6">
...
8
9
10
11
12
13
14
15
16
17
...
8
9
10
 
 
 
 
11
12
13
0
@@ -8,10 +8,6 @@ a {
0
   text-decoration: none;
0
 }
0
 
0
-td {
0
- padding-left: 0px;
0
-}
0
-
0
 #profile_edit h2 {
0
   margin-top: 1em;
0
 }

Comments

    No one has commented yet.