From 676c81723618a7050cbf1fb54e8cef377907f9f1 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Thu, 26 Mar 2020 04:24:17 +0200 Subject: [PATCH] Update contester edit --- app/views/contesters/show.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/contesters/show.html.erb b/app/views/contesters/show.html.erb index 38f9ce5..22b63ee 100644 --- a/app/views/contesters/show.html.erb +++ b/app/views/contesters/show.html.erb @@ -66,7 +66,11 @@ <% if @contester.can_update? cuser %> - <%= link_to 'Edit', edit_contester_path(@contester), class: 'button' %> + <%= link_to 'Edit Contester', edit_contester_path(@contester), class: 'button' %> +<% end %> + +<% if @contester.team.can_update? cuser %> + <%= link_to 'Edit Team', edit_team_path(@contester.team), class: 'button' %> <% end %>