Commit 813a27614cb75f7281b96cc9ad55bbec8d95559d

Thomas de Grivel 2023-06-10T10:40:37

remove diff link and controller

diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 325c9a5..8365053 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -169,7 +169,7 @@ defmodule KmxgitWeb.RepositoryController do
         "_blob" -> :blob
         "_ci" -> :ci
         "_commit" -> :commit
-        "_diff" -> :diff
+#        "_diff" -> :diff
         "_log" -> :log
         "_tag" -> :tag
         "_tree" -> :tree
diff --git a/lib/kmxgit_web/templates/repository/commit.html.heex b/lib/kmxgit_web/templates/repository/commit.html.heex
index 4911b6d..736752c 100644
--- a/lib/kmxgit_web/templates/repository/commit.html.heex
+++ b/lib/kmxgit_web/templates/repository/commit.html.heex
@@ -5,7 +5,6 @@
     </div>
     <div class="col col-12 col-md-5">
       <%= link gettext("Browse"), to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_tree", @commit.hash])), class: "btn btn-primary" %>
-      <%= link gettext("Diff"), to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_diff", @commit.hash, "master"])), class: "btn btn-primary" %>
     </div>
   </div>
   <div class="row">