aboutsummaryrefslogtreecommitdiff
path: root/app/views/extension/index.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-17 20:28:04 +0100
committerGravatar GitHub <noreply@github.com> 2017-12-17 20:28:04 +0100
commit60f56539c3f30fd3f7ba4f2a3570f7029ac93e5f (patch)
tree1e78bfac7042dceb63898e2215db8fb0c1d7745d /app/views/extension/index.phtml
parentceda55c75b158fc1cf4813fe0f258527754b9289 (diff)
parent0b1516af91792f86868689392f72ad4b6e32cdcf (diff)
Merge pull request #1720 from FreshRSS/dev
FreshRSS 1.9.0
Diffstat (limited to 'app/views/extension/index.phtml')
-rw-r--r--app/views/extension/index.phtml37
1 files changed, 35 insertions, 2 deletions
diff --git a/app/views/extension/index.phtml b/app/views/extension/index.phtml
index 7cb16bfff..6439a0333 100644
--- a/app/views/extension/index.phtml
+++ b/app/views/extension/index.phtml
@@ -26,13 +26,46 @@
}
?>
<?php
- }
+ }
- if (empty($this->extension_list['system']) && empty($this->extension_list['user'])) {
+ if (empty($this->extension_list['system']) && empty($this->extension_list['user'])) {
?>
<p class="alert alert-warn"><?php echo _t('admin.extensions.empty_list'); ?></p>
<?php } ?>
</form>
+
+ <?php if (!empty($this->available_extensions)) { ?>
+ <h2><?php echo _t('admin.extensions.community'); ?></h2>
+ <table>
+ <tr>
+ <th><?php echo _t('admin.extensions.name'); ?></th>
+ <th><?php echo _t('admin.extensions.version'); ?></th>
+ <th><?php echo _t('admin.extensions.author'); ?></th>
+ <th><?php echo _t('admin.extensions.description'); ?></th>
+ </tr>
+ <?php foreach ($this->available_extensions as $ext) { ?>
+ <tr>
+ <td><a href="<?php echo $ext['url']; ?>" target="_blank"><?php echo $ext['name']; ?></a></td>
+ <td><?php echo $ext['version']; ?></td>
+ <td><?php echo $ext['author']; ?></td>
+ <td>
+ <?php echo $ext['description']; ?>
+ <?php if (isset($this->extensions_installed[$ext['name']])) { ?>
+ <?php if (version_compare($this->extensions_installed[$ext['name']], $ext['version']) >= 0) { ?>
+ <span class="alert alert-success">
+ <?php echo _t('admin.extensions.latest'); ?>
+ </span>
+ <?php } else if ($this->extensions_installed[$ext['name']] != $ext['version']) { ?>
+ <span class="alert alert-warn">
+ <?php echo _t('admin.extensions.update'); ?>
+ </span>
+ <?php } ?>
+ <?php } ?>
+ </td>
+ </tr>
+ <?php } ?>
+ </table>
+ <?php } ?>
</div>
<?php $class = isset($this->extension) ? ' class="active"' : ''; ?>