-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Plugins with load error should not show install button
- Loading branch information
1 parent
c9c6643
commit b9d4c2d
Showing
3 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
|
||
<div class='col-lg-12'> | ||
<div class='pagetitle h3'><?php eT('Plugin manager'); ?></div> | ||
<?php foreach($result as $scannedPlugin): ?> | ||
<div class='col-sm-12'> | ||
<label class='control-label'> | ||
<?php echo $scannedPlugin['pluginName']; ?> | ||
<?php foreach($result as $name => $scannedPlugin): ?> | ||
<div class='form-group col-lg-12'> | ||
<label class='control-label col-sm-4'> | ||
<?php echo $name; ?> | ||
</label> | ||
<a href='' class='btn btn-success'>Install</a> | ||
<?php if ($scannedPlugin['load_error'] == 0): ?> | ||
<a href='' class='btn btn-success' data-toggle='tooltip' title='<?php eT('Install this plugin'); ?>'> | ||
<i class='fa fa-download'></i> | ||
<?php eT('Install'); ?> | ||
</a> | ||
<?php else: ?> | ||
<i class='fa fa-exclamation-triangle text-warning'></i> | ||
<span href='' class='text-warning'><?php eT('Load error. Please contact the plugin author.'); ?></span> | ||
<?php endif; ?> | ||
</div> | ||
<?php endforeach; ?> | ||
</div> |