Hash :
acd72555
Author :
Thomas de Grivel
Date :
2022-01-10T08:00:43
<hr/>
<%= if Enum.find(@git.branches, fn {name, _} -> name == @branch end) do %>
<%= gettext("Branch") %>
<%= select :repository, :branch, @git.branches, selected: @branch_url, onchange: "javascript:document.location = this.value;" %>
<% else %>
<%= if String.length(@branch) == 40 do %>
<h2>
<%= gettext("Commit") %>
<%= @branch %>
</h2>
<% else %>
<h2>
<%= gettext("Tag") %>
<%= @branch %>
</h2>
<% end %>
<% end %>