[refactor] Move Mailbot#logo_url and #conference_color to ConferenceHelper

This commit is contained in:
Jimmy 2021-03-12 00:14:29 -08:00
parent 33ce7a61c6
commit fdb08b0c9a
6 changed files with 52 additions and 66 deletions

View file

@ -10,15 +10,11 @@
<%= stylesheet_link_tag "mailbot" %>
</head>
<body>
<% if @conference.present? && @conference.color.present? %>
<div id="border" style="background-color: <%= @conference.color %>">
<% else %>
<div id="border">
<% end %>
<div id="border" style="background-color: <%= conference_color(@conference) %>">
<div class="row">
<div class="col-md-2">
<% if @logo_url.present? %>
<%= image_tag(@logo_url, style: "display:block;height:70px;width:auto;", alt: @conference.title + ' logo') %>
<% if @conference.present? %>
<%= image_tag(conference_logo_url(@conference), style: "display:block;height:70px;width:auto;", alt: @conference.title + ' logo') %>
<% end %>
</div>
</div>