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

13 lines
569 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- simple_viewer = blob.simple_viewer
- rich_viewer = blob.rich_viewer
- rich_viewer_active = rich_viewer && params[:viewer] != 'simple'
2020-11-24 15:15:51 +05:30
- blob_data = defined?(@blob) ? @blob.data : {}
2021-01-03 14:25:43 +05:30
- is_ci_config_file = defined?(@blob) && defined?(@project) ? editing_ci_config?.to_s : 'false'
2020-11-24 15:15:51 +05:30
2021-01-03 14:25:43 +05:30
#js-blob-toggle-graph-preview{ data: { blob_data: blob_data, is_ci_config_file: is_ci_config_file } }
2017-08-17 22:00:37 +05:30
= render 'projects/blob/viewer', viewer: simple_viewer, hidden: rich_viewer_active
- if rich_viewer
= render 'projects/blob/viewer', viewer: rich_viewer, hidden: !rich_viewer_active