gitlab-org--gitlab-foss/app/views/projects/_md_preview.html.haml
2014-10-18 18:16:20 -05:00

13 lines
341 B
Text

%ul.nav.nav-tabs
%li.active
= link_to '#md-write-holder', class: 'js-md-write-button' do
Write
%li
= link_to '#md-preview-holder', class: 'js-md-preview-button',
data: { url: markdown_preview_project_path(@project) } do
Preview
%div
.md-write-holder
= yield
.md-preview-holder.hide
.js-md-preview