From 708f1c56d68c466ca60e2d3219933312c72aba82 Mon Sep 17 00:00:00 2001 From: Aurelio A. Heckert Date: Thu, 18 Sep 2008 14:39:30 -0300 Subject: [PATCH] ActionItem692: the text "no comments yet" is smaller and low opac. Also the comments counting was removed where comments are not acepted. --- app/views/content_viewer/view_page.rhtml | 22 +++++++++++++--------- public/stylesheets/article.css | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/app/views/content_viewer/view_page.rhtml b/app/views/content_viewer/view_page.rhtml index 0139a1c..47c54ad 100644 --- a/app/views/content_viewer/view_page.rhtml +++ b/app/views/content_viewer/view_page.rhtml @@ -76,14 +76,18 @@ <% end %> -

- <%= @comments.size == 0 ? _('No comments yet') : (n_('One comment', '%{comments} comments', @comments.size)) % { :comments => @comments.size} %> -

- <%= render :partial => 'comment', :collection => @comments %> -<% if !@page.accept_comments? %> -

<%= _('This article does not accept comments')%>

-<% else %> - <%= render :partial => 'comment_form' %> -<% end %> + +
+ <% if !@page.accept_comments? %> + <%= _('This article does not accept comments')%> + <% else %> +

> + <%= @comments.size == 0 ? _('No comments yet') : + (n_('One comment', '%{comments} comments', @comments.size)) % { :comments => @comments.size} + %>

+ <%= render :partial => 'comment', :collection => @comments %> + <%= render :partial => 'comment_form' %> + <% end %> +
diff --git a/public/stylesheets/article.css b/public/stylesheets/article.css index 0dcf239..8fa3119 100644 --- a/public/stylesheets/article.css +++ b/public/stylesheets/article.css @@ -29,6 +29,24 @@ /* * * Comments * * */ +.comments { } + +#content .no-comments-yet { + text-align: center; + font-size: 80%; + opacity: 0.5; + filter: alpha(opacity=50); +} + +.do-not-comment { + display: block; + text-align: right; + padding-top: 15px; + font-size: 80%; + opacity: 0.5; + filter: alpha(opacity=50); +} + .article-comment { position: relative; border: 1px solid #B8CFE7; -- libgit2 0.21.2