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