add ability for custom branding images

This commit is contained in:
Joshua Arts
2018-07-11 15:33:35 -04:00
parent 20a2c570ba
commit f5ab362f96
3 changed files with 10 additions and 8 deletions

View File

@ -1,14 +1,9 @@
<div class="header py-4">
<div class="container">
<div class="d-flex">
<% if current_user %>
<%= link_to current_user.main_room, class: "header-brand" do %>
<%= image_tag("logo_with_text.png", class: "header-brand-img") %>
<% end %>
<% else %>
<%= link_to root_path, class: "header-brand" do %>
<%= image_tag("logo_with_text.png", class: "header-brand-img") %>
<% end %>
<%= link_to (current_user ? current_user.main_room : root_path), class: "header-brand" do %>
<%= image_tag(Rails.configuration.branding_image.blank? ? "logo_with_text.png" : Rails.configuration.branding_image,
class: "header-brand-img") %>
<% end %>
<div class="d-flex ml-auto">