gitlab-org--gitlab-foss/app/views/projects/blob/_auxiliary_viewer.html.haml
2017-05-17 13:33:39 -05:00

5 lines
285 B
Text

- blob = local_assigns.fetch(:blob)
- auxiliary_viewer = blob.auxiliary_viewer
- if auxiliary_viewer && auxiliary_viewer.render_error.nil? && auxiliary_viewer.visible_to?(current_user)
.well-segment.blob-auxiliary-viewer
= render 'projects/blob/viewer', viewer: auxiliary_viewer