Hash :
501bb94f
Author :
Thomas de Grivel
Date :
2022-12-31T20:01:10
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
<%= render("show_branch.html", assigns) %>
<%= if @git.log1 do %>
<%= render("show_commit_message.html", assigns) %>
<% end %>
<%= render("download_button.html", assigns) %>
<%= if String.match?(@git.content_type, ~r(^text/)) do %>
<%= if @git.markdown_html do %>
<div class="content_html">
<%= raw @git.markdown_html %>
</div>
<hr/>
<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 %>
<%= if Mix.env == :dev do %>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<h3>Debug (Mix.env = :dev)</h3>
</li>
<li class="list-group-item">
sha1: <%= hd(@git.files).sha1 %>
</li>
</ul>
</p>
<% end %>