From 558602ec9a5804c117744b89a006d3becb972a2f Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Sat, 27 Aug 2022 18:46:32 +0200 Subject: [PATCH] Show edit button on project page Progress on #18 --- lib/zout_web/templates/project/show.html.eex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/zout_web/templates/project/show.html.eex b/lib/zout_web/templates/project/show.html.eex index 525574b..cd50b7b 100644 --- a/lib/zout_web/templates/project/show.html.eex +++ b/lib/zout_web/templates/project/show.html.eex @@ -1,4 +1,9 @@ -

<%= @project.name %>

+

+ <%= @project.name %> + <%= if can?(@conn, :project_edit, @project) do %> + <%= link "Bewerken", to: Routes.project_path(@conn, :edit, @project), class: "button is-primary is-small" %> + <% end %> +

TODO Hier komen ooit dingen zoals de beschrijving