Commit a79d91be571763d5a61a66ed5fbadd890723c5b6

Thomas de Grivel 2022-02-19T18:25:24

move actions in user show

diff --git a/lib/kmxgit_web/templates/user/show.html.heex b/lib/kmxgit_web/templates/user/show.html.heex
index 166c197..04f430e 100644
--- a/lib/kmxgit_web/templates/user/show.html.heex
+++ b/lib/kmxgit_web/templates/user/show.html.heex
@@ -3,6 +3,11 @@
     <div class="col col-12">
       <%= render("avatar.html", conn: @conn, email: @user.email, size: 256, title: User.login(@user), class: "avatar-lg") %>
       <h1><%= @user.name %> (<%= @user.slug.slug %>)</h1>
+      <div class="col col-12 col-md-8">
+        <%= if @user.description do %>
+          <%= raw Earmark.as_html!(@user.description) %>
+        <% end %>
+      </div>
       <%= if @current_user && @user.id == @current_user.id do %>
         <%= link gettext("New repository"),
             to: Routes.repository_path(@conn, :new, @user.slug.slug),
@@ -11,11 +16,6 @@
             to: Routes.user_path(@conn, :edit, @user.slug.slug),
             class: "btn btn-primary" %>
       <% end %>
-      <div class="col col-12 col-md-8">
-        <%= if @user.description do %>
-          <%= raw Earmark.as_html!(@user.description) %>
-        <% end %>
-      </div>
     </div>
   </div>
   <div class="row">