debian-mirror-gitlab/app/views/projects/_md_preview.html.haml

14 lines
422 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%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_namespace_project_path(@project.namespace, @project) } do
Preview
%div
.md-write-holder
= yield
.md-preview-holder.hide
.js-md-preview{class: (preview_class if defined?(preview_class))}