1234567891011121314151617181920212223242526272829303132333435363738 |
- <%
- # Copyright (C) 2011 - present Instructure, Inc.
- #
- # This file is part of Canvas.
- #
- # Canvas is free software: you can redistribute it and/or modify it under
- # the terms of the GNU Affero General Public License as published by the Free
- # Software Foundation, version 3 of the License.
- #
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
- # details.
- #
- # You should have received a copy of the GNU Affero General Public License along
- # with this program. If not, see <http://www.gnu.org/licenses/>.
- %>
- <%
- self.instance_variables.each do |name|
- if name.match(/\A@content_for/)
- instance_variable_set(name, nil)
- end
- end
- %>
- <% content_for :page_title, t('title', 'Page Error') %>
- <div style="width: 410px; margin-left: auto; margin-right: auto; margin-top: 50px;">
- <h2>{{#t}}Page Error{{/t}}</h2>
- <p>{{#t}}Huh. It doesn't look like you're supposed to be here.{{/t}}</p>
- <% if (defined? message) && message %>
- <p>{{#t}}Error:{{/t}} <%= message %></p>
- <% end %>
- <a href="#" style="font-size: 1.2em;" class="icon-discussion submit_error_link discussion-topic">{{#t}}Click here to tell us what you were looking for.{{/t}}</a>
- {{> views/shared/errors/error_form.html}}
- </div>
|