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
|
|
|
|
2017-04-21 14:33:48 -04:00
|
|
|
= render 'projects/blob/viewer', viewer: simple_viewer, hidden: rich_viewer_active
|
2017-04-13 13:14:15 -04:00
|
|
|
|
|
|
|
- if rich_viewer
|
2017-04-21 14:33:48 -04:00
|
|
|
= render 'projects/blob/viewer', viewer: rich_viewer, hidden: !rich_viewer_active
|