gitlab-org--gitlab-foss/app/views/projects/blob/_content.html.haml

9 lines
322 B
Text
Raw Normal View History

2017-04-13 13:14:15 -04:00
- simple_viewer = blob.simple_viewer
- rich_viewer = blob.rich_viewer
2017-04-21 14:22:04 -04:00
- rich_viewer_active = rich_viewer && params[:viewer] != 'simple'
2017-04-13 13:14:15 -04:00
= render 'projects/blob/viewer', viewer: simple_viewer, hidden: rich_viewer_active
2017-04-13 13:14:15 -04:00
- if rich_viewer
= render 'projects/blob/viewer', viewer: rich_viewer, hidden: !rich_viewer_active