diff --git a/templates/actionbar/list.html b/templates/actionbar/list.html
index da0c078..64b8389 100644
--- a/templates/actionbar/list.html
+++ b/templates/actionbar/list.html
@@ -17,7 +17,7 @@
{% if not hide_actionbar_comment %}
-
+
-
+
{{_("Share")}}
diff --git a/templates/comments/list.html b/templates/comments/list.html
index dcffd48..db61a76 100644
--- a/templates/comments/list.html
+++ b/templates/comments/list.html
@@ -1,5 +1,36 @@
{{ _('Comments') }}
+Write comments
+ {% if request.user.is_authenticated and comment_form and not comment_lock %} +{{ _('New comment') }}
++ {% endblock %} + {% if is_new_user %} +
{% set logged_in = request.user.is_authenticated %} @@ -121,37 +152,6 @@
- {% block comment_submit_title %}
-
- {{ _('You need to have solved at least one problem before your voice can be heard.') }}
-
- {% else %}
-
- {% endif %}
-
- {% endif %}
-
{% if comment_lock %}
{{ _('Comments are disabled on this page.') }}
diff --git a/templates/comments/media-js.html b/templates/comments/media-js.html
index 1ca2d4c..4e92461 100644
--- a/templates/comments/media-js.html
+++ b/templates/comments/media-js.html
@@ -211,6 +211,26 @@
$comment.find('.comment-body').show();
$comment.find('.bad-comment-body').hide();
};
+
+ $("#share-button").click( function() {
+ navigator.clipboard
+ .writeText(window.location.href)
+ .then( () => {
+ alert("Copied link to this post");
+ });
+ });
+
+ $("#write-comments").click( function(event) {
+ event.preventDefault();
+ $("#new-comment").show("slow");
+ $("#write-comments").hide();
+ });
+
+ $('#comment-button').click( function() {
+ $('#comment-section').show();
+ $('#comment-announcement').hide();
+ })
+
});
-
+
{% endcompress %}
{% endif %} - {% if request.user.is_authenticated and comment_form and not comment_lock %} -{{ _('New comment') }}
-- {% endblock %} - {% if is_new_user %} -