discourse/app/views/exceptions/not_found.html.erb

32 lines
1.2 KiB
Text
Raw Normal View History

2013-02-13 04:05:35 -05:00
<% local_domain = "#{request.protocol}#{request.host_with_port}" %>
2013-02-05 14:16:51 -05:00
<p>The page you requested doesn't exist on this discussion forum. Perhaps we can help find it, or another topic like it:</p>
<table>
<tr>
2013-02-13 03:25:27 -05:00
<td style="vertical-align:top; padding:0 20px 20px 0;">
2013-02-13 04:05:35 -05:00
<h2>Popular topics</h2>
2013-02-05 14:16:51 -05:00
<% @popular.each do |t| %>
<a href='<%= t.relative_url %>'><%= t.title %></a><br/>
<% end %>
2013-02-13 03:25:27 -05:00
<br/>
<a href="/popular" class="btn">See More&hellip;</a>
2013-02-05 14:16:51 -05:00
</td>
2013-02-13 03:25:27 -05:00
<td style="vertical-align:top; padding:0 0 20px 0;">
2013-02-05 14:16:51 -05:00
<h2>Recent topics</h2>
<% @recent.each do |t| %>
<a href='<%= t.relative_url %>'><%= t.title %></a><br/>
<% end %>
2013-02-13 03:25:27 -05:00
<br/>
<a href="/popular" class="btn">See More&hellip;</a>
2013-02-05 14:16:51 -05:00
</td>
</tr>
</table>
<h2>Search for this topic</h2>
<p>
<form action='http://google.com'>
2013-02-13 04:05:35 -05:00
<input type="text" name='q' value="site:<%= local_domain %> <%= @slug %>">
2013-02-13 03:25:27 -05:00
<!--<input type="button" class="btn" value="Search Here" onclick="alert('single page search results not implemented yet');" />-->
<input type="submit" class="btn btn-primary" value="Search Google" />
2013-02-05 14:16:51 -05:00
</form>
</p>