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
Added color change to forum topics, blog posts, and blog comments
Michael Hartl (author)
Thu Apr 24 21:21:12 -0700 2008
commit  0debd3fc64b62dc5c8eff4f18017dbcdc191e42b
tree    e47c0222b6d8b6d903f496d5cfca6c2449cc1c27
parent  d120fea4eb2a7058d62e53c8e61abe091138e0f3
...
19
20
21
22
 
23
24
25
 
 
26
27
 
 
 
28
29
30
31
...
19
20
21
 
22
23
24
 
25
26
27
 
28
29
30
31
32
33
34
0
@@ -19,12 +19,15 @@
0
     <h2>About Insoshi</h2>
0
     
0
     <p>Insoshi is an open-source project dedicated to making the best
0
- social networking platform on the web.</p>
0
+ social networking platform.</p>
0
       
0
       <p>This is the
0
- developer community site for the Insoshi project.</p>
0
+ developer community site for the Insoshi project.
0
+ </p>
0
       
0
- <p><%= link_to "Sign up now!", signup_path %>
0
+ <div style="text-align: center;">
0
+ <%= link_to image_tag("button_signup.jpg"), signup_path %>
0
+ </div>
0
       
0
   <%- end -%>
0
 <%- end -%>
0
\ No newline at end of file
...
1
2
3
4
 
 
 
5
6
7
...
14
15
16
17
 
 
18
19
...
1
2
3
 
4
5
6
7
8
9
...
16
17
18
 
19
20
21
22
0
@@ -1,7 +1,9 @@
0
 <li class="post">
0
   <h3>
0
     <a name="post_<%= blog_post.id %>"></a>
0
- <%= link_to sanitize(blog_post.title), blog_post_path(@blog, blog_post) %>
0
+ <%= link_to sanitize(blog_post.title),
0
+ blog_post_path(@blog, blog_post),
0
+ :class => "show-follow" %>
0
     <%- if current_person?(@blog.person) -%>
0
       | <%= link_to "Edit", edit_blog_post_path(@blog, blog_post) %>
0
       | <%= link_to "Delete", blog_post_path(@blog, blog_post),
0
@@ -14,5 +16,6 @@
0
     by <%= person_link @blog.person %> |
0
     <%- n = blog_post.comments.count -%>
0
     <%= link_to pluralize(n, "comment"),
0
- blog_post_path(@blog, blog_post, :comments => n) %>
0
+ blog_post_path(@blog, blog_post, :comments => n),
0
+ :class => "show-follow" %>
0
   </p>
0
\ No newline at end of file
...
6
7
8
9
10
11
 
 
12
13
14
 
 
 
 
15
16
17
...
6
7
8
 
 
 
9
10
11
 
 
12
13
14
15
16
17
18
0
@@ -6,12 +6,13 @@
0
   </div>
0
   <p>
0
   <%- if admin_view? -%>
0
- <%= link_to h(topic.name),
0
- admin_forum_topic_path(@forum, topic) %>
0
-
0
+ <%= link_to h(topic.name),
0
+ admin_forum_topic_path(@forum, topic) %>
0
   <%- else -%>
0
- <%= link_to h(topic.name),
0
- forum_topic_path(@forum, topic) %>
0
+ <%- n = topic.posts.count -%>
0
+ <%= link_to h(topic.name),
0
+ forum_topic_path(@forum, topic, :comments => n),
0
+ :class => "show-follow" %>
0
   <%- end -%>
0
   </p>
0
   <p class="meta">
...
78
79
80
81
 
82
83
84
...
142
143
144
 
 
 
 
 
 
145
146
147
...
78
79
80
 
81
82
83
84
...
142
143
144
145
146
147
148
149
150
151
152
153
0
@@ -78,7 +78,7 @@ ol li {
0
   margin-left: 1.5em;
0
 }
0
 
0
-a {
0
+a:link,a:visited {
0
   color: #069;
0
   font-weight: bold;
0
   text-decoration: none;
0
@@ -142,6 +142,12 @@ body.blog .comments p, body.forum .reply p {
0
   font-size: 12px;
0
 }
0
 
0
+/* Have followed links change color (e.g., in forums). */
0
+a.show-follow:visited {
0
+ color: #309;
0
+ text-decoration: none;
0
+}
0
+
0
 /* Alerts and notifications */
0
 .success {
0
   border: 1px solid #FFCC66;

Comments

    No one has commented yet.