Browse Source

* update comments design

master
Alex 'AdUser' Z 9 years ago
parent
commit
0c2cff91e4
  1. 5
      public/theme/css/default.css
  2. 6
      templates/comments/list.html.ep

5
public/theme/css/default.css

@ -83,6 +83,10 @@ h1 {
h2 { font-size: 130%; } h2 { font-size: 130%; }
/* comments */ /* comments */
div#comments {
padding: 5px;
}
div.comment { div.comment {
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -90,6 +94,7 @@ div.comment {
div.comment div.cinfo { div.comment div.cinfo {
border-bottom: 1px dashed #506070; border-bottom: 1px dashed #506070;
margin-bottom: 5px; margin-bottom: 5px;
padding: 3px;
} }
form#cadd textarea { form#cadd textarea {

6
templates/comments/list.html.ep

@ -4,9 +4,9 @@
% foreach my $comment (@{ $comments }) { % foreach my $comment (@{ $comments }) {
<div class="comment"> <div class="comment">
<div class="cinfo"> <div class="cinfo">
<span class="num">#&nbsp;<%= $num++ %></span>&nbsp; <span class="cnum">#<%= $num++ %></span>,&nbsp;
<span class="user"><%= $comment->{user} %></span>&nbsp; <span class="cuser"><%= $comment->{user} %></span>,&nbsp;
<span class="date"><%= from_unixtime $comment->{time} %></span>&nbsp; <span class="cdate"><%= from_unixtime $comment->{time} %></span>
</div> </div>
<div class="ctext"> <div class="ctext">
%== markdown $comment->{text} %== markdown $comment->{text}

Loading…
Cancel
Save