Skip to content

Commit

Permalink
Show edit button on project page
Browse files Browse the repository at this point in the history
Progress on #18
  • Loading branch information
niknetniko committed Aug 27, 2022
1 parent b0c57a6 commit 558602e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/zout_web/templates/project/show.html.eex
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<h1 class="title"><%= @project.name %></h1>
<h1 class="title">
<%= @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 %>
</h1>
<div class="subtitle">
TODO
Hier komen ooit dingen zoals de beschrijving
Expand Down

0 comments on commit 558602e

Please sign in to comment.