Add the guest ones too...
Remove unneccesary indentation from a bunch of templates.
This commit is contained in:
parent
a1161e20f3
commit
d321c40290
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -1,18 +1,18 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_logs_administration_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_logs_administration_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||||
{{range .Logs}}
|
{{range .Logs}}
|
||||||
<div class="rowitem panel_compactrow">
|
<div class="rowitem panel_compactrow">
|
||||||
<span style="float: left;">
|
<span style="float: left;">
|
||||||
<span>{{.Action}}</span>
|
<span>{{.Action}}</span>
|
||||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||||
</span>
|
</span>
|
||||||
<span class="to_right">
|
<span class="to_right">
|
||||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||||
</span>
|
</span>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{template "paginator.html" . }}
|
{{template "paginator.html" . }}
|
|
@ -1,11 +1,11 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem">
|
<div class="rowitem">
|
||||||
<h1>{{.Agent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
<h1>{{.Agent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||||
{{template "panel_analytics_time_range.html" . }}
|
{{template "panel_analytics_time_range.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/referrer/{{.Agent}}" method="get"></form>
|
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/referrer/{{.Agent}}" method="get"></form>
|
||||||
<div id="panel_analytics_referrers" class="colstack_graph_holder">
|
<div id="panel_analytics_referrers" class="colstack_graph_holder">
|
||||||
<div class="ct_chart"></div>
|
<div class="ct_chart"></div>
|
||||||
</div>
|
</div>
|
||||||
{{template "panel_analytics_script.html" . }}
|
{{template "panel_analytics_script.html" . }}
|
|
@ -1,22 +1,22 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem">
|
<div class="rowitem">
|
||||||
<h1>{{.Route}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
<h1>{{.Route}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||||
{{template "panel_analytics_time_range.html" . }}
|
{{template "panel_analytics_time_range.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/route/{{.Route}}" method="get"></form>
|
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/route/{{.Route}}" method="get"></form>
|
||||||
<div id="panel_analytics_views" class="colstack_graph_holder">
|
<div id="panel_analytics_views" class="colstack_graph_holder">
|
||||||
<div class="ct_chart"></div>
|
<div class="ct_chart"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><a>{{lang "panel_statistics_details_head"}}</a></div>
|
<div class="rowitem"><a>{{lang "panel_statistics_details_head"}}</a></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_analytics_views_table" class="colstack_item rowlist" aria-label="{{lang "panel_statistics_route_views_table_aria"}}">
|
<div id="panel_analytics_views_table" class="colstack_item rowlist" aria-label="{{lang "panel_statistics_route_views_table_aria"}}">
|
||||||
{{range .ViewItems}}
|
{{range .ViewItems}}
|
||||||
<div class="rowitem panel_compactrow editable_parent">
|
<div class="rowitem panel_compactrow editable_parent">
|
||||||
<a class="panel_upshift unix_to_24_hour_time">{{.Time}}</a>
|
<a class="panel_upshift unix_to_24_hour_time">{{.Time}}</a>
|
||||||
<span class="panel_compacttext to_right">{{.Count}}{{lang "panel_statistics_views_suffix"}}</span>
|
<span class="panel_compacttext to_right">{{.Count}}{{lang "panel_statistics_views_suffix"}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{template "panel_analytics_script.html" . }}
|
{{template "panel_analytics_script.html" . }}
|
|
@ -1,11 +1,11 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem">
|
<div class="rowitem">
|
||||||
<h1>{{.FriendlyAgent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
<h1>{{.FriendlyAgent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||||
{{template "panel_analytics_time_range.html" . }}
|
{{template "panel_analytics_time_range.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/system/{{.Agent}}" method="get"></form>
|
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/system/{{.Agent}}" method="get"></form>
|
||||||
<div id="panel_analytics_systems" class="colstack_graph_holder">
|
<div id="panel_analytics_systems" class="colstack_graph_holder">
|
||||||
<div class="ct_chart"></div>
|
<div class="ct_chart"></div>
|
||||||
</div>
|
</div>
|
||||||
{{template "panel_analytics_script.html" . }}
|
{{template "panel_analytics_script.html" . }}
|
|
@ -1,15 +1,15 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_backups_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_backups_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_backups" class="colstack_item rowlist">
|
<div id="panel_backups" class="colstack_item rowlist">
|
||||||
{{range .Backups}}
|
{{range .Backups}}
|
||||||
<div class="rowitem panel_compactrow">
|
<div class="rowitem panel_compactrow">
|
||||||
<span>{{.SQLURL}}</span>
|
<span>{{.SQLURL}}</span>
|
||||||
<span class="panel_floater">
|
<span class="panel_floater">
|
||||||
<a href="/panel/backups/{{.SQLURL}}" class="panel_tag panel_right_button">{{lang "panel_backups_download"}}</a>
|
<a href="/panel/backups/{{.SQLURL}}" class="panel_tag panel_right_button">{{lang "panel_backups_download"}}</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="rowitem rowmsg">{{lang "panel_backups_no_backups"}}</div>
|
<div class="rowitem rowmsg">{{lang "panel_backups_no_backups"}}</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
|
@ -1,9 +1,10 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_dashboard_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_dashboard_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_dashboard" class="colstack_grid">
|
<div id="panel_dashboard" class="colstack_grid">
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<div id="{{.ID}}" class="grid_item {{.Class}}" title="{{.Note}}" style="{{if .TextColour}}color: {{.TextColour}};{{end}}
|
<div id="{{.ID}}" class="grid_item {{.Class}}" title="{{.Note}}" style="{{if .TextColour}}color: {{.TextColour}};{{end}}{{if .Background}}background-color: {{.Background}};{{end}}">
|
||||||
{{if .Background}}background-color: {{.Background}};{{end}}"><span>{{.Body}}</span></div>
|
<span>{{.Body}}</span>
|
||||||
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
|
@ -1,46 +1,46 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_debug_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_debug_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_debug" class="colstack_grid">
|
<div id="panel_debug" class="colstack_grid">
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_uptime_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_uptime_label"}}</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_go_version_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_go_version_label"}}</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_database_version_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_database_version_label"}}</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat"><span>{{.Uptime}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.Uptime}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.GoVersion}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.GoVersion}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.DBVersion}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.DBVersion}}</span></div>
|
||||||
|
|
||||||
|
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_open_database_connections_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_open_database_connections_label"}}</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_adapter_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_adapter_label"}}</span></div>
|
||||||
{{/** TODO: Use this for active database connections when Go 1.11 lands **/}}
|
{{/** TODO: Use this for active database connections when Go 1.11 lands **/}}
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>???</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>???</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat"><span>{{.OpenConns}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.OpenConns}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.DBAdapter}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.DBAdapter}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>?</span></div>
|
<div class="grid_item grid_stat"><span>?</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_goroutine_count_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_goroutine_count_label"}}</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_cpu_count_label"}}</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>{{lang "panel_debug_cpu_count_label"}}</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>HeapAlloc</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>HeapAlloc</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat"><span>{{.Goroutines}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.Goroutines}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.CPUs}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.CPUs}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.MemStats.HeapAlloc}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.MemStats.HeapAlloc}}</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>HeapSys</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>HeapSys</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>HeapIdle</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>HeapIdle</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>HeapObjects</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>HeapObjects</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat"><span>{{.MemStats.HeapSys}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.MemStats.HeapSys}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.MemStats.HeapIdle}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.MemStats.HeapIdle}}</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.MemStats.HeapObjects}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.MemStats.HeapObjects}}</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>???</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>???</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>???</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>???</span></div>
|
||||||
<div class="grid_item grid_stat grid_stat_head"><span>StackInuse</span></div>
|
<div class="grid_item grid_stat grid_stat_head"><span>StackInuse</span></div>
|
||||||
|
|
||||||
<div class="grid_item grid_stat"><span>?</span></div>
|
<div class="grid_item grid_stat"><span>?</span></div>
|
||||||
<div class="grid_item grid_stat"><span>?</span></div>
|
<div class="grid_item grid_stat"><span>?</span></div>
|
||||||
<div class="grid_item grid_stat"><span>{{.MemStats.StackInuse}}</span></div>
|
<div class="grid_item grid_stat"><span>{{.MemStats.StackInuse}}</span></div>
|
||||||
</div>
|
</div>
|
|
@ -1,18 +1,18 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_logs_moderation_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_logs_moderation_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||||
{{range .Logs}}
|
{{range .Logs}}
|
||||||
<div class="rowitem panel_compactrow">
|
<div class="rowitem panel_compactrow">
|
||||||
<span style="float: left;">
|
<span style="float: left;">
|
||||||
<span>{{.Action}}</span>
|
<span>{{.Action}}</span>
|
||||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||||
</span>
|
</span>
|
||||||
<span class="to_right">
|
<span class="to_right">
|
||||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||||
</span>
|
</span>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{template "paginator.html" . }}
|
{{template "paginator.html" . }}
|
|
@ -1,42 +1,42 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_pages_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_pages_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_pages" class="colstack_item rowlist">
|
<div id="panel_pages" class="colstack_item rowlist">
|
||||||
{{range .ItemList}}
|
{{range .ItemList}}
|
||||||
<div class="rowitem panel_compactrow">
|
<div class="rowitem panel_compactrow">
|
||||||
<a href="/panel/pages/edit/{{.ID}}" class="panel_upshift">{{.Title}}</a> <a href="/pages/{{.Name}}">[{{.Name}}]</a>
|
<a href="/panel/pages/edit/{{.ID}}" class="panel_upshift">{{.Title}}</a> <a href="/pages/{{.Name}}">[{{.Name}}]</a>
|
||||||
<span class="panel_buttons">
|
<span class="panel_buttons">
|
||||||
<a href="/panel/pages/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="{{lang "panel_pages_edit_button_aria"}}"></a>
|
<a href="/panel/pages/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="{{lang "panel_pages_edit_button_aria"}}"></a>
|
||||||
<a href="/panel/pages/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button delete_button" aria-label="{{lang "panel_pages_delete_button_aria"}}"></a>
|
<a href="/panel/pages/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button delete_button" aria-label="{{lang "panel_pages_delete_button_aria"}}"></a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="rowitem rowmsg">
|
<div class="rowitem rowmsg">
|
||||||
<a>{{lang "panel_pages_no_pages"}}</a>
|
<a>{{lang "panel_pages_no_pages"}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_pages_create_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_pages_create_head"}}</h1></div>
|
||||||
|
</div>
|
||||||
|
<div class="colstack_item the_form">
|
||||||
|
<form action="/panel/pages/create/submit/?session={{.CurrentUser.Session}}" method="post">
|
||||||
|
<div class="formrow">
|
||||||
|
<div class="formitem formlabel"><a>{{lang "panel_pages_create_name"}}</a></div>
|
||||||
|
<div class="formitem"><input name="name" type="text" placeholder="{{lang "panel_pages_create_name_placeholder"}}" /></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="colstack_item the_form">
|
<div class="formrow">
|
||||||
<form action="/panel/pages/create/submit/?session={{.CurrentUser.Session}}" method="post">
|
<div class="formitem formlabel"><a>{{lang "panel_pages_create_title"}}</a></div>
|
||||||
<div class="formrow">
|
<div class="formitem"><input name="title" type="text" placeholder="{{lang "panel_pages_create_title_placeholder"}}" /></div>
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_pages_create_name"}}</a></div>
|
</div>
|
||||||
<div class="formitem"><input name="name" type="text" placeholder="{{lang "panel_pages_create_name_placeholder"}}" /></div>
|
<div class="formrow">
|
||||||
</div>
|
<div class="formitem">
|
||||||
<div class="formrow">
|
<textarea name="body" placeholder="{{lang "panel_pages_create_body_placeholder"}}"></textarea>
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_pages_create_title"}}</a></div>
|
</div>
|
||||||
<div class="formitem"><input name="title" type="text" placeholder="{{lang "panel_pages_create_title_placeholder"}}" /></div>
|
</div>
|
||||||
</div>
|
<div class="formrow">
|
||||||
<div class="formrow">
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_pages_create_submit_button"}}</button></div>
|
||||||
<div class="formitem">
|
</div>
|
||||||
<textarea name="body" placeholder="{{lang "panel_pages_create_body_placeholder"}}"></textarea>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_pages_create_submit_button"}}</button></div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -1,18 +1,18 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_logs_registration_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_logs_registration_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||||
{{range .Logs}}
|
{{range .Logs}}
|
||||||
<div class="rowitem panel_compactrow{{if not .Success}} bg_red{{end}}">
|
<div class="rowitem panel_compactrow{{if not .Success}} bg_red{{end}}">
|
||||||
<span{{if not .Success}} class="panel_registration_attempt"{{end}} style="float: left;">
|
<span{{if not .Success}} class="panel_registration_attempt"{{end}} style="float: left;">
|
||||||
<span>{{if not .Success}}{{lang "panel_logs_registration_attempt"}}: {{end}}{{.Username}} ({{lang "panel_logs_registration_email"}}: {{.Email}}){{if .ParsedReason}} ({{lang "panel_logs_registration_reason"}}: {{.ParsedReason}}){{end}}</span>
|
<span>{{if not .Success}}{{lang "panel_logs_registration_attempt"}}: {{end}}{{.Username}} ({{lang "panel_logs_registration_email"}}: {{.Email}}){{if .ParsedReason}} ({{lang "panel_logs_registration_reason"}}: {{.ParsedReason}}){{end}}</span>
|
||||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||||
</span>
|
</span>
|
||||||
<span class="to_right">
|
<span class="to_right">
|
||||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||||
</span>
|
</span>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{template "paginator.html" . }}
|
{{template "paginator.html" . }}
|
|
@ -1,11 +1,11 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_settings_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_settings_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_settings" class="colstack_item rowlist bgavatars micro_grid">
|
<div id="panel_settings" class="colstack_item rowlist bgavatars micro_grid">
|
||||||
{{range .Something}}
|
{{range .Something}}
|
||||||
<div class="rowitem panel_compactrow editable_parent">
|
<div class="rowitem panel_compactrow editable_parent">
|
||||||
<a href="/panel/settings/edit/{{.Name}}" class="editable_block panel_upshift" title="{{.FriendlyName}}">{{.FriendlyName}}</a>
|
<a href="/panel/settings/edit/{{.Name}}" class="editable_block panel_upshift" title="{{.FriendlyName}}">{{.FriendlyName}}</a>
|
||||||
<a class="panel_compacttext to_right">{{.Content}}</a>
|
<a class="panel_compacttext to_right">{{.Content}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
|
@ -1,11 +1,11 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_themes_menus_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_themes_menus_head"}}</h1></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_menus" class="colstack_item rowlist">
|
<div id="panel_menus" class="colstack_item rowlist">
|
||||||
{{range .ItemList}}
|
{{range .ItemList}}
|
||||||
<div class="rowitem panel_compactrow editable_parent">
|
<div class="rowitem panel_compactrow editable_parent">
|
||||||
<a href="/panel/themes/menus/edit/{{.ID}}" class="editable_block panel_upshift">{{if .Name}}{{.Name}} - {{end}}#{{.ID}}</a>
|
<a href="/panel/themes/menus/edit/{{.ID}}" class="editable_block panel_upshift">{{if .Name}}{{.Name}} - {{end}}#{{.ID}}</a>
|
||||||
<a class="panel_compacttext to_right">{{.ItemCount}}{{lang "panel_themes_menus_items_suffix"}}</a>
|
<a class="panel_compacttext to_right">{{.ItemCount}}{{lang "panel_themes_menus_items_suffix"}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
|
@ -1,75 +1,75 @@
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem">
|
<div class="rowitem">
|
||||||
<h1>{{lang "panel_themes_menus_items_head"}}</h1>
|
<h1>{{lang "panel_themes_menus_items_head"}}</h1>
|
||||||
<h2 class="hguide">{{lang "panel_hints_reorder"}}</h2>
|
<h2 class="hguide">{{lang "panel_hints_reorder"}}</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="panel_menu_item_holder" class="colstack_item rowlist">
|
||||||
|
{{range .ItemList}}
|
||||||
|
<div class="panel_menu_item rowitem panel_compactrow editable_parent" data-miid="{{.ID}}">
|
||||||
|
<span class="grip"></span>
|
||||||
|
<a href="/panel/themes/menus/item/edit/{{.ID}}" class="editable_block panel_upshift">{{.Name}}</a>
|
||||||
|
<span class="panel_buttons">
|
||||||
|
<a href="/panel/themes/menus/item/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="{{lang "panel_themes_menus_items_edit_button_aria"}}"></a>
|
||||||
|
<a href="/panel/themes/menus/item/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button delete_button" aria-label="{{lang "panel_themes_menus_items_delete_button_aria"}}"></a>
|
||||||
|
</span>
|
||||||
|
</div>{{end}}
|
||||||
|
</div>
|
||||||
|
<div class="colstack_item rowlist panel_submitrow">
|
||||||
|
<div class="rowitem"><button id="panel_menu_items_order_button" class="formbutton">{{lang "panel_themes_menus_items_update_button"}}</button></div>
|
||||||
|
</div>
|
||||||
|
<div class="colstack_item colstack_head">
|
||||||
|
<div class="rowitem"><h1>{{lang "panel_themes_menus_create_head"}}</h1></div>
|
||||||
|
</div>
|
||||||
|
<form action="/panel/themes/menus/item/create/submit/?session={{.CurrentUser.Session}}" method="post">
|
||||||
|
<input name="mid" value="{{.MenuID}}" type="hidden" />
|
||||||
|
<div id="panel_themes_menu_item_create" class="colstack_item the_form">
|
||||||
|
{{/** TODO: Let an admin move a menu item from one menu to another? **/}}
|
||||||
|
<div class="formrow">
|
||||||
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_name"}}</a></div>
|
||||||
|
<div class="formitem"><input name="item-name" type="text" placeholder="{{lang "panel_themes_menus_name_placeholder"}}" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="formrow">
|
||||||
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_htmlid"}}</a></div>
|
||||||
|
<div class="formitem"><input name="item-htmlid" type="text" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="formrow">
|
||||||
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_cssclass"}}</a></div>
|
||||||
|
<div class="formitem"><input name="item-cssclass" type="text" /></div>
|
||||||
|
</div>
|
||||||
|
<div class="formrow">
|
||||||
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_position"}}</a></div>
|
||||||
|
<div class="formitem">
|
||||||
|
<select name="item-position">
|
||||||
|
<option selected value="left">left</option>
|
||||||
|
<option value="right">right</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_menu_item_holder" class="colstack_item rowlist">
|
<div class="formrow">
|
||||||
{{range .ItemList}}
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_path"}}</a></div>
|
||||||
<div class="panel_menu_item rowitem panel_compactrow editable_parent" data-miid="{{.ID}}">
|
<div class="formitem"><input name="item-path" type="text" value="/" /></div>
|
||||||
<span class="grip"></span>
|
|
||||||
<a href="/panel/themes/menus/item/edit/{{.ID}}" class="editable_block panel_upshift">{{.Name}}</a>
|
|
||||||
<span class="panel_buttons">
|
|
||||||
<a href="/panel/themes/menus/item/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="{{lang "panel_themes_menus_items_edit_button_aria"}}"></a>
|
|
||||||
<a href="/panel/themes/menus/item/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button delete_button" aria-label="{{lang "panel_themes_menus_items_delete_button_aria"}}"></a>
|
|
||||||
</span>
|
|
||||||
</div>{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="colstack_item rowlist panel_submitrow">
|
<div class="formrow">
|
||||||
<div class="rowitem"><button id="panel_menu_items_order_button" class="formbutton">{{lang "panel_themes_menus_items_update_button"}}</button></div>
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_aria"}}</a></div>
|
||||||
|
<div class="formitem"><input name="item-aria" type="text" placeholder="{{lang "panel_themes_menus_aria_placeholder"}}" /></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="colstack_item colstack_head">
|
<div class="formrow">
|
||||||
<div class="rowitem"><h1>{{lang "panel_themes_menus_create_head"}}</h1></div>
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tooltip"}}</a></div>
|
||||||
|
<div class="formitem"><input name="item-tooltip" type="text" placeholder="{{lang "panel_themes_menus_tooltip_placeholder"}}" /></div>
|
||||||
</div>
|
</div>
|
||||||
<form action="/panel/themes/menus/item/create/submit/?session={{.CurrentUser.Session}}" method="post">
|
<div class="formrow">
|
||||||
<input name="mid" value="{{.MenuID}}" type="hidden" />
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_permissions"}}</a></div>
|
||||||
<div id="panel_themes_menu_item_create" class="colstack_item the_form">
|
<div class="formitem"><select name="item-permissions">
|
||||||
{{/** TODO: Let an admin move a menu item from one menu to another? **/}}
|
<option selected value="everyone">{{lang "panel_themes_menus_everyone" }}</option>
|
||||||
<div class="formrow">
|
<option value="guest-only">{{lang "panel_themes_menus_guestonly"}}</option>
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_name"}}</a></div>
|
<option value="member-only">{{lang "panel_themes_menus_memberonly"}}</option>
|
||||||
<div class="formitem"><input name="item-name" type="text" placeholder="{{lang "panel_themes_menus_name_placeholder"}}" /></div>
|
<option value="supermod-only">{{lang "panel_themes_menus_supermodonly"}}</option>
|
||||||
</div>
|
<option value="admin-only">{{lang "panel_themes_menus_adminonly"}}</option>
|
||||||
<div class="formrow">
|
</select></div>
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_htmlid"}}</a></div>
|
|
||||||
<div class="formitem"><input name="item-htmlid" type="text" /></div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_cssclass"}}</a></div>
|
|
||||||
<div class="formitem"><input name="item-cssclass" type="text" /></div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_position"}}</a></div>
|
|
||||||
<div class="formitem">
|
|
||||||
<select name="item-position">
|
|
||||||
<option selected value="left">left</option>
|
|
||||||
<option value="right">right</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_path"}}</a></div>
|
|
||||||
<div class="formitem"><input name="item-path" type="text" value="/" /></div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_aria"}}</a></div>
|
|
||||||
<div class="formitem"><input name="item-aria" type="text" placeholder="{{lang "panel_themes_menus_aria_placeholder"}}" /></div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tooltip"}}</a></div>
|
|
||||||
<div class="formitem"><input name="item-tooltip" type="text" placeholder="{{lang "panel_themes_menus_tooltip_placeholder"}}" /></div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_permissions"}}</a></div>
|
|
||||||
<div class="formitem"><select name="item-permissions">
|
|
||||||
<option selected value="everyone">{{lang "panel_themes_menus_everyone" }}</option>
|
|
||||||
<option value="guest-only">{{lang "panel_themes_menus_guestonly"}}</option>
|
|
||||||
<option value="member-only">{{lang "panel_themes_menus_memberonly"}}</option>
|
|
||||||
<option value="supermod-only">{{lang "panel_themes_menus_supermodonly"}}</option>
|
|
||||||
<option value="admin-only">{{lang "panel_themes_menus_adminonly"}}</option>
|
|
||||||
</select></div>
|
|
||||||
</div>
|
|
||||||
<div class="formrow">
|
|
||||||
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_themes_menus_create_button"}}</button></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
<div class="formrow">
|
||||||
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_themes_menus_create_button"}}</button></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
|
@ -9,45 +9,45 @@ type Widget struct {
|
||||||
Literal bool
|
Literal bool
|
||||||
}
|
}
|
||||||
**/}}
|
**/}}
|
||||||
<div class="colstack_item colstack_head">
|
<div class="colstack_item colstack_head">
|
||||||
<div class="rowitem"><h1>{{lang "panel_themes_widgets_head"}}</h1></div>
|
<div class="rowitem"><h1>{{lang "panel_themes_widgets_head"}}</h1></div>
|
||||||
|
</div>
|
||||||
|
{{range $name, $dock := .Docks}}
|
||||||
|
<div class="colstack_item colstack_head colstack_sub_head">
|
||||||
|
<div class="rowitem"><h2>{{$name}}</h2></div>
|
||||||
|
</div>
|
||||||
|
<div id="panel_widgets_{{$name}}" class="colstack_item rowlist panel_widgets">
|
||||||
|
{{range $widget := $dock}}
|
||||||
|
<div id="widget_{{$widget.ID}}" class="rowitem panel_compactrow editable_parent widget_item {{if not .Enabled}}bg_red{{end}}">
|
||||||
|
<div class="widget_normal editable_block hide_on_block_edit">
|
||||||
|
<a href="/panel/themes/widgets/edit/{{$widget.ID}}" class="panel_upshift">{{$widget.Type}} <span class="widget_disabled">({{lang "panel_themes_widgets_disabled"}})</span></a>
|
||||||
|
<a class="panel_compacttext to_right">{{$widget.Location}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{range $name, $dock := .Docks}}
|
<div class="widget_edit show_on_block_edit">
|
||||||
<div class="colstack_item colstack_head colstack_sub_head">
|
<form action="/panel/themes/widgets/edit/submit/{{$widget.ID}}" method="post">
|
||||||
<div class="rowitem"><h2>{{$name}}</h2></div>
|
<input class="wside" name="wside" value="{{$name}}" type="hidden" />
|
||||||
|
{{template "panel_themes_widgets_widget.html" $widget }}
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_widgets_{{$name}}" class="colstack_item rowlist panel_widgets">
|
</div>
|
||||||
{{range $widget := $dock}}
|
{{end}}
|
||||||
<div id="widget_{{$widget.ID}}" class="rowitem panel_compactrow editable_parent widget_item {{if not .Enabled}}bg_red{{end}}">
|
<div class="rowitem panel_compactrow editable_parent widget_new">
|
||||||
<div class="widget_normal editable_block hide_on_block_edit">
|
<a href="#" data-dock="{{$name}}" class="editable_block panel_upshift">{{lang "panel_themes_widgets_new"}}</a>
|
||||||
<a href="/panel/themes/widgets/edit/{{$widget.ID}}" class="panel_upshift">{{$widget.Type}} <span class="widget_disabled">({{lang "panel_themes_widgets_disabled"}})</span></a>
|
</div>
|
||||||
<a class="panel_compacttext to_right">{{$widget.Location}}</a>
|
</div>
|
||||||
</div>
|
{{end}}
|
||||||
<div class="widget_edit show_on_block_edit">
|
<div id="widgetTmpl">
|
||||||
<form action="/panel/themes/widgets/edit/submit/{{$widget.ID}}" method="post">
|
<div class="rowitem panel_compactrow editable_parent widget_item blank_widget bg_red">
|
||||||
<input class="wside" name="wside" value="{{$name}}" type="hidden" />
|
<div class="widget_normal editable_block hide_on_block_edit">
|
||||||
{{template "panel_themes_widgets_widget.html" $widget }}
|
<a href="#" class="panel_upshift">{{.BlankWidget.Type}} <span class="widget_disabled">({{lang "panel_themes_widgets_disabled"}})</span></a>
|
||||||
</form>
|
<a class="panel_compacttext to_right">{{.BlankWidget.Location}}</a>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
<div class="rowitem panel_compactrow editable_parent widget_new">
|
|
||||||
<a href="#" data-dock="{{$name}}" class="editable_block panel_upshift">{{lang "panel_themes_widgets_new"}}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
<div class="widget_edit show_on_block_edit">
|
||||||
<div id="widgetTmpl">
|
<form action="/panel/themes/widgets/create/submit/" method="post">
|
||||||
<div class="rowitem panel_compactrow editable_parent widget_item blank_widget bg_red">
|
<input name="session" value="{{.CurrentUser.Session}}" type="hidden" />
|
||||||
<div class="widget_normal editable_block hide_on_block_edit">
|
<input class="wside" name="wside" value="" type="hidden" />
|
||||||
<a href="#" class="panel_upshift">{{.BlankWidget.Type}} <span class="widget_disabled">({{lang "panel_themes_widgets_disabled"}})</span></a>
|
{{template "panel_themes_widgets_widget.html" .BlankWidget }}
|
||||||
<a class="panel_compacttext to_right">{{.BlankWidget.Location}}</a>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="widget_edit show_on_block_edit">
|
</div>
|
||||||
<form action="/panel/themes/widgets/create/submit/" method="post">
|
</div>
|
||||||
<input name="session" value="{{.CurrentUser.Session}}" type="hidden" />
|
|
||||||
<input class="wside" name="wside" value="" type="hidden" />
|
|
||||||
{{template "panel_themes_widgets_widget.html" .BlankWidget }}
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
Loading…
Reference in New Issue