scube-server/app/views/tracks/show.html.haml
Thibault Jouan 5e1757aff9 Improve tracks CRUD
* Add index, edit and update action;
* Add _form partial;
* Add link to tracks/index in nav;
* Refactor specs.
2015-05-01 12:09:29 +00:00

10 lines
218 B
Plaintext

%h1= @track.name
- if @track.sound?
%p
%audio{src: sound_path(@track.sound), controls: true, autoplay: true}
Your browser does not support the audio element
%p
= link_to 'Edit', edit_track_path(@track)