* [task#149708,doing,0.2h] refactor weekly report menu.

This commit is contained in:
tianshujie
2025-09-11 16:33:27 +08:00
parent 0ff7101df5
commit f31eaf4e34
3 changed files with 4 additions and 7 deletions
-7
View File
@@ -33,11 +33,6 @@ class weekly extends control
*/
public function commonAction($projectID = 0)
{
if(common::hasPriv('weekly', 'exportweeklyreport'))
{
$this->lang->TRActions = "<div class='btn-toolbar pull-right'>" . html::a($this->createLink('weekly', 'exportweeklyreport', 'module=' . $this->app->getModuleName() . '&projectID=' . $projectID), $this->lang->export, '', "class='btn btn-primary' data-width='30%' id='exportreport' data-group='project'") . '</div';
}
$this->loadModel('project')->setMenu($projectID);
}
@@ -63,8 +58,6 @@ class weekly extends control
$this->view->title = $this->lang->weekly->common;
$this->view->date = $date;
$this->lang->modulePageNav = $this->weekly->getPageNav($this->view->project, $date);
$this->display();
}