debian-mirror-gitlab/app/views/projects/blob/_auxiliary_viewer.html.haml

6 lines
285 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- 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