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,7 +1,7 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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">
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span style="float: left;">
|
||||
|
@ -14,5 +14,5 @@
|
|||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
|
@ -1,11 +1,11 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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>
|
||||
<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>
|
||||
{{template "panel_analytics_script.html" . }}
|
|
@ -1,22 +1,22 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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>
|
||||
<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>
|
||||
<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"}}">
|
||||
</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>
|
||||
{{template "panel_analytics_script.html" . }}
|
|
@ -1,11 +1,11 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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>
|
||||
<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>
|
||||
{{template "panel_analytics_script.html" . }}
|
|
@ -1,7 +1,7 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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">
|
||||
</div>
|
||||
<div id="panel_backups" class="colstack_item rowlist">
|
||||
{{range .Backups}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span>{{.SQLURL}}</span>
|
||||
|
@ -12,4 +12,4 @@
|
|||
{{else}}
|
||||
<div class="rowitem rowmsg">{{lang "panel_backups_no_backups"}}</div>
|
||||
{{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>
|
||||
<div id="panel_dashboard" class="colstack_grid">
|
||||
</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>
|
||||
{{end}}
|
||||
<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>
|
|
@ -1,7 +1,7 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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>
|
||||
<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>
|
||||
|
@ -43,4 +43,4 @@
|
|||
<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>
|
|
@ -1,7 +1,7 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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">
|
||||
</div>
|
||||
<div id="panel_modlogs" class="colstack_item rowlist">
|
||||
{{range .Logs}}
|
||||
<div class="rowitem panel_compactrow">
|
||||
<span style="float: left;">
|
||||
|
@ -14,5 +14,5 @@
|
|||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
|
@ -1,7 +1,7 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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">
|
||||
</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>
|
||||
|
@ -15,12 +15,12 @@
|
|||
<a>{{lang "panel_pages_no_pages"}}</a>
|
||||
</div>
|
||||
{{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>
|
||||
<div class="colstack_item the_form">
|
||||
</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>
|
||||
|
@ -39,4 +39,4 @@
|
|||
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_pages_create_submit_button"}}</button></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
|
@ -1,7 +1,7 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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">
|
||||
</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;">
|
||||
|
@ -14,5 +14,5 @@
|
|||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "paginator.html" . }}
|
||||
</div>
|
||||
{{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>
|
||||
<div id="panel_settings" class="colstack_item rowlist bgavatars micro_grid">
|
||||
</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>
|
|
@ -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>
|
||||
<div id="panel_menus" class="colstack_item rowlist">
|
||||
</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>
|
|
@ -1,10 +1,10 @@
|
|||
<div class="colstack_item colstack_head">
|
||||
<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">
|
||||
</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>
|
||||
|
@ -14,14 +14,14 @@
|
|||
<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>
|
||||
<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>
|
||||
<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">
|
||||
</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? **/}}
|
||||
|
@ -72,4 +72,4 @@
|
|||
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_themes_menus_create_button"}}</button></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
|
@ -9,14 +9,14 @@ type Widget struct {
|
|||
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>
|
||||
{{range $name, $dock := .Docks}}
|
||||
<div class="colstack_item colstack_head colstack_sub_head">
|
||||
</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">
|
||||
</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">
|
||||
|
@ -34,9 +34,9 @@ type Widget struct {
|
|||
<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>
|
||||
{{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>
|
||||
|
@ -50,4 +50,4 @@ type Widget struct {
|
|||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue