mirror of
https://github.com/discourse/discourse.git
synced 2024-12-27 22:24:34 +08:00
5c67b073ae
* FIX: broken emoji url on password reset w/ subfolder * Use Discourse.base_path to account for subfolder I do like where you are going with using Emoji.url_for but due to the lack of svg support currently I think we need to use the current svg file we have. The emoji png files we have render too blurry at high resolution. This commit uses the `Discourse.base_path` so that a subfolder install will have the correct image path. I do think in the future we should do some work around using a helper similar to Emoji.url_for with svg support so that we better standardize our use of these emojis. Co-authored-by: Blake Erickson <o.blakeerickson@gmail.com>
30 lines
835 B
Plaintext
30 lines
835 B
Plaintext
<div id="simple-container">
|
|
<%if @error%>
|
|
<div class='invite-error'>
|
|
<div class="error-image">
|
|
<img src="<%= Discourse.base_path + '/images/sweat-smile-face.svg' %>" alt="sweat-smile-face emoji">
|
|
</div>
|
|
<div class="error-info">
|
|
<%= @error.html_safe %>
|
|
|
|
<% if @user.present? and @user.errors.present? %>
|
|
<% @user.errors.full_messages.each do |msg| %>
|
|
<li><%= msg %></li>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<%end%>
|
|
</div>
|
|
|
|
<% content_for :title do %><%=t "password_reset.title" %> - <%= SiteSetting.title %><% end %>
|
|
|
|
<%- content_for(:no_ember_head) do %>
|
|
<meta name="referrer" content="never">
|
|
<%= render_google_universal_analytics_code %>
|
|
<%- end %>
|
|
|
|
<%- content_for(:head) do %>
|
|
<meta name="referrer" content="never">
|
|
<%- end %>
|