Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 1949 Bytes
1 | <% @page_title = @user.display_name -%> |
2 | |
3 | <% content_for :right do %> |
4 | <% if admin? %> |
5 | <% form_for :user, :url => admin_user_path(@user), :html => {:class => "xdialog"} do |f| -%> |
6 | <h6>Admin & Moderation</h6> |
7 | |
8 | <% if @user.forums.any? -%> |
9 | |
10 | <p>This user can moderate the following forums. Click one to remove.</p> |
11 | |
12 | <ul class="flat"> |
13 | <% @user.forums.find(:all, :select => 'forums.*, moderatorships.id as moderatorship_id').each do |forum| -%> |
14 | <li> |
15 | <%#= link_to forum.name, forum_path(forum), :class => "hidden" %> |
16 | <%#= link_to 'remove', moderator_path(@user, forum.moderatorship_id), :method => :delete %> |
17 | <%= link_to forum.name, moderator_path(@user, forum.moderatorship_id), :method => :delete, :confirm => "Remove user as moderator for #{forum.name}?" %> |
18 | </li> |
19 | <% end -%> |
20 | </ul> |
21 | <% end -%> |
22 | |
23 | <p> |
24 | <label>Add as moderator</label><br /> |
25 | <select name="moderator"> |
26 | <option value="-"></option> |
27 | <%= options_from_collection_for_select(Forum.find(:all, :order => 'position') - @user.forums, "id", "name") %> |
28 | </select></p> |
29 | |
30 | <p><label><%= f.check_box :admin %> User is an administrator</label></p> |
31 | |
32 | <p><%= submit_tag :Save %></p> |
33 | <% end -%> |
34 | <% end -%> |
35 | <% end %> |
36 | |
37 | <p style="float:right;"><%= avatar_for @user, 80 %></p> |
38 | |
39 | <h1><%=h @user.display_name %> </h1> |
40 | |
41 | <p class="subtitle"> |
42 | <%= feed_icon_tag @user.display_name, formatted_user_posts_path(:user_id => @user, :format => :rss) %> |
43 | <span> |
44 | <%= pluralize @user.topics.count, 'topic' %>, |
45 | <%= pluralize @user.posts_count, 'post' %> |
46 | (view <%= link_to "all", user_posts_path(@user) %> | |
47 | <%= link_to 'monitored', monitored_posts_path(@user) %> posts)<br /> |
48 | </span> |
49 | </p> |
50 | |
51 | <%= @user.bio_html %> |
52 | |
53 | <% unless @user.website.blank? -%> |
54 | <p><strong>Website:</strong> <%= white_list link_to(@user.website.gsub("http://",""), "http://" + @user.website.gsub("http://","")) %> |
55 | <% end -%> |
56 | <p>User since <%= @user.created_at.to_date.to_s :long %></p> |
57 |