diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-04 22:18:00 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-04 22:18:00 +0000 |
| commit | d0629584b503be10a940766d8536c8ed0bd08bbe (patch) | |
| tree | b27660ec9d3ea426fe128a158d98a60a7bcc8099 /core/views | |
| parent | 605d2de336eac8c8f80b916d30989b347d813e94 (diff) | |
Have the scaffolding code see what what modules are available and list whether they need to be installed or uninstalled.
Diffstat (limited to 'core/views')
| -rw-r--r-- | core/views/welcome_syscheck.html.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/views/welcome_syscheck.html.php b/core/views/welcome_syscheck.html.php index 5f1a1945..63919c73 100644 --- a/core/views/welcome_syscheck.html.php +++ b/core/views/welcome_syscheck.html.php @@ -35,13 +35,16 @@ <th align="left">Version</th> <th align="left">Action</th> </tr> - <? foreach ($modules as $module): ?> + <? foreach ($modules as $module_name => $module_version): ?> <tr> - <td><?= $module->name ?></td> - <td><?= $module->version ?></td> + <td><?= $module_name ?></td> + <td><?= empty($module_version) ? "" : $module_version ?></td> <td> - <?= html::anchor("welcome/install/{$module->name}", "install") ?>, - <?= html::anchor("welcome/uninstall/{$module->name}", "uninstall") ?> + <? if (empty($module_version)): ?> + <?= html::anchor("welcome/install/{$module_name}", "install") ?> + <? else: ?> + <?= html::anchor("welcome/uninstall/{$module_name}", "uninstall") ?> + <? endif; ?> </td> </tr> <? endforeach; ?> |
