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

20 lines
565 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- if blob.only_display_raw?
.file-content.code
.nothing-here-block
File too large, you can
= succeed '.' do
= link_to 'view the raw file', namespace_project_raw_path(@project.namespace, @project, @id), target: '_blank'
2014-09-02 18:07:02 +05:30
- else
2016-06-02 11:05:42 +05:30
- blob.load_all_data!(@repository)
- if markup?(blob.name)
.file-content.wiki
= render_markup(blob.name, blob.data)
2016-02-05 20:25:01 +05:30
- else
2016-06-02 11:05:42 +05:30
- if blob.empty?
.file-content.code
.nothing-here-block Empty file
- else
2016-08-24 12:49:21 +05:30
= render 'shared/file_highlight', blob: blob, repository: @repository