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:
- 2210 Bytes
1 | <% @page_title = "Posts that #{h @user.display_name} is monitoring" -%> |
2 | |
3 | <% content_for :right do %> |
4 | |
5 | <h4><%= link_to @user.display_name, user_path(@user) %>'s Monitored Topics</h4> |
6 | <ul class="flat"> |
7 | <% @user.monitored_topics.find(:all, :limit => 25).each do |topic| %> |
8 | <li><%= link_to topic.title, topic_path(topic.forum_id, topic) %></li> |
9 | <% end %> |
10 | </ul> |
11 | |
12 | <% end -%> |
13 | |
14 | <h1><%= @page_title %></h1> |
15 | <p class="subtitle"> |
16 | <%= feed_icon_tag @page_title, formatted_monitored_posts_path(:user_id => @user, :format => 'rss') %> |
17 | <%= pluralize(@post_pages.item_count,"post") %> found |
18 | </p> |
19 | |
20 | <% if @post_pages.page_count > 1 -%> |
21 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
22 | <% end -%> |
23 | |
24 | <table border="0" cellspacing="0" cellpadding="0" class="posts wide"> |
25 | <% for post in @posts do %> |
26 | <% unless post == @posts.first %> |
27 | <tr class="spacer"> |
28 | <td colspan="2"> </td> |
29 | </tr> |
30 | <% end %> |
31 | <tr class="post hentry" id="<%= post.dom_id %>"> |
32 | <td class="author vcard"> |
33 | <div class="date"> |
34 | <abbr class="updated" title="<%= post.created_at.xmlschema %>"> |
35 | <% if post.created_at > Time.now.utc-24.hours%> |
36 | <%= time_ago_in_words(post.created_at).sub(/about /, '') %> ago |
37 | <% else %> |
38 | <%= post.created_at.strftime("%b %e, %Y")%> |
39 | <% end %> |
40 | </abbr> |
41 | </div> |
42 | |
43 | <%= avatar_for post.user %> |
44 | <span class="fn"><%= link_to truncate(h(post.user.display_name), 32), user_path(post.user), :class => (post.user == @posts.first.user ? "admin" : nil) %></span> |
45 | <span class="posts"><%= pluralize post.user.posts_count, 'post' %></span> |
46 | </td> |
47 | <td class="body entry-content"> |
48 | <p class="topic">Topic: <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %></p> |
49 | |
50 | <%= post.body_html %> |
51 | </td> |
52 | </tr> |
53 | |
54 | <% end %> |
55 | </table> |
56 | |
57 | <% if @post_pages and @post_pages.current.next %> |
58 | <p style="float:right;"><%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %></p> |
59 | <% end %> |
60 | |
61 | <% if @post_pages.page_count > 1 -%> |
62 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
63 | <% end -%> |