mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-08 15:47:40 +01:00
If you want to implement some kind of replacement for the CSS calc I used, go ahead and do it yourself. I'm hoping webmasters can either deal with a tad bit of overlap or have a modern browser.
100 lines
3.9 KiB
Smarty
100 lines
3.9 KiB
Smarty
<div class="plugins">
|
|
<div class="col-lg-9">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><i class="fa fa-code-fork"></i> Installed Plugins</div>
|
|
<div class="panel-body">
|
|
<ul>
|
|
<!-- BEGIN plugins -->
|
|
<!-- IF plugins.installed -->
|
|
<!-- IF !plugins.error -->
|
|
<li data-plugin-id="{plugins.id}" data-version="{plugins.version}" class="clearfix">
|
|
<div class="pull-right">
|
|
<button data-action="toggleActive" class="btn <!-- IF plugins.active --> btn-warning<!-- ELSE --> btn-success<!-- ENDIF plugins.active -->"><i class="fa fa-power-off"></i> <!-- IF plugins.active -->Deactivate<!-- ELSE -->Activate<!-- ENDIF plugins.active --></button>
|
|
|
|
<button data-action="toggleInstall" data-installed="1" class="btn btn-danger"><i class="fa fa-trash-o"></i> Uninstall</button>
|
|
</div>
|
|
|
|
<h2><strong>{plugins.name}</strong></h2>
|
|
|
|
<!-- IF plugins.description -->
|
|
<p>{plugins.description}</p>
|
|
<!-- ENDIF plugins.description -->
|
|
<!-- IF plugins.outdated --><i class="fa fa-exclamation-triangle text-danger"></i> <!-- ENDIF plugins.outdated --><small>Installed <strong class="currentVersion">{plugins.version}</strong> | Latest <strong class="latestVersion">{plugins.latest}</strong></small>
|
|
<!-- IF plugins.outdated -->
|
|
<button data-action="upgrade" class="btn btn-success btn-xs"><i class="fa fa-download"></i> Upgrade</button>
|
|
<!-- ENDIF plugins.outdated -->
|
|
<!-- IF plugins.url -->
|
|
<p>For more information: <a href="{plugins.url}">{plugins.url}</a></p>
|
|
<!-- ENDIF plugins.url -->
|
|
</li>
|
|
<!-- ENDIF !plugins.error -->
|
|
<!-- IF plugins.error -->
|
|
<li data-plugin-id="{plugins.id}" class="clearfix">
|
|
<div class="pull-right">
|
|
<button class="btn btn-default disabled"><i class="fa fa-exclamation-triangle"></i> Unknown</button>
|
|
|
|
<button data-action="toggleInstall" data-installed="1" class="btn btn-danger"><i class="fa fa-trash-o"></i> Uninstall</button>
|
|
</div>
|
|
|
|
<h2><strong>{plugins.id}</strong></h2>
|
|
<p>
|
|
The state of this plugin could not be determined, possibly due to a misconfiguration error.
|
|
</p>
|
|
</li>
|
|
<!-- ENDIF plugins.error -->
|
|
<!-- ENDIF plugins.installed -->
|
|
<!-- END plugins -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><i class="fa fa-code-fork"></i> Download Plugins</div>
|
|
<div class="panel-body">
|
|
<ul>
|
|
<!-- BEGIN plugins -->
|
|
<!-- IF !plugins.installed -->
|
|
<li data-plugin-id="{plugins.id}" class="clearfix">
|
|
<div class="pull-right">
|
|
<button data-action="toggleActive" class="btn btn-success hidden"><i class="fa fa-power-off"></i> Activate</button>
|
|
<button data-action="toggleInstall" data-installed="0" class="btn btn-success"><i class="fa fa-download"></i> Install</button>
|
|
</div>
|
|
|
|
<h2><strong>{plugins.name}</strong></h2>
|
|
|
|
<!-- IF plugins.description -->
|
|
<p>{plugins.description}</p>
|
|
<!-- ENDIF plugins.description -->
|
|
|
|
<small>Latest <strong class="latestVersion">{plugins.latest}</strong></small>
|
|
|
|
<!-- IF plugins.url -->
|
|
<p>For more information: <a href="{plugins.url}">{plugins.url}</a></p>
|
|
<!-- ENDIF plugins.url -->
|
|
</li>
|
|
<!-- ENDIF !plugins.installed -->
|
|
<!-- END plugins -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-3 acp-sidebar">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Plugin Search</div>
|
|
<div class="panel-body">
|
|
<input class="form-control" type="text" id="plugin-search" placeholder="Search for plugin..."/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Interested in writing plugins for NodeBB?</div>
|
|
<div class="panel-body">
|
|
<p>
|
|
Full documentation regarding plugin authoring can be found in the <a target="_blank" href="https://docs.nodebb.org/en/latest/plugins/create.html">NodeBB Wiki</a>.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|