<% if @presenter.vector_file_presenters.present? %> <div class="panel panel-default related_files"> <div class="panel-heading"> <h2>Vector File</h2> </div> <table class="table table-striped"> <thead> <tr> <th>File</th> <th>Filename</th> <th>Date Uploaded</th> <th>Visibility</th> <th>Actions</th> </tr> </thead> <tbody> <%= render partial: 'member', collection: @presenter.vector_file_presenters %> </tbody> </table> </div> <% elsif can? :edit, @presenter.id %> <h2>Vector Files</h2> <p class="center"><em>This <%= @presenter.human_readable_type %> doesn't have a vector file associated with it. You can add one using the "Attach a File" button below.</em></p> <% end %>