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

6 lines
285 B
Text
Raw Normal View History

2017-05-14 15:01:12 -04:00
- 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