Hash :
cd2c6c84
Author :
Thomas de Grivel
Date :
2022-01-26T00:20:55
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<div class="container-fluid">
<div class="row">
<div class="col">
<%= render("show_title.html", assigns) %>
</div>
</div>
<div class="row">
<div class="col">
<%= if @path do %>
<hr/>
<h2><%= link @path, to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_tree", @tree] ++ String.split(@path, "/"))) %></h2>
<% end %>
<%= render("show_branch.html", assigns) %>
<hr/>
<h3><%= gettext("Log") %></h3>
<table class="git-log table">
<thead>
<tr>
<th class="author"><%= gettext "Author" %></th>
<th class="commit"><%= gettext "Commit" %></th>
<th class="date"><%= gettext "Date" %></th>
<th class="message"><%= gettext "Message" %></th>
</tr>
</thead>
<tbody>
<%= for commit <- @log do %>
<tr class="commit">
<td class="author">
<%= render(KmxgitWeb.UserView, "avatar.html", conn: @conn, email: commit.author_email, size: 48, title: commit.author, class: "") %>
</td>
<td class="hash">
<%= link String.slice(commit.hash, 0..7), id: commit.hash, to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_commit", commit.hash])) %>
</td>
<td class="date">
<%= commit.date |> String.replace("T", " ") |> String.replace("+", " +") %>
</td>
<td class="message" %>
<%= commit.message %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>