Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 5745 Bytes
1 | <% @page_title = @topic.title %> |
2 | <% @monitoring = logged_in? && !Monitorship.count(:all, :conditions => ['user_id = ? and topic_id = ? and active = ?', current_user.id, @topic.id, true]).zero? %> |
3 | |
4 | <% content_for :right do %> |
5 | |
6 | <h4>Voices</h4> |
7 | <ul class="flat talking"> |
8 | <% @voices.each do | user | %> |
9 | <li><%= link_to h(user.display_name), user_path(user) %></li> |
10 | <% end %> |
11 | </ul> |
12 | |
13 | <% end %> |
14 | |
15 | <div class="crumbs"> |
16 | <%= link_to "Index", home_path %> <span class="arrow">→</span> |
17 | <%= link_to h(@topic.forum.name), forum_path(@topic.forum) %> <span class="arrow">→</span> |
18 | </div> |
19 | |
20 | <h1 id="topic-title" style="margin-top:0.5em;"<%= %( onmouseover="$('topic_mod').show();" onmouseout="$('topic_mod').hide();") if logged_in? %>> |
21 | |
22 | |
23 | <%= h @topic.title %> |
24 | <% if @topic.locked? %> |
25 | <span>(locked)</span> |
26 | <% end %> |
27 | <% if logged_in? %> |
28 | <span style="display:none;" id="topic_mod"> |
29 | <strong> |
30 | <%= link_to_remote('watch', {:url => monitorships_path(@forum, @topic)}, |
31 | { :id => "monitorship-#{@topic.dom_id}", :style => (@monitoring && 'display:none') }) %> |
32 | <%= link_to_remote('unwatch', {:url => monitorships_path(@forum, @topic), :method => :delete}, |
33 | { :id => "delete-monitorship-#{@topic.dom_id}", :style => (!@monitoring && 'display:none') }) %> |
34 | </strong> | |
35 | <% if @topic.editable_by?(current_user) -%> |
36 | <%= link_to('edit', edit_topic_path(@forum, @topic), :class => "utility") %> | |
37 | <%= link_to('delete', topic_path(@forum, @topic), :class => "utility", :method => :delete, :confirm => "Delete this topic forever?") %> |
38 | <% end -%> |
39 | </span> |
40 | <% end %> |
41 | </h1> |
42 | |
43 | <p class="subtitle"> |
44 | <%= feed_icon_tag @topic.title, formatted_topic_path(@forum, @topic, :rss) %> |
45 | <%= pluralize @topic.posts.count, 'post' %>, <%= pluralize @topic.voices, 'voice' %> |
46 | </p> |
47 | |
48 | <% if @post_pages.page_count > 1 -%> |
49 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10 %></strong></p> |
50 | <% end -%> |
51 | |
52 | <a name="<%= @posts.first.dom_id %>" id="<%= @posts.first.dom_id %>"> </a> |
53 | |
54 | <table border="0" cellspacing="0" cellpadding="0" class="posts wide"> |
55 | <% for post in @posts do %> |
56 | <% unless post == @posts.first %> |
57 | <tr class="spacer"> |
58 | <td colspan="2"> |
59 | <a name="<%= post.dom_id %>" id="<%= post.dom_id %>"> </a> |
60 | </td> |
61 | </tr> |
62 | <% end %> |
63 | <tr class="post hentry" id="<%= post.dom_id %>-row"> |
64 | <td class="author vcard"> |
65 | <div class="date"> |
66 | <a href="#<%= post.dom_id %>" rel="bookmark"> |
67 | <abbr class="updated" title="<%= post.created_at.xmlschema %>"> |
68 | <%= time_ago_in_words(post.created_at) %> |
69 | </abbr> |
70 | </a> |
71 | </div> |
72 | |
73 | <%= avatar_for post.user %> |
74 | <span class="fn"><%= link_to truncate(h(post.user.display_name), 15), user_path(post.user), :class => (post.user == @posts.first.user ? "admin" : nil) %></span> |
75 | <span class="posts"><%= pluralize post.user.posts_count, 'post' %></span> |
76 | |
77 | <% if logged_in? && post.editable_by?(current_user) -%> |
78 | <p> |
79 | <span class="edit"> |
80 | <%= ajax_spinner_for "edit-post-#{post.id}", "spinner_bounce.gif" %> |
81 | <%= link_to_remote('Edit post', |
82 | {:url => edit_post_path(:forum_id => @forum, :topic_id => @topic, :id => post), :method => :get, |
83 | :before => "EditForm.init(#{post.id});", :condition => "!EditForm.isEditing(#{post.id})" }, |
84 | {:action => edit_post_path(:forum_id => @forum, :topic_id => @topic, :id => post, :page => params[:page]), :class => "utility"}) %> |
85 | </span> |
86 | </p> |
87 | <% end -%> |
88 | |
89 | |
90 | </td> |
91 | <td class="body entry-content" id="post-body-<%= post.id %>"> |
92 | <!-- |
93 | <%= link_to_function image_tag('clearbits/comment.gif', :class => 'icon reply'), "$('reply').toggle()" if logged_in? %> |
94 | --> |
95 | <%= format_text(post.body) %> |
96 | </td> |
97 | </tr> |
98 | |
99 | <% end %> |
100 | </table> |
101 | |
102 | <% if @post_pages and @post_pages.current.next %> |
103 | <p style="float:right;"><%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %></p> |
104 | <% end %> |
105 | |
106 | <% if @post_pages.page_count > 1 -%> |
107 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10 %></strong></p> |
108 | <% end -%> |
109 | |
110 | <% if logged_in? %> |
111 | <div id="edit"></div> |
112 | <% if @topic.locked? %> |
113 | <p> |
114 | <%= image_tag "clearbits/lock.gif", :class => "icon grey", :title => "Topic locked" %> |
115 | <label> |
116 | This topic is locked.</label> |
117 | </p> |
118 | <% else %> |
119 | |
120 | <p><%= link_to_function "Reply to topic", "ReplyForm.init()", :class => "utility" %></p> |
121 | |
122 | <div id="reply" class="editbox"> |
123 | <%= content_tag 'p', h(flash[:bad_reply]), :class => 'notice' if flash[:bad_reply] %> |
124 | <% form_for :post, :url => posts_path(:forum_id => @forum, :topic_id => @topic, :page => @topic.last_page) do |f| -%> |
125 | <table width="85%" border="0"> |
126 | <tr> |
127 | <td rowspan="2"> |
128 | <%= f.text_area :body, :rows => 7 %> |
129 | </td> |
130 | <td valign="top"> |
131 | |
132 | |
133 | <h5>Formatting Help</h5> |
134 | |
135 | <ul class="help"> |
136 | <li>*bold* |
137 | |
138 | _italics_ |
139 | |
140 | bq. <span>(quotes)</span></li> |
141 | <li>"IBM":http://www.ibm.com <span>(links)</span></li> |
142 | <li>* or # <span>(lists)</span></li> |
143 | </p> |
144 | |
145 | </td> |
146 | </tr> |
147 | <tr> |
148 | <td valign="bottom" style="padding-bottom:15px;"> |
149 | <%= submit_tag "Save Reply" %><span class="button_or">or <%= link_to_function 'cancel', "$('reply').hide()" %></span> |
150 | </td> |
151 | </tr> |
152 | </table> |
153 | <% end -%> |
154 | </div> |
155 | <%= javascript_tag "$('reply').hide();"%> |
156 | <% end %> |
157 | <% end %> |
158 | |
159 | <div class="crumbs" style="margin-top:1.1em;"> |
160 | <%= link_to "Index", home_path %> <span class="arrow">→</span> |
161 | <%= link_to h(@topic.forum.name), forum_path(@topic.forum) %> <span class="arrow">→</span> |
162 | </div> |