public
Description: The kick ass (non-commercial) home for musicians and their music
Homepage: http://alonetone.com
Clone URL: git://github.com/sudara/alonetone.git
currently online users (forums)
sudara (author)
Sat Jul 05 06:26:41 -0700 2008
commit  897de19e330da2cbec7a81a8552b0783183423c2
tree    db482428089613613e3c05f532fafc3129aeabdf
parent  3544d5f66ae2456238babe3f40cfed6252d0472e
...
12
13
14
 
15
16
17
...
12
13
14
15
16
17
18
0
@@ -12,6 +12,7 @@ class ForumsController < ApplicationController
0
     @page_title = 'alonetone Forums'
0
     @description = 'alonetone forums. Discuss making music, free music, the changing music world, and whatever else comes to you'
0
     @keywords = 'alonetone, forums, music, discussion, share'
0
+ @online = User.currently_online
0
     respond_to do |format|
0
       format.html # index.html.erb
0
       format.xml { render :xml => @forums }
...
58
59
60
61
 
62
 
 
 
 
 
 
 
 
 
 
63
64
...
58
59
60
 
61
62
63
64
65
66
67
68
69
70
71
72
73
74
0
@@ -58,6 +58,16 @@
0
     </table>
0
 
0
     <p>
0
- <%= link_to 'Recent posts', posts_path %>
0
+ <%= link_to 'View Recent Posts', posts_path %>
0
     </p>
0
+ <% if @online && !@online.empty?%>
0
+ <div class="box">
0
+ <div class="static_content" id="currently_online">
0
+ alonetoners online:
0
+ <% @online.each do |user| %>
0
+ <%= link_to h(user.name), user_home_path(user.login) %>
0
+ <% end %>
0
+ </div>
0
+ </div>
0
+ <% end %>
0
 <% end %>
0
\ No newline at end of file
...
332
333
334
335
336
 
 
 
 
 
 
 
337
...
332
333
334
 
335
336
337
338
339
340
341
342
343
0
@@ -332,4 +332,10 @@ table#formatting_help
0
       :background-color = !box_background_even
0
       :padding-left 10px
0
     td
0
- :padding 10px
0
\ No newline at end of file
0
+ :padding 10px
0
+#currently_online
0
+ :padding-top 5px
0
+ :padding-bottom 5px
0
+ :font-size 12px
0
+ a
0
+ :font-size 11px
0
\ No newline at end of file
...
153
154
155
 
 
156
157
158
...
153
154
155
156
157
158
159
160
0
@@ -153,6 +153,8 @@ html[xmlns] .clearfix
0
       :top -20px
0
       :width 300px
0
       :height 214px
0
+ a
0
+ :text-decoration underline
0
     #bug_form
0
       :position absolute
0
       :z-index 500

Comments

    No one has commented yet.