mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Optimize AppStore layout
This commit is contained in:
parent
baf7fe2134
commit
3ae234b868
@ -1,7 +1,6 @@
|
||||
<h1><?php echo Yii::t('AdminModule.modules', 'Modules'); ?></h1>
|
||||
|
||||
<ul class="nav nav-pills" id="moduleTabs">
|
||||
<li <?php if ($this->action->id == 'list') echo 'class="active"'; ?>><?php echo CHtml::link(Yii::t('AdminModule.modules', 'Installed'), $this->createUrl('list')); ?></li>
|
||||
<li <?php if ($this->action->id == 'listOnline') echo 'class="active"'; ?>><?php echo CHtml::link(Yii::t('AdminModule.modules', 'Browse online'), $this->createUrl('listOnline')); ?></li>
|
||||
<li <?php if ($this->action->id == 'listUpdates') echo 'class="active"'; ?>><?php echo CHtml::link(Yii::t('AdminModule.modules', 'Available updates'), $this->createUrl('listUpdates')); ?></li>
|
||||
</ul>
|
||||
<hr/>
|
||||
|
@ -1,11 +1,10 @@
|
||||
<div class="modal-dialog modal-dialog-small animated fadeIn">
|
||||
<div class="modal-dialog modal-dialog-normal animated fadeIn">
|
||||
<div class="modal-content">
|
||||
|
||||
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title"
|
||||
id="myModalLabel"><?php echo Yii::t('AdminModule.modules', 'More information: %moduleName%', array('%moduleName%' => $name)); ?></h4>
|
||||
id="myModalLabel"><?php echo Yii::t('AdminModule.modules', 'More information: <strong>%moduleName%</strong>', array('%moduleName%' => $name)); ?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo Yii::t('AdminModule.modules', '<strong>Modules</strong> directory'); ?></div>
|
||||
<div class="panel-body">
|
||||
|
||||
<?php echo $this->renderPartial('_header'); ?>
|
||||
<br/>
|
||||
|
||||
<h2><?php echo Yii::t('AdminModules.modules', 'Currently installed modules'); ?></h2>
|
||||
|
||||
<h1><?php echo Yii::t('AdminModules.modules', '<strong>Currently</strong> installed modules'); ?></h1>
|
||||
<?php foreach ($installedModules as $moduleId => $module) : ?>
|
||||
<div class="media">
|
||||
<img class="media-object img-rounded pull-left" data-src="holder.js/64x64" alt="64x64"
|
||||
@ -23,26 +24,27 @@
|
||||
|
||||
<p><?php echo $module->getDescription(); ?></p>
|
||||
|
||||
<p><small>
|
||||
<?php echo Yii::t('AdminModules.modules', 'Version:'); ?> <?php echo $module->getVersion(); ?>
|
||||
<div class="module-controls">
|
||||
|
||||
<?php if ($module->isEnabled()) : ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Disable'), array('//admin/module/disable', 'moduleId' => $moduleId)); ?>
|
||||
<?php echo Yii::t('AdminModules.modules', 'Version:'); ?> <?php echo $module->getVersion(); ?>
|
||||
|
||||
<?php if ($module->getConfigUrl()) : ?>
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'Configure'), $module->getConfigUrl()); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Enable'), array('//admin/module/enable', 'moduleId' => $moduleId)); ?>
|
||||
<?php if ($module->isEnabled()) : ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Disable'), array('//admin/module/disable', 'moduleId' => $moduleId)); ?>
|
||||
|
||||
<?php if ($module->getConfigUrl()) : ?>
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'Configure'), $module->getConfigUrl()); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Enable'), array('//admin/module/enable', 'moduleId' => $moduleId)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (Yii::app()->moduleManager->canUninstall($moduleId)): ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Uninstall'), array('//admin/module/uninstall', 'moduleId' => $moduleId), array('confirm' => Yii::t('AdminModule.modules', 'Are you sure? - All module data will be lost!'))); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'More info'), array('//admin/module/info', 'moduleId' => $moduleId), array('data-target'=>'#globalModal', 'data-toggle'=>'modal')); ?>
|
||||
|
||||
</small></p>
|
||||
<?php if (Yii::app()->moduleManager->canUninstall($moduleId)): ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Uninstall'), array('//admin/module/uninstall', 'moduleId' => $moduleId), array('confirm' => Yii::t('AdminModule.modules', 'Are you sure? - All module data will be lost!'))); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'More info'), array('//admin/module/info', 'moduleId' => $moduleId), array('data-target' => '#globalModal', 'data-toggle' => 'modal')); ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,9 +1,11 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo Yii::t('AdminModule.modules', '<strong>Modules</strong> directory'); ?></div>
|
||||
<div class="panel-body">
|
||||
|
||||
<?php echo $this->renderPartial('_header'); ?>
|
||||
<br/>
|
||||
|
||||
<h2><?php echo Yii::t('AdminModule.modules', 'Online available modules'); ?></h2>
|
||||
<h1><?php echo Yii::t('AdminModule.modules', '<strong>Online</strong> available modules'); ?></h1>
|
||||
|
||||
<?php foreach ($modules as $module): ?>
|
||||
|
||||
@ -13,34 +15,36 @@
|
||||
src="<?php echo Yii::app()->baseUrl; ?>/uploads/profile_image/default_module.jpg">
|
||||
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><?php echo $module['name']; ?>
|
||||
<h4 class="media-heading"><?php echo $module['name']; ?>
|
||||
<?php if (Yii::app()->moduleManager->isInstalled($module['id'])): ?>
|
||||
<small><span class="label label-success"><?php echo Yii::t('AdminModules.modules', 'Installed'); ?></small></span>
|
||||
<small><span
|
||||
class="label label-success"><?php echo Yii::t('AdminModules.modules', 'Installed'); ?>
|
||||
</small></span>
|
||||
<?php endif; ?>
|
||||
</h4>
|
||||
<p><?php echo $module['description']; ?></p>
|
||||
<p><small>
|
||||
|
||||
<?php echo Yii::t('AdminModule.modules', 'Latest version:'); ?> <?php echo $module['latestVersion']; ?>
|
||||
<div class="module-controls">
|
||||
<?php echo Yii::t('AdminModule.modules', 'Latest version:'); ?> <?php echo $module['latestVersion']; ?>
|
||||
|
||||
<?php if (isset($module['latestCompatibleVersion'])) : ?>
|
||||
<?php if (isset($module['latestCompatibleVersion'])) : ?>
|
||||
|
||||
<?php if ($module['latestCompatibleVersion'] != $module['latestVersion']) : ?>
|
||||
· <?php echo Yii::t('AdminModule.modules', 'Latest compatible version:'); ?> <?php echo $module['latestCompatibleVersion']; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!Yii::app()->moduleManager->isInstalled($module['id'])): ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Install'), $this->createUrl('install', array('moduleId' => $module['id']))); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
· <span style="color:red"><?php echo Yii::t('AdminModule.modules', 'No compatible module version found!'); ?></span>
|
||||
<?php if ($module['latestCompatibleVersion'] != $module['latestVersion']) : ?>
|
||||
· <?php echo Yii::t('AdminModule.modules', 'Latest compatible version:'); ?> <?php echo $module['latestCompatibleVersion']; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'More info'), array('//admin/module/infoOnline', 'moduleId' => $module['id']), array('data-target'=>'#globalModal', 'data-toggle'=>'modal')); ?>
|
||||
|
||||
</small>
|
||||
</p>
|
||||
|
||||
<?php if (!Yii::app()->moduleManager->isInstalled($module['id'])): ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Install'), $this->createUrl('install', array('moduleId' => $module['id']))); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
· <span
|
||||
style="color:red"><?php echo Yii::t('AdminModule.modules', 'No compatible module version found!'); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'More info'), array('//admin/module/infoOnline', 'moduleId' => $module['id']), array('data-target' => '#globalModal', 'data-toggle' => 'modal')); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo Yii::t('AdminModule.modules', '<strong>Modules</strong> directory'); ?></div>
|
||||
<div class="panel-body">
|
||||
|
||||
<?php echo $this->renderPartial('_header'); ?>
|
||||
<br/>
|
||||
|
||||
<h2><?php echo Yii::t('AdminModules.modules', 'Available Updates'); ?></h2>
|
||||
<h1><?php echo Yii::t('AdminModules.modules', '<strong>Available</strong> Updates'); ?></h1>
|
||||
|
||||
<?php if (count($modules) == 0): ?>
|
||||
|
||||
@ -20,16 +22,19 @@
|
||||
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><?php echo $module['name']; ?> </h4>
|
||||
|
||||
<p><?php echo $module['description']; ?></p>
|
||||
<p><small>
|
||||
<?php if (isset($module['latestCompatibleVersion']) && Yii::app()->moduleManager->isInstalled($module['id'])) : ?>
|
||||
<?php echo Yii::t('AdminModule.modules', 'Installed version:'); ?> <?php echo Yii::app()->moduleManager->getModule($module['id'])->getVersion(); ?>
|
||||
· <?php echo Yii::t('AdminModule.modules', 'Latest compatible Version:'); ?> <?php echo $module['latestCompatibleVersion']; ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Update'), $this->createUrl('update', array('moduleId' => $module['id']))); ?>
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'More info'), array('//admin/module/infoOnline', 'moduleId' => $module['id']), array('data-target'=>'#globalModal', 'data-toggle'=>'modal')); ?>
|
||||
<?php endif; ?>
|
||||
</small>
|
||||
</p>
|
||||
|
||||
<div class="module-controls">
|
||||
|
||||
<?php if (isset($module['latestCompatibleVersion']) && Yii::app()->moduleManager->isInstalled($module['id'])) : ?>
|
||||
<?php echo Yii::t('AdminModule.modules', 'Installed version:'); ?> <?php echo Yii::app()->moduleManager->getModule($module['id'])->getVersion(); ?>
|
||||
· <?php echo Yii::t('AdminModule.modules', 'Latest compatible Version:'); ?> <?php echo $module['latestCompatibleVersion']; ?>
|
||||
· <?php echo HHtml::postLink(Yii::t('AdminModule.modules', 'Update'), $this->createUrl('update', array('moduleId' => $module['id']))); ?>
|
||||
· <?php echo HHtml::link(Yii::t('AdminModule.modules', 'More info'), array('//admin/module/infoOnline', 'moduleId' => $module['id']), array('data-target' => '#globalModal', 'data-toggle' => 'modal')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -159,6 +159,12 @@ h4 {
|
||||
font-size: 11px;
|
||||
color: #bebebe;
|
||||
}
|
||||
.media .media-body .module-controls {
|
||||
font-size: 85%;
|
||||
}
|
||||
.media .media-body .module-controls a {
|
||||
color: #4cd9c0;
|
||||
}
|
||||
.media .content a {
|
||||
color: #4cd9c0;
|
||||
}
|
||||
@ -217,8 +223,9 @@ h4 {
|
||||
}
|
||||
.panel h1 {
|
||||
font-size: 16px;
|
||||
font-weight: 200;
|
||||
font-weight: 300;
|
||||
margin-top: 0px;
|
||||
color: #555555;
|
||||
}
|
||||
.panel .panel-heading {
|
||||
font-size: 16px;
|
||||
|
@ -259,6 +259,14 @@ h4 {
|
||||
font-size: 11px;
|
||||
color: @colorFont4;
|
||||
}
|
||||
|
||||
.module-controls {
|
||||
font-size: 85%;
|
||||
|
||||
a {
|
||||
color: @colorInfo2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
@ -325,8 +333,9 @@ h4 {
|
||||
|
||||
h1 {
|
||||
font-size: 16px;
|
||||
font-weight: 200;
|
||||
font-weight: 300;
|
||||
margin-top: 0px;
|
||||
color: @colorFont3;
|
||||
}
|
||||
|
||||
.panel-heading {
|
||||
@ -341,6 +350,7 @@ h4 {
|
||||
p {
|
||||
color: @colorFont3;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.statistics {
|
||||
|
Loading…
x
Reference in New Issue
Block a user