From 931a1f85542d77e4be1040172354c74d54e26dff Mon Sep 17 00:00:00 2001 From: Victoria Wang Date: Thu, 9 Oct 2014 18:42:31 -0700 Subject: [PATCH] Adjusted styling for message explaining comment policy --- sass/_project-sass/_project-Main.scss | 7 +++++++ views/site.erb | 16 ++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index 67b3df6b..c7bf9f96 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -739,6 +739,13 @@ a.tag:hover { margin-left: 10px; margin-top: 4px; } +.comment-policy { + margin-top: .5em; + float: left; + font-style: italic; + font-size: .8em; + margin-right: 45px; +} .supporter-badge { background:url(/img/supporter.png); width: 99px; diff --git a/views/site.erb b/views/site.erb index d3ed03fd..d363d6b8 100644 --- a/views/site.erb +++ b/views/site.erb @@ -83,17 +83,13 @@ <% unless current_site.commenting_allowed? %>disabled<% end %> >Post + + <% unless current_site.commenting_allowed? %> +

+ To prevent spam, you cannot comment until you have updated your site <%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> times (on <%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> separate days), and your account is one week old. While waiting, now is a great time to start building your awesome site! +

+ <% end %> - - <% unless current_site.commenting_allowed? %> -
-

- - Note: To prevent spam, you cannot comment until you have updated your site <%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> times (on <%= Site::COMMENTING_ALLOWED_UPDATED_COUNT %> separate days),
and your account is one week old. While waiting, now is a great time to start building your awesome site! -
-

-
- <% end %> <% end %> <% if @latest_events.empty? %>