- @title = "Paint Composer"

%tunes.show
  = render :partial => tune
  - if tune.parent
    = render tune.parent

%tags
  - tune.tag_list.each do |tag|
    = tag_link(tag)
  = form_tag add_tag_tune_path do
    = text_field_tag :tag, nil, :placeholder => "Tag name"
    %button(type='submit') Add Tag

%actions
  - if current_user
    - if current_user.favorite?(tune)
      = button_to remove_favorite_tune_path(tune) do
        💔 Remove Favorite
    - else
      = button_to add_favorite_tune_path(tune) do
        💝 Add Favorite

  - if owner_or_admin?
    %a.button(href="#{editor_tune_path(tune)}")
      ⬆️️ Load in Editor
    %a.button(href="#{edit_tune_path(tune)}")
      📝 Edit Details
    %a.button(href="#{tune_path(tune)}" data-method="delete")
      🗑️ Delete

- if tune.children.any?
  %h2
    Remixes

  %tunes
    = render :partial => tune.children.limit(20)

= display_comments tune

- @title = "Paint Composer"

%tunes.show
  = render :partial => tune
  - if tune.parent
    = render tune.parent

%tags
  - tune.tag_list.each do |tag|
    = tag_link(tag)
  = form_tag add_tag_tune_path do
    = text_field_tag :tag, nil, :placeholder => "Tag name"
    %button(type='submit') Add Tag

%actions
  %a.button(href="#{editor_tune_path(tune)}")
    ⬆️️ Load in Editor

  - if current_user
    - if current_user.favorite?(tune)
      = button_to remove_favorite_tune_path(tune) do
        💔 Remove Favorite
    - else
      = button_to add_favorite_tune_path(tune) do
        💝 Add Favorite

  - if owner_or_admin?
    %a.button(href="#{edit_tune_path(tune)}")
      📝 Edit Details
    %a.button(href="#{tune_path(tune)}" data-method="delete")
      🗑️ Delete

- if tune.children.any?
  %h2
    Remixes

  %tunes
    = render :partial => tune.children.limit(20)

= display_comments tune

Load in editor should appear for all users
Load in editor should appear for all users
