move header above content

This commit is contained in:
jomo
2014-06-16 00:44:22 +02:00
parent 03efb744d1
commit dcd5bfd1f2
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
<% title "#{@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="header">
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %>
@@ -10,7 +12,6 @@
</div>
<div class="items">
<div class="item content">
<h2 class="headline"><%= link_to truncate(@post.title, length: 60, omission: " …"), p %></h2>
<%= render_md(@post.content).html_safe %>
</div>
</div>

View File

@@ -1,6 +1,8 @@
<% title @thread.title %>
<%= 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="header">
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %>
@@ -15,7 +17,6 @@
</div>
<% end %>
<div class="item content">
<h2 class="headline"><%= link_to truncate(@thread.title, length: 60, omission: " …"), p %></h2>
<%= render_md(@thread.content).html_safe %>
</div>
</div>