abfe0a472a
Added the view counter, it currently collects data without exposing it to the admin. Added an API for scheduling tasks which run once every second and once every fifteen minutes. Added a generated map containing all the routes with the function names as keys. Added the request counter to the generated router. Added more ARIA Labels and moved various bits and pieces into the CSS files for flexibility. Removed a bunch of redundant avatar checks in the templates. Improved the mobile friendliness of Cosora. Fixed various issues in the other themes. Refactored the file listener. Gosora now resyncs newly created theme files not just modified ones. Gosora now resyncs renamed theme files not just modified ones.
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack">
|
|
|
|
{{template "panel-menu.html" . }}
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>Plugins</h1></div>
|
|
</div>
|
|
<div id="panel_plugins" class="colstack_item complex_rowlist">
|
|
{{range .ItemList}}
|
|
<div class="rowitem editable_parent">
|
|
<a {{if .URL}}href="{{.URL}}" {{end}}class="editable_block" class="panel_upshift">{{.Name}}</a><br />
|
|
<small style="margin-left: 2px;">Author: {{.Author}}</small>
|
|
<span style="float: right;">
|
|
{{if .Settings}}<a href="/panel/settings/" class="panel_tag">Settings</a>{{end}}
|
|
{{if .Active}}<a href="/panel/plugins/deactivate/{{.UName}}?session={{$.CurrentUser.Session}}" class="panel_tag">Deactivate</a>
|
|
{{else if .Installable}}
|
|
{{/** TODO: Write a custom template interpreter to fix this nonsense **/}}
|
|
{{if .Installed}}<a href="/panel/plugins/activate/{{.UName}}?session={{$.CurrentUser.Session}}" class="panel_tag">Activate</a>{{else}}<a href="/panel/plugins/install/{{.UName}}?session={{$.CurrentUser.Session}}" class="panel_tag">Install</a>{{end}}
|
|
{{else}}<a href="/panel/plugins/activate/{{.UName}}?session={{$.CurrentUser.Session}}" class="panel_tag">Activate</a>{{end}}
|
|
</span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</main>
|
|
|
|
</div>
|
|
{{template "footer.html" . }}
|