app/views/user_accounts/audio_event_comments.html.haml
-# OBSOLETE - marked for removal
- content_for :meta_title, "Annotation Comments by #{@user.user_name}"
- content_for(:page_title) do
Annotation Comments
%small
by
= image_tag @user.image.url(:spanhalf), alt: @user.user_name
= @user.user_name
= render partial: 'shared/sidebar_user', locals: {user_show: @user, user_current: current_user}
.col-sm-12
%p= page_entries_info @user_audio_event_comments
= paginate @user_audio_event_comments
%table.table.table-striped.table-hover
%thead
%tr
%th
%span.fa.fa-map-marker{aria: {hidden: 'true' }}
Site
%th
%span.fa.fa-calendar{aria: {hidden: 'true' }}
Updated
%th
%span.fa.fa-comment{aria: {hidden: 'true' }}
Comment
%tbody
- @user_audio_event_comments.each do |aec|
- if !aec.blank?
- listen_link = make_listen_path(aec.audio_event)
- library_link = make_library_path(aec.audio_event)
- site_name = aec.audio_event.audio_recording.site.name
%tr
%td= site_name
%td= format_sidebar_datetime(aec.updated_at)
%td= truncate(aec.comment, length: 50)
%td
= link_to listen_link, target: '_self', class: 'btn btn-default btn-xs' do
%span.fa.fa-play{aria: {hidden: 'true'}}
Play
= link_to library_link, target: '_self', class: 'btn btn-default btn-xs' do
%span.fa.fa-bullseye{aria: {hidden: 'true'}}
Annotation
= link_to library_link, target: '_self', class: 'btn btn-default btn-xs' do
%span.fa.fa-comment{aria: {hidden: 'true'}}
Comment