Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 259
- Log:
Numerous small HTML and CSS fixes resulting in a much larger number
of standards compliant pages throughout the site.
- Author:
- rool
- Date:
- Wed Dec 03 19:50:33 +0000 2008
- Size:
- 2546 Bytes
1 | <% content_for :right do %> |
2 | |
3 | <% if admin? %> |
4 | <h3>Admin</h3> |
5 | <ul><li><%= link_to 'Create New Forum', new_forum_path, :class => "utility" %></li></ul> |
6 | <% end %> |
7 | |
8 | <% end %> |
9 | |
10 | <h1 style="margin-top:0;">Forums</h1> |
11 | <p class="subtitle"> |
12 | <%= feed_icon_tag "Recent Posts", formatted_all_posts_path(:format => 'rss') %> |
13 | <%= number_with_delimiter(Topic.count) %> topics, <%= number_with_delimiter(Post.count) %> posts, |
14 | <%= number_with_delimiter(User.count(:conditions => "posts_count>0")) %> voices |
15 | |
16 | </p> |
17 | |
18 | <table border="0" cellspacing="0" cellpadding="0" class="wide forums"> |
19 | <tr> |
20 | <th class="la" width="70%" colspan="2">Forum</th> |
21 | <!-- |
22 | <th width="5%">Topics</th> |
23 | <th width="5%">Posts</th> |
24 | --> |
25 | <th class="la" width="30%">Last Post</th> |
26 | </tr> |
27 | <% for forum in @forums do %> |
28 | <tr> |
29 | <td class="vat c1"> |
30 | <% if recent_forum_activity(forum) %> |
31 | <%= image_tag "clearbits/comment.gif", :class => "icon green", :title => "Recent activity" %> |
32 | <% else %> |
33 | <%= image_tag "clearbits/comment.gif", :class => "icon grey", :title => "No recent activity" %> |
34 | <% end %> |
35 | </td> |
36 | <td class="c2"> |
37 | <%= link_to "Edit", edit_forum_path(forum), :class => "tiny", :rel => "directory", :style => "float:right" if admin? %> |
38 | |
39 | <%= link_to h(forum.name), forum_path(forum), :class => "title" %> |
40 | <div class="posts"> |
41 | <%= number_with_delimiter(forum.topics_count) %> topics, |
42 | <%= number_with_delimiter(forum.posts_count) %> posts |
43 | </div> |
44 | <div class="desc"> |
45 | <%= forum.description_html %> |
46 | </div> |
47 | </td> |
48 | <!-- |
49 | <td class="ca inv"><%= number_with_delimiter(forum.topics_count) %></td> |
50 | <td class="ca inv"><%= number_with_delimiter(forum.posts_count) %></td> |
51 | --> |
52 | |
53 | <td class="inv lp"> |
54 | <% if forum.posts.last %> |
55 | <%= time_ago_in_words(forum.posts.last.created_at) %><br /> |
56 | by <strong><%= h(forum.posts.last.user.display_name) %></strong> |
57 | <span>(<%= link_to 'view', topic_path(:forum_id => forum, :id => forum.posts.last.topic_id, :page => forum.posts.last.topic.last_page, :anchor => forum.posts.last.dom_id) %>)</span> |
58 | <% end %> |
59 | </td> |
60 | </tr> |
61 | <% end %> |
62 | </table> |
63 | |
64 | <p> |
65 | <%= link_to "Recent posts", all_posts_path %> |
66 | </p> |
67 | |
68 | <% online_users = User.currently_online -%> |
69 | <% unless online_users.empty? %> |
70 | <div class="stats"> |
71 | <div class="users"> |
72 | <% unless online_users.empty? %> |
73 | Users online: <%= online_users.map { |u| link_to "<strong>#{h u.display_name}</strong>", user_path(u) } * ", " %><br /> |
74 | <% end %> |
75 | </div> |
76 | </div> |
77 | <% end %> |
78 |