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