Merge pull request #1198 from NARKOZ/preview_notes
ability to preview notes
This commit is contained in:
commit
5fd0e7ba11
4 changed files with 35 additions and 6 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