debian-mirror-gitlab/app/views/projects/tree/_readme.html.haml

10 lines
544 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- if readme.rich_viewer
2019-09-04 21:01:54 +05:30
%article.file-holder.readme-holder{ id: 'readme', class: [("limited-width-container" unless fluid_layout), ("js-hide-on-navigation" if vue_file_list_enabled?)] }
2017-09-10 17:25:29 +05:30
.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
= render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: project_blob_path(@project, tree_join(@ref, readme.path), viewer: :rich, format: :json)