Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p>
- <b>Forum:</b>
- <%=h @forum.name %>
- -
- <%=h @forum.description %>
- |
- <%= link_to 'Back', forums_path %>
- </p>
- <p>
- <b><%=h @topic.name %></b> says "<%=h @topic.subject %>"
- </p>
- <p>
- <%=h @topic.body %>
- </p>
- <% unless @topic.replies.empty? %>
- <p>
- <div id="Replies">
- <% render :partial => 'replies/show', :collection => @topic.replies %>
- </div>
- </p>
- <% end %>
- <% if @user %>
- <h2>Reply</h2>
- <%= render :partial => @reply = Reply.new, :locals => { :button_name => 'Reply' } %>
- <% if is_admin? || @topic.name == @user.name %>
- <%= link_to 'Edit', edit_forum_topic_path(@forum, @topic) %> |
- <% end %>
- <% end %>
Add Comment
Please, Sign In to add comment