* refactor: set the email_from to use in teh defaults * chore: remove some new lines * feat: add a mail link helper that can be used in the views * feat: returns the default if it doesn't understand the parameter * feat: Quick replacement of links * feat: allow subject to be passed through * chore: update all hrefs * chore: remove rel attribute * chore: mail link * update spec * chore: space * chore: update some whitespaces and emails * style * chore: PR mail_link to email_link and the comment * feat: PR suggestions for encoding * feat: use mail_to
30 lines
649 B
Text
30 lines
649 B
Text
<style>
|
|
.error-notice {
|
|
background: rgba(255, 80, 80, 0.7);
|
|
color: white;
|
|
padding: 40px 0px 40px;
|
|
text-align: center;
|
|
position: relative;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
}
|
|
</style>
|
|
<% unless flash[:alert].blank? %>
|
|
<div class="error-notice">
|
|
Something went wrong:
|
|
<% if flash[:alert].is_a?(Array) %>
|
|
<ul>
|
|
<% flash[:alert].each do |error| %>
|
|
<li>
|
|
<%= error %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<% else %>
|
|
<%= flash[:alert] %>
|
|
<br>
|
|
<% end %>
|
|
Please try again below, or contact <%= email_link %> if this persists.
|
|
</div>
|
|
<% end %>
|