Make the _mailbot_* files not depend on @conference
This commit is contained in:
parent
d4dba945fc
commit
9f83965c18
2 changed files with 16 additions and 17 deletions
|
|
@ -1,12 +1,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport"/>
|
||||
<meta content="Snap!Con -- A conference all about Snap!, a programing language from UC Berkeley." name="description"/>
|
||||
<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" style="background-color: <%= conference_color(@conference) %>"></div>
|
||||
<% if @conference.present? %>
|
||||
<div id="border" style="background-color: <%= conference_color(@conference) %>">
|
||||
<% else %>
|
||||
<div id="border" style="background-color: #003262">
|
||||
<% end %>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -9,17 +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" style="background-color: <%= conference_color(@conference) %>">
|
||||
|
||||
<body>
|
||||
|
||||
<% if @conference.present? %>
|
||||
<div id="border" style="background-color: <%= conference_color(@conference) %>">
|
||||
<% else %>
|
||||
<div id="border" style="background-color: #003262">
|
||||
<% end %>
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<% if @conference.present? %>
|
||||
<%= image_tag(conference_logo_url(@conference), style: "display:block;height:70px;width:auto;", alt: @conference.title + ' logo') %>
|
||||
<% else %>
|
||||
<%= image_tag(Organization.first.picture_url, style: "display:block;height:70px;width:auto;", alt: ENV['OSEM_NAME'] + ' logo') %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue