2022-05-17 23:37:43 +08:00
|
|
|
<% content_for :title do %><%= @page_title %> - <%= SiteSetting.title %><% end %>
|
|
|
|
|
2024-04-25 18:00:01 +08:00
|
|
|
<% content_for :head do %>
|
|
|
|
<meta id="discourse-error" data-discourse-error="true">
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :no_ember_head do %>
|
|
|
|
<meta id="discourse-error" data-discourse-error="true">
|
|
|
|
<% end %>
|
|
|
|
|
2019-10-08 19:15:08 +08:00
|
|
|
<div class="page-not-found">
|
|
|
|
<h1 class="title"><%= @title %></h1>
|
|
|
|
|
2020-07-30 18:10:16 +08:00
|
|
|
<%- if !@current_user %>
|
2020-07-01 23:27:42 +08:00
|
|
|
<a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
|
|
|
|
<%- end %>
|
|
|
|
|
2024-07-02 04:08:48 +08:00
|
|
|
<%- if @group&.dig(: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&.dig(: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>
|
2019-10-08 19:15:08 +08:00
|
|
|
<%- end %>
|
|
|
|
</div>
|
2013-07-12 04:38:46 +08:00
|
|
|
|
2017-11-15 05:31:44 +08:00
|
|
|
<%= build_plugin_html 'server:not-found-before-topics' %>
|
2017-11-15 00:57:17 +08:00
|
|
|
|
2019-02-12 18:20:33 +08:00
|
|
|
<%= @topics_partial %>
|
2013-07-12 04:38:46 +08:00
|
|
|
|
2018-08-15 09:53:04 +08:00
|
|
|
<%- unless @hide_search%>
|
2014-04-30 03:17:40 +08:00
|
|
|
<div class="row">
|
2017-11-25 01:41:31 +08:00
|
|
|
<div class="page-not-found-search">
|
2024-03-22 23:09:53 +08:00
|
|
|
<form action='<%= path "/search" %>' id='discourse-search'>
|
|
|
|
<label for="search-input"><%= t 'page_not_found.search_title' %></label>
|
|
|
|
<input type="text" id="search-input" name="q" value="<%= @slug %>">
|
|
|
|
<button class="btn btn-primary"><%= t 'page_not_found.search_button' %></button>
|
|
|
|
</form>
|
2014-04-30 03:17:40 +08:00
|
|
|
</div>
|
2013-07-12 04:38:46 +08:00
|
|
|
</div>
|
|
|
|
|
2018-11-16 02:35:38 +08:00
|
|
|
<%= preload_script('onpopstate-handler') %>
|
2014-04-30 03:17:40 +08:00
|
|
|
<%- end %>
|