Permalink
Browse files

Cleanup revision header and remove duplicate ids in post partial

  • Loading branch information...
1 parent 6fa8a0a commit 3cb001f7a6993e7923b26592ce7fb04718419a7f @msevestre msevestre committed Dec 1, 2012
@@ -7,7 +7,7 @@
*= require monologue/blog/skeleton/skeleton
*= require monologue/blog/skeleton/layout
*= require monologue/foundation_icons/social_foundicons
- *= require_tree .
+ *= require monologue/blog/monologue
*= require monologue/blog/fonts
*= require monologue/blog/custom
*/
@@ -32,8 +32,21 @@ a.social {
.social i {
font-size: 30px;
}
+.revision-header ul{
+ text-align: center;
+}
+.revision-header span {
+ text-transform: uppercase;
+ font-weight: bold;
+}
+.revision-header span:after{
+ content: "|";
+}
+.revision-header span:last-child:after {
+ content: "";
+}
/* pagination */
#pagination {
@@ -91,7 +104,7 @@ a.social {
}
/* tags */
-#tags {
+.tags {
margin-top: 20px;
margin-bottom: 20px;
}
@@ -2,11 +2,11 @@
<section>
<%= render :partial => 'monologue/posts/revision_header', :locals => {:revision=>revision} %>
- <div id="content" data-monologue="content">
+ <div class="content" data-monologue="content">
<%= truncate_html(revision.content, :length => 1000, :omission => '...') %>
</div>
- <div id="tags" data-monologue="tags">
+ <div class="tags" data-monologue="tags">
<%= render post.tags %>
</div>
<%= link_to t(".readmore"), revision.full_url, :class => "button" %>
@@ -1,9 +1,14 @@
<header class="revision-header">
<h1><%= link_to revision.title, revision.full_url %></h1>
- <div class="posted">
- <time datetime="<%= revision.published_at %>">
- <%= I18n.localize(revision.published_at.to_date, :format => :long) %>
- </time>
- &nbsp;&nbsp;|&nbsp;&nbsp;<%= revision.user.name %>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<%= revision.full_url + "#disqus_thread" %>"></a>
- </div>
-</header>
+ <span data-monologue="time">
+ <time datetime="<%= revision.published_at %>">
+ <%= I18n.localize(revision.published_at.to_date, :format => :long) %>
+ </time>
+ </span>
+ <span data-monologue="user">
+ <%= revision.user.name %>
+ </span>
+ <span data-monologue="disqus">
+ <a href="<%= revision.full_url + "#disqus_thread" %>"></a>
+ </span>
+</header>

1 comment on commit 3cb001f

@lightswitch05

Thank you for removing the duplicate ids! I had a minor OCD attack when I saw that in the current version

Please sign in to comment.