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="rowitem"><h1>{{lang "panel_logs_administration_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span style="float: left;">
|
||||
<span>{{.Action}}</span>
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_logs_administration_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span style="float: left;">
|
||||
<span>{{.Action}}</span>
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
|
@ -1,11 +1,11 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{.Agent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||
{{template "panel_analytics_time_range.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/referrer/{{.Agent}}" method="get"></form>
|
||||
<div id="panel_analytics_referrers" class="colstack_graph_holder">
|
||||
<div class="ct_chart"></div>
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{.Agent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||
{{template "panel_analytics_time_range.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/referrer/{{.Agent}}" method="get"></form>
|
||||
<div id="panel_analytics_referrers" class="colstack_graph_holder">
|
||||
<div class="ct_chart"></div>
|
||||
</div>
|
||||
{{template "panel_analytics_script.html" . }}
|
|
@ -1,22 +1,22 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{.Route}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||
{{template "panel_analytics_time_range.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/route/{{.Route}}" method="get"></form>
|
||||
<div id="panel_analytics_views" class="colstack_graph_holder">
|
||||
<div class="ct_chart"></div>
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><a>{{lang "panel_statistics_details_head"}}</a></div>
|
||||
</div>
|
||||
<div id="panel_analytics_views_table" class="colstack_item rowlist" aria-label="{{lang "panel_statistics_route_views_table_aria"}}">
|
||||
{{range .ViewItems}}
|
||||
<div class="rowitem panel_compactrow editable_parent">
|
||||
<a class="panel_upshift unix_to_24_hour_time">{{.Time}}</a>
|
||||
<span class="panel_compacttext to_right">{{.Count}}{{lang "panel_statistics_views_suffix"}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{.Route}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||
{{template "panel_analytics_time_range.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/route/{{.Route}}" method="get"></form>
|
||||
<div id="panel_analytics_views" class="colstack_graph_holder">
|
||||
<div class="ct_chart"></div>
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><a>{{lang "panel_statistics_details_head"}}</a></div>
|
||||
</div>
|
||||
<div id="panel_analytics_views_table" class="colstack_item rowlist" aria-label="{{lang "panel_statistics_route_views_table_aria"}}">
|
||||
{{range .ViewItems}}
|
||||
<div class="rowitem panel_compactrow editable_parent">
|
||||
<a class="panel_upshift unix_to_24_hour_time">{{.Time}}</a>
|
||||
<span class="panel_compacttext to_right">{{.Count}}{{lang "panel_statistics_views_suffix"}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "panel_analytics_script.html" . }}
|
|
@ -1,11 +1,11 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{.FriendlyAgent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||
{{template "panel_analytics_time_range.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/system/{{.Agent}}" method="get"></form>
|
||||
<div id="panel_analytics_systems" class="colstack_graph_holder">
|
||||
<div class="ct_chart"></div>
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{.FriendlyAgent}}{{lang "panel_statistics_views_head_suffix"}}</h1>
|
||||
{{template "panel_analytics_time_range.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<form id="timeRangeForm" name="timeRangeForm" action="/panel/analytics/system/{{.Agent}}" method="get"></form>
|
||||
<div id="panel_analytics_systems" class="colstack_graph_holder">
|
||||
<div class="ct_chart"></div>
|
||||
</div>
|
||||
{{template "panel_analytics_script.html" . }}
|
|
@ -1,15 +1,15 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_backups_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_backups" class="colstack_item rowlist">
|
||||
{{range .Backups}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span>{{.SQLURL}}</span>
|
||||
<span class="panel_floater">
|
||||
<a href="/panel/backups/{{.SQLURL}}" class="panel_tag panel_right_button">{{lang "panel_backups_download"}}</a>
|
||||
</span>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="rowitem rowmsg">{{lang "panel_backups_no_backups"}}</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_backups_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_backups" class="colstack_item rowlist">
|
||||
{{range .Backups}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span>{{.SQLURL}}</span>
|
||||
<span class="panel_floater">
|
||||
<a href="/panel/backups/{{.SQLURL}}" class="panel_tag panel_right_button">{{lang "panel_backups_download"}}</a>
|
||||
</span>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="rowitem rowmsg">{{lang "panel_backups_no_backups"}}</div>
|
||||
{{end}}
|
||||
</div>
|
|
@ -1,9 +1,10 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_dashboard_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_dashboard" class="colstack_grid">
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_dashboard_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_dashboard" class="colstack_grid">
|
||||
{{range .}}
|
||||
<div id="{{.ID}}" class="grid_item {{.Class}}" title="{{.Note}}" style="{{if .TextColour}}color: {{.TextColour}};{{end}}
|
||||
{{if .Background}}background-color: {{.Background}};{{end}}"><span>{{.Body}}</span></div>
|
||||
<div id="{{.ID}}" class="grid_item {{.Class}}" title="{{.Note}}" style="{{if .TextColour}}color: {{.TextColour}};{{end}}{{if .Background}}background-color: {{.Background}};{{end}}">
|
||||
<span>{{.Body}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
|
@ -1,46 +1,46 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_debug_head"}}</h1></div>
|
||||
</div>
|
||||
<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_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="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_debug_head"}}</h1></div>
|
||||
</div>
|
||||
<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_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"><span>{{.Uptime}}</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>{{.Uptime}}</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 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>
|
||||
{{/** 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>{{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>
|
||||
{{/** 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"><span>{{.OpenConns}}</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>{{.OpenConns}}</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 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>HeapAlloc</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>HeapAlloc</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>{{.MemStats.HeapAlloc}}</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>{{.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>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>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>HeapObjects</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.HeapObjects}}</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.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>StackInuse</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"><span>?</span></div>
|
||||
<div class="grid_item grid_stat"><span>?</span></div>
|
||||
<div class="grid_item grid_stat"><span>{{.MemStats.StackInuse}}</span></div>
|
||||
</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>
|
|
@ -1,18 +1,18 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_logs_moderation_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span style="float: left;">
|
||||
<span>{{.Action}}</span>
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_logs_moderation_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span style="float: left;">
|
||||
<span>{{.Action}}</span>
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small style="margin-left: 2px;font-size: 12px;" title="{{.IPAddress}}">{{.IPAddress}}</small>{{end}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
|
@ -1,42 +1,42 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_pages_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_pages" class="colstack_item rowlist">
|
||||
{{range .ItemList}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<a href="/panel/pages/edit/{{.ID}}" class="panel_upshift">{{.Title}}</a> <a href="/pages/{{.Name}}">[{{.Name}}]</a>
|
||||
<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/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button delete_button" aria-label="{{lang "panel_pages_delete_button_aria"}}"></a>
|
||||
</span>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="rowitem rowmsg">
|
||||
<a>{{lang "panel_pages_no_pages"}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_pages_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_pages" class="colstack_item rowlist">
|
||||
{{range .ItemList}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<a href="/panel/pages/edit/{{.ID}}" class="panel_upshift">{{.Title}}</a> <a href="/pages/{{.Name}}">[{{.Name}}]</a>
|
||||
<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/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button delete_button" aria-label="{{lang "panel_pages_delete_button_aria"}}"></a>
|
||||
</span>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="rowitem rowmsg">
|
||||
<a>{{lang "panel_pages_no_pages"}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_pages_create_head"}}</h1></div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<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 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 class="formrow">
|
||||
<div class="formitem formlabel"><a>{{lang "panel_pages_create_title"}}</a></div>
|
||||
<div class="formitem"><input name="title" type="text" placeholder="{{lang "panel_pages_create_title_placeholder"}}" /></div>
|
||||
</div>
|
||||
<div class="formrow">
|
||||
<div class="formitem">
|
||||
<textarea name="body" placeholder="{{lang "panel_pages_create_body_placeholder"}}"></textarea>
|
||||
</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>
|
||||
<div class="formrow">
|
||||
<div class="formitem formlabel"><a>{{lang "panel_pages_create_title"}}</a></div>
|
||||
<div class="formitem"><input name="title" type="text" placeholder="{{lang "panel_pages_create_title_placeholder"}}" /></div>
|
||||
</div>
|
||||
<div class="formrow">
|
||||
<div class="formitem">
|
||||
<textarea name="body" placeholder="{{lang "panel_pages_create_body_placeholder"}}"></textarea>
|
||||
</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="rowitem"><h1>{{lang "panel_logs_registration_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<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}}{{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}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_logs_registration_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<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}}{{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}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span style="font-size: 14px;" title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
|
@ -1,11 +1,11 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_settings_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_settings" class="colstack_item rowlist bgavatars micro_grid">
|
||||
{{range .Something}}
|
||||
<div class="rowitem panel_compactrow editable_parent">
|
||||
<a href="/panel/settings/edit/{{.Name}}" class="editable_block panel_upshift" title="{{.FriendlyName}}">{{.FriendlyName}}</a>
|
||||
<a class="panel_compacttext to_right">{{.Content}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_settings_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_settings" class="colstack_item rowlist bgavatars micro_grid">
|
||||
{{range .Something}}
|
||||
<div class="rowitem panel_compactrow editable_parent">
|
||||
<a href="/panel/settings/edit/{{.Name}}" class="editable_block panel_upshift" title="{{.FriendlyName}}">{{.FriendlyName}}</a>
|
||||
<a class="panel_compacttext to_right">{{.Content}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
|
@ -1,11 +1,11 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_themes_menus_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_menus" class="colstack_item rowlist">
|
||||
{{range .ItemList}}
|
||||
<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 class="panel_compacttext to_right">{{.ItemCount}}{{lang "panel_themes_menus_items_suffix"}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_themes_menus_head"}}</h1></div>
|
||||
</div>
|
||||
<div id="panel_menus" class="colstack_item rowlist">
|
||||
{{range .ItemList}}
|
||||
<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 class="panel_compacttext to_right">{{.ItemCount}}{{lang "panel_themes_menus_items_suffix"}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
|
@ -1,75 +1,75 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{lang "panel_themes_menus_items_head"}}</h1>
|
||||
<h2 class="hguide">{{lang "panel_hints_reorder"}}</h2>
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem">
|
||||
<h1>{{lang "panel_themes_menus_items_head"}}</h1>
|
||||
<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 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 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="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 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="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_themes_menus_create_head"}}</h1></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>
|
||||
<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 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 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>
|
||||
</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
|
||||
}
|
||||
**/}}
|
||||
<div class="colstack_item colstack_head">
|
||||
<div class="rowitem"><h1>{{lang "panel_themes_widgets_head"}}</h1></div>
|
||||
<div class="colstack_item colstack_head">
|
||||
<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>
|
||||
{{range $name, $dock := .Docks}}
|
||||
<div class="colstack_item colstack_head colstack_sub_head">
|
||||
<div class="rowitem"><h2>{{$name}}</h2></div>
|
||||
<div class="widget_edit show_on_block_edit">
|
||||
<form action="/panel/themes/widgets/edit/submit/{{$widget.ID}}" method="post">
|
||||
<input class="wside" name="wside" value="{{$name}}" type="hidden" />
|
||||
{{template "panel_themes_widgets_widget.html" $widget }}
|
||||
</form>
|
||||
</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 class="widget_edit show_on_block_edit">
|
||||
<form action="/panel/themes/widgets/edit/submit/{{$widget.ID}}" method="post">
|
||||
<input class="wside" name="wside" value="{{$name}}" type="hidden" />
|
||||
{{template "panel_themes_widgets_widget.html" $widget }}
|
||||
</form>
|
||||
</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>
|
||||
{{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>
|
||||
{{end}}
|
||||
<div id="widgetTmpl">
|
||||
<div class="rowitem panel_compactrow editable_parent widget_item blank_widget bg_red">
|
||||
<div class="widget_normal editable_block hide_on_block_edit">
|
||||
<a href="#" class="panel_upshift">{{.BlankWidget.Type}} <span class="widget_disabled">({{lang "panel_themes_widgets_disabled"}})</span></a>
|
||||
<a class="panel_compacttext to_right">{{.BlankWidget.Location}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
<div id="widgetTmpl">
|
||||
<div class="rowitem panel_compactrow editable_parent widget_item blank_widget bg_red">
|
||||
<div class="widget_normal editable_block hide_on_block_edit">
|
||||
<a href="#" class="panel_upshift">{{.BlankWidget.Type}} <span class="widget_disabled">({{lang "panel_themes_widgets_disabled"}})</span></a>
|
||||
<a class="panel_compacttext to_right">{{.BlankWidget.Location}}</a>
|
||||
</div>
|
||||
<div class="widget_edit show_on_block_edit">
|
||||
<form action="/panel/themes/widgets/create/submit/" method="post">
|
||||
<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>
|
||||
<div class="widget_edit show_on_block_edit">
|
||||
<form action="/panel/themes/widgets/create/submit/" method="post">
|
||||
<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