<%= link_to "Forums", forums_url %> » <%= namelink @topic.forum %> » <%= namelink @topic %>
<%= namelink @topic %>
<% if @posts.length > Topic::POSTS_PAGE %>
[<%= will_paginate @posts %>]
<% end %>
<% if @newpost.can_create? cuser %>
<%= link_to 'Reply', new_post_path(@newpost, :id => @topic) %> |
<% end %>
<% if @topic.can_update? cuser %>
<%= link_to 'Edit', edit_topic_path(@topic) %>
<% end %>
|
|
---|---|
<% @newpost.error_messages.each do |m| %>
<%= h m %> <% end %> |
|
<%= form_for(@newpost, :remote => true) do |f| %>
<%= f.error_messages %>
<%= f.hidden_field :topic_id %>
<%= f.text_area :text, :rows => 13, :cols => 70, :id => "textArea" %> <%= f.submit 'Post Message' %> <% end %> |
|
<%= will_paginate @posts %>
<% if @newpost.can_create? cuser %>
<%= link_to_function 'Fast Reply', "$('tr#reply').fadeIn('slow');" %> |
<%= link_to 'Reply', new_post_path(@newpost, :id => @topic) %> |
<% end %>
<% if @topic.can_update? cuser %>
<%= link_to 'Edit', edit_topic_path(@topic) %>
<% end %>
<% if @lock.new_record? and @lock.can_create? cuser %>
<%= form_for @lock, :html => {:style => "display:inline"} do |f| %>
<%= f.hidden_field :lockable_type %>
<%= f.hidden_field :lockable_id %>
| <%= link_to_function "Lock", "this.parentNode.submit()" %>
<% end %>
<% elsif @lock.can_destroy? cuser %>
| <%= link_to 'Unlock', @lock, :confirm => 'Are you sure?', :method => :delete %>
<% end %>
|
<%= link_to "Forums", forums_url %> » <%= namelink @topic.forum %> » <%= namelink @topic %>