discourse/app/views/users/password_reset.html.erb
Sam Saffron 1be01f8dd4 DEV: Add support for Rails 6
Minor fixes to add Rails 6 support to Discourse, we now will boot
with RAILS_MASTER=1, all specs pass

Only one tiny deprecation left

Largest change was the way ActiveModel:Errors changed interface a
bit but there is a simple backwards compat way of working it
2019-05-02 16:23:25 +10:00

27 lines
691 B
Plaintext

<div id="simple-container">
<%if @error%>
<div class='alert alert-error'>
<%= @error %>
</div>
<%end%>
<% if @user.present? and @user.errors.present? %>
<div class='alert alert-error'>
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</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">
<%= preload_script "ember_jquery" %>
<%= render_google_universal_analytics_code %>
<%- end %>
<%- content_for(:head) do %>
<meta name="referrer" content="never">
<%- end %>