2022-01-26 12:08:38 +05:30
|
|
|
- blob = local_assigns.fetch(:blob, nil)
|
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'
|
|
|
|
|
|
|
|
= 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
|