|
|
@ -37,6 +37,14 @@ class MessagesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
# Show a topic and its replies
|
|
|
|
# Show a topic and its replies
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
|
|
|
|
if @course
|
|
|
|
|
|
|
|
topic_id = params[:r]?params[:r]:params[:id]
|
|
|
|
|
|
|
|
parent_id = params[:id]
|
|
|
|
|
|
|
|
url = course_boards_path(@course,:topic_id => topic_id,:parent_id=>parent_id);
|
|
|
|
|
|
|
|
redirect_to url
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
@isReply = true
|
|
|
|
@isReply = true
|
|
|
|
page = params[:page]
|
|
|
|
page = params[:page]
|
|
|
|
# Find the page of the requested reply
|
|
|
|
# Find the page of the requested reply
|
|
|
|