gitlab-org--gitlab-foss/app/views/projects/tree/_readme.html.haml

10 lines
475 B
Text
Raw Normal View History

- if readme.rich_viewer
2017-06-23 06:33:47 -04:00
%article.file-holder.readme-holder{ class: ("limited-width-container" unless fluid_layout) }
.js-file-title.file-title
= blob_icon readme.mode, readme.name
= link_to project_blob_path(@project, tree_join(@ref, readme.path)) do
%strong
= readme.name
2017-05-08 19:52:05 -04:00
= render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: project_blob_path(@project, tree_join(@ref, readme.path), viewer: :rich, format: :json)