render notes preview on server-side
This commit is contained in:
parent
1ec3bd3f8d
commit
9639780359
5 changed files with 18 additions and 1341 deletions
|
@ -33,7 +33,11 @@ class NotesController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
protected
|
||||
def preview
|
||||
render :text => view_context.markdown(params[:note])
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def notes
|
||||
@notes = Notes::LoadContext.new(project, current_user, params).execute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue