diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index 30587ef5b63f87661e48577cfe5b5be31a449fb6..afa5095267d8d00e70a031f8f3a3ade71cb7dc25 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -38,6 +38,10 @@ } } +#preview-note { + margin-bottom: 0; +} + .note { padding: 8px 0; border-bottom: 1px solid #eee; diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml index 1b67eabd5a591d67d920444b26fb9bdcdbb49828..65bf605a03873d9143d4f84a1b535da211968b2b 100644 --- a/app/views/issues/_form.html.haml +++ b/app/views/issues/_form.html.haml @@ -38,7 +38,7 @@ = f.label :description, "Details" .input = f.text_area :description, maxlength: 2000, class: "xxlarge", rows: 14 - %p.hint Markdown is enabled. + %p.hint Issues are parsed with #{link_to "Gitlab Flavored Markdown", help_markdown_path, target: '_blank'}. .actions diff --git a/app/views/milestones/_form.html.haml b/app/views/milestones/_form.html.haml index 1cd08ac3bcf91c33c1e17a7a61f094d632f718ba..49200c6705f91f651aefcc0087d9f97d03353c8b 100644 --- a/app/views/milestones/_form.html.haml +++ b/app/views/milestones/_form.html.haml @@ -22,7 +22,7 @@ = f.label :description, "Description", class: "control-label" .controls = f.text_area :description, maxlength: 2000, class: "input-xlarge", rows: 10 - %p.hint Markdown is enabled. + %p.hint Milestones are parsed with #{link_to "Gitlab Flavored Markdown", help_markdown_path, target: '_blank'}. .span6 .control-group = f.label :due_date, "Due Date", class: "control-label" diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index dac026bd23d02f8bea2dffe7055dcfe6a1860631..326f1add4850e60b406815dda6c4b2cf9e0a9562 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -9,10 +9,9 @@ = f.hidden_field :noteable_type = f.text_area :note, size: 255 #preview-note.well.hide - %p.hint - = link_to "Gitlab Markdown", help_markdown_path, target: '_blank' - is enabled. + .hint = link_to 'Preview', preview_project_notes_path(@project), id: 'preview-link' + .right Comments are parsed with #{link_to "Gitlab Flavored Markdown", help_markdown_path, target: '_blank'}. .row.note_advanced_opts.hide .span2 diff --git a/app/views/wikis/_form.html.haml b/app/views/wikis/_form.html.haml index 6b6411be55be39d060e30471202e444e00aa5c85..305607d411899ee5cfec9d2fc95c4fb541e9d2f2 100644 --- a/app/views/wikis/_form.html.haml +++ b/app/views/wikis/_form.html.haml @@ -14,9 +14,10 @@ .middle_box_content .input %span.cgray - Wiki content is parsed with #{link_to "Markdown", "http://en.wikipedia.org/wiki/Markdown"}. - To add link to new page you can just type + Wiki content is parsed with #{link_to "Gitlab Flavored Markdown", help_markdown_path, target: '_blank'}. + To link to a (new) page you can just type %code [Link Title](page-slug) + \. .bottom_box_content = f.label :content