Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 14b7d77

Browse files
author
Charles Ma
committed
ENG refs #291 Fixed dashboard
1 parent ebfbede commit 14b7d77

File tree

5 files changed

+23
-53
lines changed

5 files changed

+23
-53
lines changed

core/AppController.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function preDispatch()
174174

175175
$this->view->recentItems = $recentItems;
176176
$check = $this->_getParam('checkRecentItem');
177-
}
177+
}
178178
}
179179
else
180180
{
@@ -200,10 +200,10 @@ public function preDispatch()
200200
}
201201

202202
$this->view->lang = Zend_Registry::get('configGlobal')->application->lang;
203-
203+
204204
$this->view->isStartingGuide = $this->isStartingGuide();
205-
$this->view->isDynamicHelp = $this->isDynamicHelp();
206-
205+
$this->view->isDynamicHelp = $this->isDynamicHelp();
206+
207207
//create a global javascript json array
208208
$jsonGlobal = array(
209209
"webroot" => $this->view->webroot,
@@ -254,14 +254,14 @@ public function preDispatch()
254254

255255
$this->view->json = array(
256256
"global" => $jsonGlobal, "login" => $login, 'feed' => $feed, "browse" => $browse);
257-
257+
258258
// Init Dynamic Help (the order makes sense for the animation)
259259
if($this->isDemoMode())
260260
{
261261
$this->addDynamicHelp('.loginLink', "<b>Authenticate.</b><br/><br/>Demo Administrator:<br/>- Login: admin@kitware.com<br/>- Password: admin<br/><br/>
262-
Demo User:<br/>-Login: user@kitware.com<br/>-Password: useryour information.", 'bottom left', 'top right');
262+
Demo User:<br/>-Login: user@kitware.com<br/>-Password: user", 'bottom left', 'top right');
263263
}
264-
264+
265265
if($this->logged)
266266
{
267267
$this->addDynamicHelp('#startingGuideLink', 'Show the <b>Starting Guide</b>. You can disable these messages from this panel.');
@@ -270,11 +270,11 @@ public function preDispatch()
270270
{
271271
$this->addDynamicHelp('.HeaderLogo', 'The <b>MIDAS Platform</b> integrates multimedia server technology with open-source data analysis and visualization clients.');
272272
}
273-
274-
273+
274+
275275
$this->addDynamicHelp('.HeaderSearch', '<b>Quick search</b>. Use this tool to quickly find information and data.');
276276
$this->addDynamicHelp('li.uploadFile a', '<b>Upload</b> files, data using this button.');
277-
277+
278278
if($this->logged)
279279
{
280280
$this->addDynamicHelp('#topUserName', '<b>Manage</b> your information.', 'bottom left', 'top right');
@@ -283,12 +283,12 @@ public function preDispatch()
283283
{
284284
$this->addDynamicHelp('.registerLink', '<b>Register</b> to create your personnal space.', 'bottom left', 'top right');
285285
}
286-
286+
287287
$this->addDynamicHelp('.SideBar ul:first', '<b>Navigation menu</b>. Browse, explore and manage data.');
288-
288+
289289
Zend_Loader::loadClass("JsonComponent", BASE_PATH.'/core/controllers/components');
290290
} // end preDispatch()
291-
291+
292292
/** show dynamic help ? */
293293
function isDynamicHelp()
294294
{
@@ -305,13 +305,13 @@ function isDynamicHelp()
305305
}
306306
return $dynamichelp == 1;
307307
}
308-
catch (Zend_Exception $exc)
308+
catch(Zend_Exception $exc)
309309
{
310310
$this->getLogger()->warn($exc->getMessage());
311311
return false;
312312
}
313313
}
314-
314+
315315
/** show starting guide ? */
316316
function isStartingGuide()
317317
{
@@ -323,7 +323,7 @@ function isStartingGuide()
323323
}
324324
return false;
325325
}
326-
catch (Zend_Exception $exc)
326+
catch(Zend_Exception $exc)
327327
{
328328
$this->getLogger()->warn($exc->getMessage());
329329
return false;
@@ -362,11 +362,11 @@ public function isTestingEnv()
362362
* @param type $selector (javascript selector)
363363
* @param type $text
364364
* @param type $location
365-
* @param type $arrow
365+
* @param type $arrow
366366
*/
367367
public function addDynamicHelp($selector, $text, $location = 'bottom right', $arrow = 'top left')
368368
{
369-
$this->view->json['dynamicHelp'][] = array('selector' => $selector, 'text' => htmlspecialchars($text) , 'my' => $arrow, 'at' => $location);
369+
$this->view->json['dynamicHelp'][] = array('selector' => $selector, 'text' => htmlspecialchars($text), 'my' => $arrow, 'at' => $location);
370370
}
371371
/** check if demo mode is set */
372372
public function isDemoMode()

core/controllers/CommunityController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function indexAction()
241241
$communities = $this->Component->Sortdao->arrayUniqueDao($communities);
242242

243243
$this->view->userCommunities = $communities;
244-
244+
245245
$this->addDynamicHelp('.communityList:first', 'List of current projects/communities hosted on MIDAS.', 'top right', 'bottom left');
246246
$this->addDynamicHelp('.createCommunity', 'Manage your own community or project.');
247247
}//end index
@@ -322,12 +322,12 @@ function viewAction()
322322

323323
$this->view->customJSs = Zend_Registry::get('notifier')->callback('CALLBACK_CORE_GET_COMMUNITY_VIEW_JSS', array());
324324
$this->view->customCSSs = Zend_Registry::get('notifier')->callback('CALLBACK_CORE_GET_COMMUNITY_VIEW_CSSS', array());
325-
325+
326326
$this->addDynamicHelp('#tabDataLink', 'Public and Private Data hosted by the community.');
327327
$this->addDynamicHelp('#tabFeedLink', 'What\'s new?');
328328
$this->addDynamicHelp('#tabInfoLink', 'Description of the community.');
329329
$this->addDynamicHelp('#tabSharedLink', 'Data shared to the member of the community.');
330-
330+
331331
} //end index
332332

333333
/** Delete a community*/

core/controllers/FeedController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function indexAction()
4646
}
4747
setcookie('newFeed'.$this->userSession->Dao->getKey(), strtotime("now"), time() + 60 * 60 * 24 * 300, '/'); //30 days
4848
}
49-
49+
5050
$this->addDynamicHelp('.feedContainer', 'The <b>Feed</b> shows recent actions and events.', 'top right', 'bottom left');
5151
}
5252

core/controllers/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function registerAction()
177177
$this->view->jsonRegister = JsonComponent::encode(array(
178178
'MessageNotValid' => $this->t('The e-mail is not valid'), 'MessageNotAvailable' => $this->t('This e-mail is not available'), 'MessagePassword' => $this->t('Password too short'), 'MessagePasswords' => $this->t('The passwords are not the same'), 'MessageLastname' => $this->t('Please set your lastname'), 'MessageTerms' => $this->t('Please validate the terms of service'), 'MessageFirstname' => $this->t('Please set your firstname')
179179
));
180-
180+
181181
} //end register
182182

183183
/** Login action */

core/tests/controllers/IndexControllerTest.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)