<%= 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 %>
<% if current_user %>   <%= t("header.create_room") %> <% else %> <% if Rails.configuration.omniauth_bn_launcher %> <%= link_to t("login"), omniauth_login_url(:bn_launcher), :class => "btn btn-pill btn-outline-primary mx-2" %> <% elsif Rails.configuration.omniauth_ldap %> <%= link_to t("login"), omniauth_login_url(:ldap), :class => "btn btn-pill btn-outline-primary mx-2" %> <% else %> <%= link_to t("login"), "#loginModal", :class => "btn btn-pill btn-outline-primary mx-2", "data-toggle": "modal" %> <% end %> <% if allow_user_signup? %> <%= link_to t("signup.title"), signup_path, :class => "btn btn-pill btn-outline-primary mx-2" %> <% end %> <%= render "shared/modals/login_modal" %> <% end %>