MantisBT - TestLink
View Issue Details
0005271TestLinkUser Interface Generalpublic2012-10-06 14:382014-07-27 10:04
marioct 
fman 
normalminorhave not tried
closedfixed 
1.9.4 (2012 Q3 - bug fixing) 
2.0 (planned) 
MySQL
Google Chrome
PHP Version 5.3.10
READY FOR TESTING
0005271: Create Banner Announcement
It´s good to implemente a Banner Announcement feature to warning users about maintenance period.
It´s just a simple try
in ~/testlink/custom_config.inc.php

// Banner Announcement
$tlCfg->banner_announcement = TRUE;
$tlCfg->banner_announcement_msg = "The system will be in maintenance next Friday (Oct/12) between 8pm and 10pm.";



~/gui/templates/navBar.tpl
...
{if $tlCfg->banner_announcement}
   <div id="banner_announcement"
        style="color:#FFFF00; background-color:#FF0000; border: 2px dashed; font-family:Verdana; font-size:15px;">
      <center>{$tlCfg->banner_announcement_msg}</center>
   </div>
{/if}
...
{if $gui->updateMainPage == 1}
No tags attached.
png banner-announcement.png (76,773) 2012-10-06 14:38
http://mantis.testlink.org/file_download.php?file_id=2893&type=bug
png
Issue History
2012-10-06 14:38marioctNew Issue
2012-10-06 14:38marioctFile Added: banner-announcement.png
2012-10-06 18:46fmanNote Added: 0017618
2012-10-06 19:15fmanNote Edited: 0017618bug_revision_view_page.php?bugnote_id=17618#r2127
2012-10-06 19:15fmanTask Workflow StatusTBD => READY FOR TESTING
2012-10-06 19:15fmanStatusnew => resolved
2012-10-06 19:15fmanFixed in Version => 2.0 (planned)
2012-10-06 19:15fmanResolutionopen => fixed
2012-10-06 19:15fmanAssigned To => fman
2014-07-27 10:04fmanNote Added: 0021354
2014-07-27 10:04fmanStatusresolved => closed

Notes
(0017618)
fman   
2012-10-06 18:46   
(edited on: 2012-10-06 19:15)
IMHO, we can have a better solution (and this is what we are going to implement)
using the central part of screen.
This will be part of 2.0
You can use code from 2.0 and implement on 1.9.4.

testlink 2.0
http://gitorious.org/testlink-ga/testlink-code/commit/cf0a9d9cf06d367377ca30e22f5e070f83e68f79 [^]

(0021354)
fman   
2014-07-27 10:04   
done