diff --git a/lib/runosaari_web/templates/performer/show.html.eex b/lib/runosaari_web/templates/performer/show.html.eex index cc07a99..17fd2bb 100644 --- a/lib/runosaari_web/templates/performer/show.html.eex +++ b/lib/runosaari_web/templates/performer/show.html.eex @@ -19,5 +19,9 @@ <%= @performer.link %> <% end %> Esiintyjän kuva + <%= if @performer.archived != nil do %> <%= link "Takaisin arkistoon", to: Routes.archive_path(@conn, :index) %> + <% else %> + <%= link "Takaisin esiintyjiin", to: Routes.performer_path(@conn, :index) %> + <% end %>