Skip to content

Commit

Permalink
fixing up the date display and remvoing plugin from the url
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Nov 19, 2012
1 parent 7c62384 commit b613523
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Core/Installer/View/Plugins/admin_dashboard.ctp
Expand Up @@ -5,14 +5,14 @@
'description' => 'View core plugins',
'icon' => '/installer/img/icon.png',
'author' => 'Infinitas',
'dashboard' => array('plugin' => 'installer', 'controller' => 'plugins', 'action' => 'index', 'Plugin.core' => 1)
'dashboard' => array('controller' => 'plugins', 'action' => 'index', 'Plugin.core' => 1)
),
array(
'name' => 'Update',
'description' => 'Update your site',
'icon' => '/installer/img/update.png',
'author' => 'Infinitas',
'dashboard' => array('plugin' => 'installer', 'controller' => 'plugins', 'action' => 'update_infinitas')
'dashboard' => array('controller' => 'plugins', 'action' => 'update_infinitas')
),
);
$nonCore = array(
Expand All @@ -21,14 +21,14 @@
'description' => 'View, install and manage your plugins',
'icon' => '/installer/img/icon.png',
'author' => 'Infinitas',
'dashboard' => array('plugin' => 'installer', 'controller' => 'plugins', 'action' => 'index', 'Plugin.core' => 0)
'dashboard' => array('controller' => 'plugins', 'action' => 'index', 'Plugin.core' => 0)
),
array(
'name' => 'Install',
'description' => 'Install additional plugins and themes',
'icon' => '/installer/img/install.png',
'author' => 'Infinitas',
'dashboard' => array('plugin' => 'installer', 'controller' => 'plugins', 'action' => 'install')
'dashboard' => array('controller' => 'plugins', 'action' => 'install')
),
);
$core = $this->Menu->builDashboardLinks($core, 'plugins_core');
Expand Down
9 changes: 4 additions & 5 deletions Core/Installer/View/Plugins/admin_index.ctp
Expand Up @@ -60,14 +60,13 @@
<td><?php echo $plugin['Plugin']['version']; ?>&nbsp;</td>
<td><?php echo $this->Infinitas->status($plugin['Plugin']['active']); ?>&nbsp;</td>
<td><?php echo $this->Infinitas->status($plugin['Plugin']['core']); ?>&nbsp;</td>
<td><?php echo $this->Time->timeAgoInWords($plugin['Plugin']['created']); ?>&nbsp;</td>
<td><?php echo $this->Infinitas->date($plugin['Plugin']['created']); ?>&nbsp;</td>
<td>
<?php
if($plugin['Plugin']['created'] == $plugin['Plugin']['modified']) {
echo __('Never');
}
else{
echo $this->Time->timeAgoInWords($plugin['Plugin']['created']);
echo __d('installer', 'Never');
} else{
echo $this->Infinitas->date($plugin['Plugin']['created']);
}
?>&nbsp;
</td>
Expand Down

0 comments on commit b613523

Please sign in to comment.