aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-07 17:31:53 -0700
committerzotlabs <mike@macgirvin.com>2018-05-07 17:31:53 -0700
commitaab16123b5188e69b31893263f7074f9e9c7f210 (patch)
tree846c57ffb6c1d421a6c8147df4ee650f4eb4db84 /view
parent1f8b4b14a465193ba0dd061dd55a170e63aeb9ea (diff)
downloadvolse-hubzilla-aab16123b5188e69b31893263f7074f9e9c7f210.tar.gz
volse-hubzilla-aab16123b5188e69b31893263f7074f9e9c7f210.tar.bz2
volse-hubzilla-aab16123b5188e69b31893263f7074f9e9c7f210.zip
Simplify first channel creation even further by using a site-configurable default permissions role and removing one more conceptual roadblock for first time registrants. This default role only applies to the first channel an account creates and can be changed from the settings page once they've started to explore. This functionality was always present but optional and not well exposed. Now it is part of the standard workflow and exposed in the admin settings.
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/admin_site.tpl1
-rwxr-xr-xview/tpl/new_channel.tpl2
2 files changed, 3 insertions, 0 deletions
diff --git a/view/tpl/admin_site.tpl b/view/tpl/admin_site.tpl
index 7e99b2c86..ed85bd6b2 100755
--- a/view/tpl/admin_site.tpl
+++ b/view/tpl/admin_site.tpl
@@ -68,6 +68,7 @@
<h3>{{$registration}}</h3>
{{include file="field_input.tpl" field=$register_text}}
+ {{include file="field_select_grouped.tpl" field=$role}}
{{include file="field_select.tpl" field=$register_policy}}
{{include file="field_checkbox.tpl" field=$invite_only}}
{{include file="field_input.tpl" field=$minimum_age}}
diff --git a/view/tpl/new_channel.tpl b/view/tpl/new_channel.tpl
index f415e4e2c..a89208228 100755
--- a/view/tpl/new_channel.tpl
+++ b/view/tpl/new_channel.tpl
@@ -3,6 +3,7 @@
<h2>{{$title}}</h2>
</div>
<div class="section-content-wrapper">
+ {{if ! $default_role}}
<div class="section-content-info-wrapper">
{{$desc}}
</div>
@@ -11,6 +12,7 @@
{{$channel_usage_message}}
</div>
{{/if}}
+ {{/if}}
<form action="new_channel" method="post" id="newchannel-form">
{{if $default_role}}
<input type="hidden" name="permissions_role" value="{{$default_role}}" />