Added post anchors and show post.
when a new post is created, the page is now scrolled to is via its anchor created a show post route, and view. added a post number to post view, with link. need to change displayed post number from post id, to reply #
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
class TopicsController < ApplicationController
|
||||
|
||||
include ApplicationHelper
|
||||
|
||||
load_and_authorize_resource :forum
|
||||
load_and_authorize_resource :topic, :through => :forum, :shallow => true
|
||||
|
||||
@@ -9,15 +12,7 @@ class TopicsController < ApplicationController
|
||||
|
||||
@posts = @topic.posts.page(params[:page]).per(10)
|
||||
|
||||
@my_blockquote = {
|
||||
'Quote' => [
|
||||
/\[quote(:.*)?=(.*?)\](.*?)\[\/quote\1?\]/mi,
|
||||
'<blockquote><cite>\2</cite><span class="a">“</span>\3<span class="b">”</span></blockquote>',
|
||||
'Quote with citation',
|
||||
'[quote=mike]please quote me[/quote]',
|
||||
:quote
|
||||
],
|
||||
}
|
||||
@my_blockquote = block_quote
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in New Issue
Block a user