mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Remove unneeded code
This commit is contained in:
@@ -211,9 +211,6 @@ class AdminPlugin extends Plugin
|
|||||||
$twig->twig_vars['base_url'] = $twig->twig_vars['base_url_relative'];
|
$twig->twig_vars['base_url'] = $twig->twig_vars['base_url_relative'];
|
||||||
$twig->twig_vars['admin'] = $this->admin;
|
$twig->twig_vars['admin'] = $this->admin;
|
||||||
|
|
||||||
// fake grav update
|
|
||||||
$twig->twig_vars['grav_update'] = array('current' => '0.9.1', 'available' => '0.9.1');
|
|
||||||
|
|
||||||
switch ($this->template) {
|
switch ($this->template) {
|
||||||
case 'dashboard':
|
case 'dashboard':
|
||||||
$twig->twig_vars['popularity'] = $this->popularity;
|
$twig->twig_vars['popularity'] = $this->popularity;
|
||||||
|
|||||||
@@ -73,13 +73,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grav-update" data-gpm-grav>
|
<div class="grav-update" data-gpm-grav>
|
||||||
{% if admin.gpm.grav.isUpdatable() %}
|
|
||||||
<p>
|
|
||||||
<i class="fa fa-bullhorn"></i>
|
|
||||||
Grav <b>v{{ admin.gpm.grav.getVersion() }}</b> is now available! <span class="less">(Current: v{{ constant('GRAV_VERSION') }})</span>
|
|
||||||
<button data-maintenance-update="{{ base_url_relative }}/update.json/task:update" class="button button-small secondary">Update Grav Now</button>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content-padding">
|
<div class="content-padding">
|
||||||
|
|||||||
Reference in New Issue
Block a user