[feat] Modify alt text for logo; Support user-defined color for header and footer

This commit is contained in:
Jimmy 2021-03-11 21:10:26 -08:00
parent 899d4c91f6
commit ee7c906f17
6 changed files with 55 additions and 41 deletions

View file

@ -9,18 +9,21 @@
<meta content="Michael Ball, Brian Harvey, Jens Moenig, Bernat Romagosa, Dan Garcia, Lauren Mock" name="author"/>
<%= stylesheet_link_tag "mailbot" %>
</head>
<body>
<div id="border">
<body>
<% if @conference.present? && @conference.color.present? %>
<div id="border" style="background-color: <%= @conference.color %>">
<% else %>
<div id="border">
<% end %>
<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 logo') %>
<%= image_tag(@logo_url, style: "display:block;height:70px;width:auto;", alt: @conference.title + ' logo') %>
<% end %>
</div>
</div>
</div>
<div id="content">
<span style="white-space: pre-line"></span>
</body>