details.phtml 1.2 KB

12345678910111213141516171819202122
  1. <?php /** @var FreshRSS_View $this */ ?>
  2. <ul class="horizontal-list">
  3. <li class="item">
  4. <?php if ($this->ext_details->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) { ?>
  5. <?php $name_encoded = urlencode($this->ext_details->getName()); ?>
  6. <div class="stick">
  7. <a class="btn open-slider" href="<?= _url('extension', 'configure', 'e', $name_encoded) ?>"><?= _i('configure') ?> <?= _t('gen.action.manage') ?></a>
  8. <?php if ($this->ext_details->isEnabled()) { ?>
  9. <button class="btn active" form="form-extension" formaction="<?= _url('extension', 'disable', 'e', $name_encoded) ?>"><?= _t('gen.action.disable') ?></button>
  10. <?php } else { ?>
  11. <button class="btn" form="form-extension" formaction="<?= _url('extension', 'enable', 'e', $name_encoded) ?>"><?= _t('gen.action.enable') ?></button>
  12. <?php } ?>
  13. <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
  14. <button class="btn btn-attention confirm" form="form-extension" formaction="<?= _url('extension', 'remove', 'e', $name_encoded) ?>"><?= _t('gen.action.remove') ?></button>
  15. <?php } ?>
  16. </div>
  17. <?php } else { ?>
  18. <?= _t('admin.extensions.system.no_rights') ?>
  19. <?php } ?>
  20. </li>
  21. <li class="item"><?= $this->ext_details->getName() ?></li>
  22. </ul>