add_comment_button should be hidden with initially_hidden css class if can_create_comment permission is false => do not set this css property directly on html element.
--- a/src/cm/media/css/site/text_view_frame.css Thu Oct 13 14:53:11 2011 +0200
+++ b/src/cm/media/css/site/text_view_frame.css Mon Nov 14 10:16:54 2011 +0100
@@ -185,6 +185,7 @@
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
+ display: inline-block;
}
#add_comment_btn:hover {
@@ -198,3 +199,8 @@
-moz-box-shadow: inset 0px -3px 1px rgba(255, 255, 255, 1), inset 0 0px 3px rgba(0, 0, 0, 0.9);
box-shadow: inset 0px -3px 1px rgba(255, 255, 255, 1), inset 0 0px 3px rgba(0, 0, 0, 0.9);
}
+
+#add_comment_btn.initially_hidden {
+ display:none;
+}
+
--- a/src/cm/templates/site/text_view_frame.html Thu Oct 13 14:53:11 2011 +0200
+++ b/src/cm/templates/site/text_view_frame.html Mon Nov 14 10:16:54 2011 +0100
@@ -66,7 +66,7 @@
</head>
<BODY>
- <span style="display: inline-block" id="add_comment_btn" class="initially_hidden" title="{% blocktrans %}add a comment{% endblocktrans %}">
+ <span id="add_comment_btn" class="initially_hidden" title="{% blocktrans %}add a comment{% endblocktrans %}">
<img style="vertical-align: middle;" src="{{ CM_MEDIA_PREFIX }}img/add_plus.png" alt="{% blocktrans %}add a comment{% endblocktrans %}"/>
<span>{% blocktrans %}comment{% endblocktrans %}</span>
</span>