Reorder App Settings page and improve descriptions

pull/307/head
Matt Baer 5 years ago
parent 1c5a0099b6
commit 0127e38ed0
  1. 82
      templates/user/admin/app-settings.tmpl

@ -42,7 +42,7 @@ p.docs {
<div class="features row"> <div class="features row">
<div> <div>
Host Host
<p>The address where your site lives.</p> <p>The public address where users will access your site, starting with <code>http://</code> or <code>https://</code>.</p>
</div> </div>
<div>{{.Config.Host}}</div> <div>{{.Config.Host}}</div>
</div> </div>
@ -56,50 +56,35 @@ p.docs {
<div class="features row"> <div class="features row">
<div{{if .Config.SingleUser}} class="invisible"{{end}}> <div{{if .Config.SingleUser}} class="invisible"{{end}}>
Landing Page Landing Page
<p>The page that logged-out visitors will see first. This should be a path, e.g. <code>/read</code></p> <p>The page that logged-out visitors will see first. This should be an absolute path like: <code>/read</code></p>
</div> </div>
<div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="text" name="landing" id="landing" class="inline" value="{{.Config.Landing}}" style="width: 14em;"/></div> <div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="text" name="landing" id="landing" class="inline" value="{{.Config.Landing}}" style="width: 14em;"/></div>
</div> </div>
<div class="features row"> <div class="features row">
<div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="open_registration"> <div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="open_registration">
Open Registrations Open Registrations
<p>Whether or not registration is open to anyone who visits the site.</p> <p>Allow anyone who visits the site to create an account.</p>
</label></div> </label></div>
<div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="checkbox" name="open_registration" id="open_registration" {{if .Config.OpenRegistration}}checked="checked"{{end}} /> <div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="checkbox" name="open_registration" id="open_registration" {{if .Config.OpenRegistration}}checked="checked"{{end}} />
</div> </div>
</div> </div>
<div class="features row"> <div class="features row">
<div><label for="min_username_len"> <div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="user_invites">
Minimum Username Length Allow invitations from...
<p>The minimum number of characters allowed in a username. (Recommended: 2 or more.)</p> <p>Choose who is allowed to invite new people.</p>
</label></div>
<div><input type="number" name="min_username_len" id="min_username_len" class="inline" min="1" max="100" value="{{.Config.MinUsernameLen}}"/></div>
</div>
<div class="features row">
<div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="max_blogs">
Maximum Blogs per User
<p>Keep things simple by setting this to <strong>1</strong>, unlimited by setting to <strong>0</strong>, or pick another amount.</p>
</label></div>
<div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="number" name="max_blogs" id="max_blogs" class="inline" min="0" value="{{.Config.MaxBlogs}}"/></div>
</div>
<div class="features row">
<div><label for="federation">
Federation
<p>Enable accounts on this site to propagate their posts via the ActivityPub protocol.</p>
</label></div> </label></div>
<div><input type="checkbox" name="federation" id="federation" {{if .Config.Federation}}checked="checked"{{end}} /></div> <div{{if .Config.SingleUser}} class="invisible"{{end}}>
<select name="user_invites" id="user_invites">
<option value="none" {{if eq .Config.UserInvites ""}}selected="selected"{{end}}>No one</option>
<option value="admin" {{if eq .Config.UserInvites "admin"}}selected="selected"{{end}}>Only Admins</option>
<option value="user" {{if eq .Config.UserInvites "user"}}selected="selected"{{end}}>All Users</option>
</select>
</div> </div>
<div class="features row">
<div><label for="public_stats">
Public Stats
<p>Publicly display the number of users and posts on your <strong>About</strong> page.</p>
</label></div>
<div><input type="checkbox" name="public_stats" id="public_stats" {{if .Config.PublicStats}}checked="checked"{{end}} /></div>
</div> </div>
<div class="features row"> <div class="features row">
<div><label for="private"> <div><label for="private">
Private Instance Private Instance
<p>Make this instance accessible only to those with an account.</p> <p>Limit site access to people with an account.</p>
</label></div> </label></div>
<div><input type="checkbox" name="private" id="private" {{if .Config.Private}}checked="checked"{{end}} /></div> <div><input type="checkbox" name="private" id="private" {{if .Config.Private}}checked="checked"{{end}} /></div>
</div> </div>
@ -110,19 +95,6 @@ p.docs {
</label></div> </label></div>
<div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="checkbox" name="local_timeline" id="local_timeline" {{if .Config.LocalTimeline}}checked="checked"{{end}} /></div> <div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="checkbox" name="local_timeline" id="local_timeline" {{if .Config.LocalTimeline}}checked="checked"{{end}} /></div>
</div> </div>
<div class="features row">
<div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="user_invites">
Allow invitations from...
<p>Choose who on this instance can invite new people.</p>
</label></div>
<div{{if .Config.SingleUser}} class="invisible"{{end}}>
<select name="user_invites" id="user_invites">
<option value="none" {{if eq .Config.UserInvites ""}}selected="selected"{{end}}>No one</option>
<option value="admin" {{if eq .Config.UserInvites "admin"}}selected="selected"{{end}}>Only Admins</option>
<option value="user" {{if eq .Config.UserInvites "user"}}selected="selected"{{end}}>All Users</option>
</select>
</div>
</div>
<div class="features row"> <div class="features row">
<div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="default_visibility"> <div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="default_visibility">
Default blog visibility Default blog visibility
@ -136,6 +108,34 @@ p.docs {
</select> </select>
</div> </div>
</div> </div>
<div class="features row">
<div{{if .Config.SingleUser}} class="invisible"{{end}}><label for="max_blogs">
Maximum Blogs per User
<p>Keep things simple by setting this to <strong>1</strong>, unlimited by setting to <strong>0</strong>, or pick another amount.</p>
</label></div>
<div{{if .Config.SingleUser}} class="invisible"{{end}}><input type="number" name="max_blogs" id="max_blogs" class="inline" min="0" value="{{.Config.MaxBlogs}}"/></div>
</div>
<div class="features row">
<div><label for="federation">
Federation
<p>Enable accounts on this site to propagate their posts via the ActivityPub protocol.</p>
</label></div>
<div><input type="checkbox" name="federation" id="federation" {{if .Config.Federation}}checked="checked"{{end}} /></div>
</div>
<div class="features row">
<div><label for="public_stats">
Public Stats
<p>Publicly display the number of users and posts on your <strong>About</strong> page.</p>
</label></div>
<div><input type="checkbox" name="public_stats" id="public_stats" {{if .Config.PublicStats}}checked="checked"{{end}} /></div>
</div>
<div class="features row">
<div><label for="min_username_len">
Minimum Username Length
<p>The minimum number of characters allowed in a username. (Recommended: 2 or more.)</p>
</label></div>
<div><input type="number" name="min_username_len" id="min_username_len" class="inline" min="1" max="100" value="{{.Config.MinUsernameLen}}"/></div>
</div>
<div class="features row"> <div class="features row">
<input type="submit" value="Save Settings" /> <input type="submit" value="Save Settings" />
</div> </div>

Loading…
Cancel
Save