gitlab-org--gitlab-foss/app/views/projects/blob/_content.html.haml
2017-04-27 12:23:26 -05:00

8 lines
364 B
Text

- simple_viewer = blob.simple_viewer
- rich_viewer = blob.rich_viewer
- active_viewer = rich_viewer && params[:viewer] != 'simple' ? :rich : :simple
= render 'projects/blob/viewer_wrapper', viewer: simple_viewer, hidden: (active_viewer != :simple)
- if rich_viewer
= render 'projects/blob/viewer_wrapper', viewer: rich_viewer, hidden: (active_viewer != :rich)