debian-mirror-gitlab/app/views/projects/blob/viewers/_markup.html.haml

7 lines
314 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- blob = viewer.blob
2018-11-20 20:47:30 +05:30
- context = legacy_render_context(params)
- unless context[:markdown_engine] == :redcarpet
- context[:rendered] = blob.rendered_markup if blob.respond_to?(:rendered_markup)
2018-12-23 12:14:25 +05:30
.file-content.wiki.md{ class: ('use-csslab' if Feature.enabled?(:csslab)) }
2018-11-20 20:47:30 +05:30
= markup(blob.name, blob.data, context)