Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Cleanup revision header and remove duplicate ids in post partial

  • Loading branch information...
commit 3cb001f7a6993e7923b26592ce7fb04718419a7f 1 parent 6fa8a0a
Michael Sevestre authored
2  app/assets/stylesheets/monologue/blog/application.css
@@ -7,7 +7,7 @@
7 7 *= require monologue/blog/skeleton/skeleton
8 8 *= require monologue/blog/skeleton/layout
9 9 *= require monologue/foundation_icons/social_foundicons
10   - *= require_tree .
  10 + *= require monologue/blog/monologue
11 11 *= require monologue/blog/fonts
12 12 *= require monologue/blog/custom
13 13 */
15 app/assets/stylesheets/monologue/blog/monologue.css
@@ -32,8 +32,21 @@ a.social {
32 32 .social i {
33 33 font-size: 30px;
34 34 }
  35 +.revision-header ul{
  36 + text-align: center;
  37 +}
  38 +.revision-header span {
  39 + text-transform: uppercase;
  40 + font-weight: bold;
  41 +}
35 42
  43 +.revision-header span:after{
  44 + content: "|";
  45 +}
36 46
  47 +.revision-header span:last-child:after {
  48 + content: "";
  49 +}
37 50 /* pagination */
38 51
39 52 #pagination {
@@ -91,7 +104,7 @@ a.social {
91 104 }
92 105
93 106 /* tags */
94   -#tags {
  107 +.tags {
95 108 margin-top: 20px;
96 109 margin-bottom: 20px;
97 110 }
4 app/views/monologue/posts/_post.html.erb
@@ -2,11 +2,11 @@
2 2 <section>
3 3 <%= render :partial => 'monologue/posts/revision_header', :locals => {:revision=>revision} %>
4 4
5   - <div id="content" data-monologue="content">
  5 + <div class="content" data-monologue="content">
6 6 <%= truncate_html(revision.content, :length => 1000, :omission => '...') %>
7 7 </div>
8 8
9   - <div id="tags" data-monologue="tags">
  9 + <div class="tags" data-monologue="tags">
10 10 <%= render post.tags %>
11 11 </div>
12 12 <%= link_to t(".readmore"), revision.full_url, :class => "button" %>
19 app/views/monologue/posts/_revision_header.html.erb
... ... @@ -1,9 +1,14 @@
1 1 <header class="revision-header">
2 2 <h1><%= link_to revision.title, revision.full_url %></h1>
3   - <div class="posted">
4   - <time datetime="<%= revision.published_at %>">
5   - <%= I18n.localize(revision.published_at.to_date, :format => :long) %>
6   - </time>
7   - &nbsp;&nbsp;|&nbsp;&nbsp;<%= revision.user.name %>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<%= revision.full_url + "#disqus_thread" %>"></a>
8   - </div>
9   -</header>
  3 + <span data-monologue="time">
  4 + <time datetime="<%= revision.published_at %>">
  5 + <%= I18n.localize(revision.published_at.to_date, :format => :long) %>
  6 + </time>
  7 + </span>
  8 + <span data-monologue="user">
  9 + <%= revision.user.name %>
  10 + </span>
  11 + <span data-monologue="disqus">
  12 + <a href="<%= revision.full_url + "#disqus_thread" %>"></a>
  13 + </span>
  14 +</header>

0 comments on commit 3cb001f

Please sign in to comment.
Something went wrong with that request. Please try again.