Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 178
- Log:
Hub integration of Beast forum. Completed styling for RISC OS Open site.
Removed reliance on JavaScript. Added Textile hints to various views.
Added bespoke utility code used to port over RForum data for posterity;
note the rather large bug that it ignores the deleted flag on RForum
data.Some amount of testing carried out on Firefox, Opera and Netsurf. Looks
OK so far, but there are definitely some aesthetic kinks to work out
still and doubtless some operational bugs will surface once it goes
live and is subjected to more intensive real world use.
- Author:
- rool
- Date:
- Mon Mar 12 00:19:40 +0000 2007
- Size:
- 2540 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 | |
31 | <% if recent_forum_activity(forum) %> |
32 | <%= image_tag "clearbits/comment.gif", :class => "icon green", :title => "Recent activity" %> |
33 | <% else %> |
34 | <%= image_tag "clearbits/comment.gif", :class => "icon grey", :title => "No recent activity" %> |
35 | <% end %> |
36 | </td> |
37 | <td class="c2"> |
38 | <%= link_to "Edit", edit_forum_path(forum), :class => "tiny", :rel => "directory", :style => "float:right" if admin? %> |
39 | |
40 | <%= link_to h(forum.name), forum_path(forum), :class => "title" %> |
41 | <div class="posts"> |
42 | <%= number_with_delimiter(forum.topics_count) %> topics, |
43 | <%= number_with_delimiter(forum.posts_count) %> posts |
44 | </div> |
45 | <p class="desc"><%= forum.description_html %> |
46 | </p> |
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 |