aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-17 19:47:36 -0800
committerfriendica <info@friendica.com>2015-02-17 19:47:36 -0800
commite00be4de2353e1ca58570bf37fd247ff99fa549f (patch)
tree19117fb4898603af951732c1c3a3cfd72b72ff6d /view
parent8c717f910acd0131bd4e0a31bbe47e6f03acffe9 (diff)
downloadvolse-hubzilla-e00be4de2353e1ca58570bf37fd247ff99fa549f.tar.gz
volse-hubzilla-e00be4de2353e1ca58570bf37fd247ff99fa549f.tar.bz2
volse-hubzilla-e00be4de2353e1ca58570bf37fd247ff99fa549f.zip
The Diaspora communications policies allow comments to public posts literally from anybody. Allow this policy model by default for commenters from that network. This policy decision can be set or disabled on the addon/features settings page.
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_settings.css14
-rwxr-xr-xview/tpl/settings_addons.tpl11
2 files changed, 24 insertions, 1 deletions
diff --git a/view/css/mod_settings.css b/view/css/mod_settings.css
index cd66684f8..5fb139074 100644
--- a/view/css/mod_settings.css
+++ b/view/css/mod_settings.css
@@ -64,3 +64,17 @@ ul#settings-privacy-macros {
clear: both;
margin-bottom: 15px;
}
+
+#dspr-pubcomment-label {
+ float: left;
+ width: 200px;
+ margin-bottom: 25px;
+}
+
+#dspr-pubcomment-checkbox {
+ float: left;
+}
+
+#settings-dspr-wrapper {
+ margin-top: 15px;
+}
diff --git a/view/tpl/settings_addons.tpl b/view/tpl/settings_addons.tpl
index f0d5195bf..a18f57658 100755
--- a/view/tpl/settings_addons.tpl
+++ b/view/tpl/settings_addons.tpl
@@ -1,10 +1,19 @@
<div class="generic-content-wrapper-styled">
<h1>{{$title}}</h1>
-
<form action="settings/featured" method="post" autocomplete="off">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+{{if $diaspora_enabled}}
+<div class="settings-block">
+<button class="btn btn-default" data-target="#settings-dspr-wrapper" data-toggle="collapse" type="button">{{$dsprtitle}}</button>
+<div id="settings-dspr-wrapper" class="collapse well">
+<div id="dspr-settings-wrapper">
+<label id="dspr-pubcomment-label" for="dspr-pubcomment-checkbox">{{$dsprhelp}}</label>
+<input id="dspr-pubcomment-checkbox" type="checkbox" name="dspr_pubcomment" value="1" ' . {{if $pubcomments}} checked="checked" {{/if}} />
+</div><div class="clear"></div>
+<div class="settings-submit-wrapper" ><input type="submit" name="dspr-submit" class="settings-submit" value="{{$dsprsubmit}}" /></div></div></div>
+{{/if}}
{{$settings_addons}}
</form>