2022-05-17 10:37:43 -05:00
|
|
|
<% content_for :title do %><%= @page_title %> - <%= SiteSetting.title %><% end %>
|
|
|
|
|
2019-10-08 06:15:08 -05:00
|
|
|
<div class="page-not-found">
|
|
|
|
<h1 class="title"><%= @title %></h1>
|
|
|
|
|
2020-07-30 05:10:16 -05:00
|
|
|
<%- if !@current_user %>
|
2020-07-01 10:27:42 -05:00
|
|
|
<a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
|
|
|
|
<%- end %>
|
|
|
|
|
2019-10-08 06:15:08 -05:00
|
|
|
<%- if @group&.allow_membership_requests %>
|
|
|
|
<a href="<%= group_path @group.name %>" class='btn btn-primary'><%= SvgSprite.raw_svg('user-plus') %> <%= I18n.t('not_in_group.request_membership') %></a>
|
|
|
|
<%- elsif @group&.public_admission %>
|
|
|
|
<a href="<%= group_path @group.name %>" class='btn btn-primary'><%= SvgSprite.raw_svg('user-plus') %> <%= I18n.t('not_in_group.join_group') %></a>
|
|
|
|
<%- end %>
|
|
|
|
</div>
|
2013-07-11 15:38:46 -05:00
|
|
|
|
2017-11-14 15:31:44 -06:00
|
|
|
<%= build_plugin_html 'server:not-found-before-topics' %>
|
2017-11-14 10:57:17 -06:00
|
|
|
|
2019-02-12 04:20:33 -06:00
|
|
|
<%= @topics_partial %>
|
2013-07-11 15:38:46 -05:00
|
|
|
|
2018-08-14 20:53:04 -05:00
|
|
|
<%- unless @hide_search%>
|
2014-04-29 14:17:40 -05:00
|
|
|
<div class="row">
|
2017-11-24 11:41:31 -06:00
|
|
|
<div class="page-not-found-search">
|
2014-09-06 03:01:05 -05:00
|
|
|
<h2><%= t 'page_not_found.search_title' %></h2>
|
2014-04-29 14:17:40 -05:00
|
|
|
<p>
|
2020-07-01 08:57:52 -05:00
|
|
|
<form action='<%= path "/search" %>' id='discourse-search'>
|
2017-06-29 00:37:03 -05:00
|
|
|
<input type="text" name="q" value="<%= @slug %>">
|
2018-08-14 20:53:04 -05:00
|
|
|
<button class="btn btn-primary"><%= t 'page_not_found.search_button' %></button>
|
2014-04-29 14:17:40 -05:00
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
</div>
|
2013-07-11 15:38:46 -05:00
|
|
|
</div>
|
|
|
|
|
2018-11-15 12:35:38 -06:00
|
|
|
<%= preload_script('onpopstate-handler') %>
|
2014-04-29 14:17:40 -05:00
|
|
|
<%- end %>
|