2016-04-14 06:44:35 -04:00
|
|
|
- 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'
|
|
|
|
|
2012-10-15 14:56:58 -04:00
|
|
|
- else
|
2016-04-14 06:44:35 -04:00
|
|
|
- blob.load_all_data!(@repository)
|
|
|
|
|
|
|
|
- if markup?(blob.name)
|
|
|
|
.file-content.wiki
|
|
|
|
= render_markup(blob.name, blob.data)
|
2016-01-25 05:42:47 -05:00
|
|
|
- else
|
2016-04-14 06:44:35 -04:00
|
|
|
- if blob.empty?
|
|
|
|
.file-content.code
|
|
|
|
.nothing-here-block Empty file
|
|
|
|
- else
|
2016-06-10 18:42:43 -04:00
|
|
|
= render 'shared/file_highlight', blob: blob, repository: @repository
|