Tweak the no-js layout
This commit is contained in:
parent
64355c989e
commit
7f0b66246b
|
@ -3,22 +3,32 @@
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<title><%= @topic_view.topic.title %></title>
|
<title><%= @topic_view.topic.title %></title>
|
||||||
|
<%= crawlable_meta_data(title: @topic_view.title,
|
||||||
|
description: @topic_view.summary,
|
||||||
|
image: @topic_view.image_url) %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<% @topic_view.posts.each do |post| %>
|
<% @topic_view.posts.each do |post| %>
|
||||||
<% if post.user %>
|
<% if post.user %>
|
||||||
<div>
|
<div class='creator'>
|
||||||
#<%=post.post_number%> <%= t 'by'%>: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
<b><%= post.user.username_lower %></b> <%= "(#{post.user.name})" if SiteSetting.display_name_on_posts %> at <%= post.created_at.to_formatted_s(:long_ordinal) %> — #<%= post.post_number %>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class='post'>
|
||||||
|
<% if post.hidden %>
|
||||||
|
<%= t('flagging.user_must_edit').html_safe %>
|
||||||
|
<% else %>
|
||||||
<%= post.cooked.html_safe %>
|
<%= post.cooked.html_safe %>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @topic_view.next_page %>
|
<p>
|
||||||
<p>
|
<% if @topic_view.prev_page %>
|
||||||
<%= link_to(t('next_page').html_safe, @topic_view.next_page_path ) %>
|
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
|
||||||
</p>
|
<% end %>
|
||||||
<% end %>
|
<% if @topic_view.next_page %>
|
||||||
|
<b><%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next' %></b>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<% @topic_view.posts.each do |post| %>
|
<% @topic_view.posts.each do |post| %>
|
||||||
<% if post.user %>
|
<% if post.user %>
|
||||||
<div class='creator'>
|
<div class='creator'>
|
||||||
#<%=post.post_number%> <%= t 'by'%>: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
<b><%= post.user.username_lower %></b> <%= "(#{post.user.name})" if SiteSetting.display_name_on_posts %> at <%= post.created_at.to_formatted_s(:long_ordinal) %> — #<%= post.post_number %>
|
||||||
</div>
|
</div>
|
||||||
<div class='post'>
|
<div class='post'>
|
||||||
<% if post.hidden %>
|
<% if post.hidden %>
|
||||||
|
|
Loading…
Reference in New Issue