Skip to content

Commit

Permalink
Some simple css reord, and also show comment count on index page
Browse files Browse the repository at this point in the history
  • Loading branch information
kkuchta committed Feb 28, 2012
1 parent 63baf33 commit 80b1791
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
30 changes: 16 additions & 14 deletions app/assets/stylesheets/bits.css.scss
Expand Up @@ -8,20 +8,6 @@
}
}
.content{
.bit{
.upvote:hover, .downvote:hover{
opacity:.60;
cursor:pointer;
}
.tag{
margin-right:5px;
}


}
.bit.example{
margin-left:20px;
}

form.tag-search{
margin-bottom: 50px;
Expand All @@ -41,7 +27,20 @@
}
}

.bit.example{
margin-left:20px;
}

.bit{

.upvote:hover, .downvote:hover{
opacity:.60;
cursor:pointer;
}
.tag{
margin-right:5px;
}

.header{
/*height:100px;*/
position:relative;
Expand Down Expand Up @@ -74,6 +73,9 @@
.username{
margin-top:10px;
}
.comment-summary{
margin-left:40px;
}
}

#comments{
Expand Down
8 changes: 6 additions & 2 deletions app/views/bits/index.html.haml
Expand Up @@ -41,8 +41,12 @@
.row
.span8.code
%pre.prettyprint.linenums= limit_string bit.code
-#.row
-#.span8= raw limit_string(@markdown.render(bit.description),2,200)
- if bit.comments.count > 0
.row
.span8.comment-summary
%a{ href: url_for( bit ) }
= bit.comments.count.to_s + " comments"

%hr
= paginate @bits

0 comments on commit 80b1791

Please sign in to comment.