github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_plugins.html (about)

     1  <div class="colstack_item colstack_head">
     2  	<div class="rowitem"><h1>{{lang "panel_plugins_head"}}</h1></div>
     3  </div>
     4  <div id="panel_plugins"class="colstack_item complex_rowlist">
     5  	{{range .ItemList}}
     6  	<div class="rowitem editable_parent">
     7  		<span class="panel_plugin_meta">
     8  			<a{{if .URL}} href="{{.URL}}"{{end}}class="editable_block"class="panel_upshift">{{.Name}}</a><br>
     9  			<small style="margin-left:2px;">{{lang "panel_plugins_author_prefix"}}{{.Author}}</small>
    10  		</span>
    11  		<span class="to_right">
    12  			{{if .Settings}}<a href="/panel/settings/"class="panel_tag panel_plugin_settings panel_right_button">{{lang "panel_plugins_settings"}}</a>{{end}}
    13  			{{if .Active}}<a href="/panel/plugins/deactivate/{{.UName}}?s={{$.CurrentUser.Session}}"class="panel_tag panel_plugin_deactivate panel_right_button">{{lang "panel_plugins_deactivate"}}</a>
    14  			{{else if .Installable}}
    15  				{{/** TODO: Write a custom template interpreter to fix this nonsense **/}}
    16  				{{if .Installed}}<a href="/panel/plugins/activate/{{.UName}}?s={{$.CurrentUser.Session}}"class="panel_tag panel_plugin_activate panel_right_button">{{lang "panel_plugins_activate"}}</a>{{else}}<a href="/panel/plugins/install/{{.UName}}?s={{$.CurrentUser.Session}}"class="panel_tag panel_plugin_install panel_right_button">{{lang "panel_plugins_install"}}</a>{{end}}
    17  			{{else}}<a href="/panel/plugins/activate/{{.UName}}?s={{$.CurrentUser.Session}}"class="panel_tag panel_plugin_activate panel_right_button">{{lang "panel_plugins_activate"}}</a>{{end}}
    18  		</span>
    19  	</div>
    20  	{{end}}
    21  </div>