diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-03 00:27:35 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-03 00:27:35 +0000 |
| commit | 7d2c828a4c909bab4c73656cfb1730176066b1db (patch) | |
| tree | 03254fcb147290d6168e87dc4ae2a4bc0444ebca /core/views | |
| parent | 7ae73fcd653d40d7ff1240f816481473adba5da4 (diff) | |
Put info about installed modules directly into the scaffolding page,
and create methods to install/uninstall modules.
Diffstat (limited to 'core/views')
| -rw-r--r-- | core/views/welcome.html.php | 2 | ||||
| -rw-r--r-- | core/views/welcome_syscheck.html.php | 35 |
2 files changed, 33 insertions, 4 deletions
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index 9b77ce20..957b091c 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -27,7 +27,6 @@ p { margin: 0 0 0 0; - padding-left: 1em; } pre { @@ -49,6 +48,7 @@ div.block { padding: 0px; + padding-left: 1em; margin: 0px; padding-bottom: 1em; } diff --git a/core/views/welcome_syscheck.html.php b/core/views/welcome_syscheck.html.php index 3a6b352c..7355e431 100644 --- a/core/views/welcome_syscheck.html.php +++ b/core/views/welcome_syscheck.html.php @@ -15,8 +15,37 @@ <? endif ?> </div> <? endforeach ?> + <? if (empty($errors)): ?> -<p class="success"> - Your system is ready to go. -</p> +<div class="block"> + <? if (empty($modules)): ?> + <p class="success"> + Your system is ready, but Gallery is not yet installed. + </p> + <p> + <?= html::anchor("welcome/install/core", "install gallery") ?> + </p> + <? else: ?> + <p class="success"> + Your Gallery is ready with the following modules installed: + </p> + <table style="width: 400px"> + <tr> + <th align="left">Name</th> + <th align="left">Version</th> + <th align="left">Action</th> + </tr> + <? foreach ($modules as $module): ?> + <tr> + <td><?= $module->name ?></td> + <td><?= $module->version ?></td> + <td> + <?= html::anchor("welcome/install/{$module->name}", "install") ?>, + <?= html::anchor("welcome/uninstall/{$module->name}", "uninstall") ?> + </td> + </tr> + <? endforeach; ?> + </table> + <? endif; ?> +</div> <? endif ?> |
