aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-18 22:25:41 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-19 16:09:07 +0200
commit1472f85b162ea6f1ab9e19e94b86fc4a8ef074be (patch)
tree5bcfc4803bb4305790d7cce894cc96a072e86840 /view
parent3d6255ae24310a935caf4e74729aa7165f94aeda (diff)
downloadvolse-hubzilla-1472f85b162ea6f1ab9e19e94b86fc4a8ef074be.tar.gz
volse-hubzilla-1472f85b162ea6f1ab9e19e94b86fc4a8ef074be.tar.bz2
volse-hubzilla-1472f85b162ea6f1ab9e19e94b86fc4a8ef074be.zip
allow moderated comments like wordpress if permissions are compatible
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js2
-rwxr-xr-xview/tpl/comment_item.tpl7
-rwxr-xr-xview/tpl/search_item.tpl11
3 files changed, 17 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 38b9754a1..6c42531ea 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -13,6 +13,7 @@ function commentOpenUI(obj, id) {
$("#comment-edit-text-" + id).attr('tabindex','9');
$("#comment-edit-submit-" + id).attr('tabindex','10');
$("#comment-tools-" + id).show();
+ $("#comment-edit-anon-" + id).show();
}
};
@@ -41,6 +42,7 @@ function commentOpen(obj, id) {
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).show();
+ $("#comment-edit-anon-" + id).show();
openMenu("comment-tools-" + id);
return true;
}
diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl
index 92eeac056..02b0c527c 100755
--- a/view/tpl/comment_item.tpl
+++ b/view/tpl/comment_item.tpl
@@ -11,9 +11,10 @@
<input type="hidden" name="jsreload" value="{{$jsreload}}" />
<input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
{{if $anoncomments && ! $observer}}
- <div id="comment-edit-anon-{{$id}}">
- {{include file="field_input.tpl" field=$authorname}}
- {{include file="field_input.tpl" field=$authormail}}
+ <div id="comment-edit-anon-{{$id}}" style="display: none;" >
+ {{include file="field_input.tpl" field=$anonname}}
+ {{include file="field_input.tpl" field=$anonmail}}
+ {{include file="field_input.tpl" field=$anonurl}}
{{$anon_extras}}
</div>
{{/if}}
diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl
index 66618a216..4ca6378b8 100755
--- a/view/tpl/search_item.tpl
+++ b/view/tpl/search_item.tpl
@@ -102,6 +102,17 @@
<div class="dropdown-menu">{{$item.attachments}}</div>
</div>
{{/if}}
+ {{if $item.mode === 'moderate'}}
+
+ <div class="wall-item-tools-left btn-group">
+ <a href="moderate/{{$item.id}}/approve" class="btn btn-outline-secondary btn-small">{{$item.approve}}</a>
+ <a href="moderate/{{$item.id}}/drop" class="btn btn-outline-secondary btn-small">{{$item.delete}}</a>
+
+ </div>
+
+
+
+ {{/if}}
</div>
</div>
{{if $item.conv}}