Skip to content

Commit

Permalink
Manager UI update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Apr 4, 2016
1 parent 3f8b156 commit a51b6e8
Show file tree
Hide file tree
Showing 10 changed files with 254 additions and 199 deletions.
4 changes: 2 additions & 2 deletions dist/twist/Core/Controllers/Manager.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function dashboard(){
$arrTags['version'] = \Twist::version();

if(count($arrLatestVersion) && array_key_exists('stable',$arrLatestVersion)){
$arrTags['version_status'] = (\Twist::version() == $arrLatestVersion['stable']['version']) ? '<span class="tag green">Twist is Up-to-date</span>' : '<span class="tag yellow">A new version of TwistPHP is available [<a href="https://github.com/TwistPHP/TwistPHP/releases" target="_blank">download it now</a>]</span>';
$arrTags['version_status'] = (\Twist::version() == $arrLatestVersion['stable']['version']) ? '<span class="tag green">Twist is Up-to-date</span>' : 'A new version of TwistPHP is available [<a href="https://github.com/TwistPHP/TwistPHP/releases" target="_blank">download it now</a>]';
}else{
$arrTags['version_status'] = '<span class="tag red">Failed to retrieve version information, try again later!</span>';
}
Expand All @@ -105,7 +105,7 @@ public function dashboard(){

$strUsersTable = sprintf('%susers',TWIST_DATABASE_TABLE_PREFIX);

$arrTags['user-accounts'] = sprintf('<strong>%d</strong> Superadmin,<br><strong>%d</strong> Admin,<br><strong>%d</strong> Advanced,<br><strong>%d</strong> Member',
$arrTags['user-accounts'] = sprintf('<strong>%d</strong> Superadmin<br><strong>%d</strong> Admin<br><strong>%d</strong> Advanced<br><strong>%d</strong> Member',
\Twist::Database()->records($strUsersTable)->count(\Twist::framework()->setting('USER_LEVEL_SUPERADMIN'),'level'),
\Twist::Database()->records($strUsersTable)->count(\Twist::framework()->setting('USER_LEVEL_ADMIN'),'level'),
\Twist::Database()->records($strUsersTable)->count(\Twist::framework()->setting('USER_LEVEL_ADVANCED'),'level'),
Expand Down
27 changes: 0 additions & 27 deletions dist/twist/Core/Resources/twist/manager/css/twist-manager.min.css

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a51b6e8

Please sign in to comment.