Skip to content

Commit

Permalink
Merge pull request #87 from TwistPHP/update-managerui
Browse files Browse the repository at this point in the history
Update managerui
  • Loading branch information
danrwalker committed Apr 5, 2016
2 parents 3384113 + a51b6e8 commit 66c02d1
Show file tree
Hide file tree
Showing 10 changed files with 255 additions and 200 deletions.
6 changes: 3 additions & 3 deletions dist/twist/Core/Controllers/Manager.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ 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="success">Twist is Up-to-date</span>' : '<span class="warning">A new version of TwistPHP is available, <a href="https://twistphp.com/">download from twist.com</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="error">Failed to retrieve version information, try again later!</span>';
$arrTags['version_status'] = '<span class="tag red">Failed to retrieve version information, try again later!</span>';
}

$objCodeScanner = new \Twist\Core\Models\Security\CodeScanner();
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 66c02d1

Please sign in to comment.