Commit 501bb94f7b757b8dc1798ab3263b4f7b26b9ca76

Thomas de Grivel 2022-12-31T20:01:10

remove duplicate download button

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/kmxgit_web/templates/repository/show_git_content.html.heex b/lib/kmxgit_web/templates/repository/show_git_content.html.heex
index a05da07..92499d0 100644
--- a/lib/kmxgit_web/templates/repository/show_git_content.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_git_content.html.heex
@@ -15,14 +15,14 @@
     <h3><%= gettext "Source" %></h3>
   <% end %>
   <%= render("show_git_content_text.html", assigns) %>
+  <%= render("download_button.html", assigns) %>
 <% end %>
 
 <%= if String.match?(@git.content_type, ~r(^image/)) do %>
   <img src={"data:#{@git.content_type};base64,#{Base.encode64(@git.content)}"}/>
+  <%= render("download_button.html", assigns) %>
 <% end %>
 
-<%= render("download_button.html", assigns) %>
-
 <%= if Mix.env == :dev do %>
   <p>
     <ul class="list-group">