move header above content
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<% title "#{@post.title}" %>
|
<% title "#{@post.title}" %>
|
||||||
|
|
||||||
<%= link_to "News", blogposts_path %> → <%= link_to @post.title %>
|
<%= link_to "News", blogposts_path %> → <%= link_to @post.title %>
|
||||||
|
<h1><%= truncate(@post.title, length: 60, omission: " …") %></h1>
|
||||||
|
|
||||||
<div class="item-group post with-avatar" id="post-<%= @post.id %>">
|
<div class="item-group post with-avatar" id="post-<%= @post.id %>">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %>
|
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %>
|
||||||
@@ -10,7 +12,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<div class="item content">
|
<div class="item content">
|
||||||
<h2 class="headline"><%= link_to truncate(@post.title, length: 60, omission: " …"), p %></h2>
|
|
||||||
<%= render_md(@post.content).html_safe %>
|
<%= render_md(@post.content).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<% title @thread.title %>
|
<% title @thread.title %>
|
||||||
|
|
||||||
<%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %> → <%= link_to @thread.forum, @thread.forum %> → <%= link_to @thread %>
|
<%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %> → <%= link_to @thread.forum, @thread.forum %> → <%= link_to @thread %>
|
||||||
|
<h1><%= truncate(@thread.title, length: 60, omission: " …") %></h1>
|
||||||
|
|
||||||
<div class="item-group thread with-avatar" id="thread-<%= @thread.id %>">
|
<div class="item-group thread with-avatar" id="thread-<%= @thread.id %>">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %>
|
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %>
|
||||||
@@ -15,7 +17,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="item content">
|
<div class="item content">
|
||||||
<h2 class="headline"><%= link_to truncate(@thread.title, length: 60, omission: " …"), p %></h2>
|
|
||||||
<%= render_md(@thread.content).html_safe %>
|
<%= render_md(@thread.content).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user