Commit dc9bd70c3de9857cccb04a9441b40cbde00dd680

Thomas de Grivel 2022-01-29T13:20:04

remove some hr

diff --git a/lib/kmxgit_web/templates/repository/show_branch.html.heex b/lib/kmxgit_web/templates/repository/show_branch.html.heex
index a5b9f1b..530e943 100644
--- a/lib/kmxgit_web/templates/repository/show_branch.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_branch.html.heex
@@ -1,6 +1,5 @@
 <%= if @tree do %>
   <%= if tree = Enum.find(@git.trees, fn {_, name, _} -> name == @tree end) do %>
-    <hr/>
     <p>
       <%= tree_type(tree) %>
       <%= select :repository, :tree, select_trees(@git.trees), selected: @tree_url, class: "tree" %>
diff --git a/lib/kmxgit_web/templates/repository/show_files.html.heex b/lib/kmxgit_web/templates/repository/show_files.html.heex
index f9ac847..7849f0a 100644
--- a/lib/kmxgit_web/templates/repository/show_files.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_files.html.heex
@@ -1,33 +1,25 @@
 <div class="row">
   <div class="col col-12 col-md-7">
     <%= render("show_branch.html", assigns) %>
-
-    <hr/>
     <%= if @git.log1 do %>
       <%= render("show_commit_message.html", assigns) %>
     <% end %>
-
-    <%= if @git.content do %>
-      <hr/>
-      <%= render("show_git_content.html", assigns) %>
-    <% else %>
-      <hr/>
-      <h2><%= gettext("Files") %></h2>
-      <ul>
-        <%= for file <- @git.files do %>
-          <li>
-            <%= case file.type do %>
-              <% "blob" -> %>
-                <%= link file.name, to: file.url %>
-              <% "tree" -> %>
-                <%= link "#{file.name}/", to: file.url %>
-              <% _ -> %>
-                <%= "#{file.type} #{file.name}" %>
-            <% end %>
-          </li>
-        <% end %>
-      </ul>
-    <% end %>
+    <hr/>
+    <h2><%= gettext("Files") %></h2>
+    <ul>
+      <%= for file <- @git.files do %>
+        <li>
+          <%= case file.type do %>
+            <% "blob" -> %>
+              <%= link file.name, to: file.url %>
+            <% "tree" -> %>
+              <%= link "#{file.name}/", to: file.url %>
+            <% _ -> %>
+              <%= "#{file.type} #{file.name}" %>
+          <% end %>
+        </li>
+      <% end %>
+    </ul>
   </div>
   <div class="col col-12 col-md-5">
     <hr/>
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 3c18686..453818f 100644
--- a/lib/kmxgit_web/templates/repository/show_git_content.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_git_content.html.heex
@@ -1,9 +1,7 @@
 <%= render("show_branch.html", assigns) %>
 <%= if @git.log1 do %>
-  <hr/>
   <%= render("show_commit_message.html", assigns) %>
 <% end %>
-<hr/>
 <%= if String.match?(@git.content_type, ~r(^text/)) do %>
   <%= if @git.markdown_html do %>
     <div class="content_html">