footer: fix exception if git hash isn't defined.
The git hash may be undefined when running in a Docker container.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
/
|
||||
<span class="social-icons">
|
||||
<% if Danbooru.config.source_code_url.present? %>
|
||||
<%= link_to Danbooru.config.source_code_url, title: "Running commit: #{Rails.application.config.x.git_hash.first(9)}", class: "social-icon" do %>
|
||||
<%= link_to Danbooru.config.source_code_url, title: "Running commit: #{Rails.application.config.x.git_hash&.first(9)}", class: "social-icon" do %>
|
||||
<img src="/images/github-logo.png">
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user