%h2= 'Template: ' + @template.name
%br
= link_to '+ Create new template instance', new_character_path(template_id: @template.id)
%br
%br
= render partial: 'single', locals: {title: 'Characters', template: @template}

%h2= 'Template: ' + @template.name
%br
- if @template.user_id == current_user.id
    = link_to '+ Create new template instance', new_character_path(template_id: @template.id)
    %br
%br
= render partial: 'single', locals: {title: 'Characters', template: @template}

Hide New Instance on not-your-template pages
Hide New Instance on not-your-template pages
