* Adjusting the left menu style.

This commit is contained in:
leiyong
2020-10-19 15:49:46 +08:00
parent d5501b419c
commit 2554993ae0
5 changed files with 6 additions and 3 deletions
+1
View File
@@ -60,6 +60,7 @@ $lang->required = 'Pflicht';
$lang->noData = 'Kein Datensatz';
$lang->fullscreen = 'Fullscreen';
$lang->retrack = 'Retrack';
$lang->recent = 'Kürzlich';
$lang->actions = 'Aktionen';
$lang->restore = 'Wiederherstellen';
+1
View File
@@ -60,6 +60,7 @@ $lang->required = 'Obligatoire';
$lang->noData = 'No data.';
$lang->fullscreen = 'Plein Ecran';
$lang->retrack = 'Réduire';
$lang->recent = 'Récent';
$lang->actions = 'Action';
$lang->restore = 'Réinitialiser';
+1
View File
@@ -60,6 +60,7 @@ $lang->required = 'Bắt buộc';
$lang->noData = 'Không có dữ liệu.';
$lang->fullscreen = 'Fullscreen';
$lang->retrack = 'Retrack';
$lang->recent = 'Recente';
$lang->actions = 'Hành động';
$lang->restore = 'Thiết lập lại';
+2 -2
View File
@@ -543,7 +543,7 @@ class commonModel extends model
{
global $dbh, $lang, $app;
echo '<li><hr></li>';
echo '<li><span><i class="icon icon-menu-doc"></i> ' . $lang->recent . '</span></li>';
echo '<li><span id="mainRecent"><i class="icon icon-menu-doc"></i> ' . $lang->recent . '</span></li>';
$extraWhere = empty($app->user->admin) && !empty($app->user->view->projects) ? ' and parent in (' . $app->user->view->projects . ') ' : '';
$recentProjects = $dbh->query('select * from ' . TABLE_PROJECT . " where type in ('stage','sprint') $extraWhere and status != 'close' and deleted = '0' order by 'id' desc limit 6")->fetchAll();
@@ -553,7 +553,7 @@ class commonModel extends model
foreach($recentProjects as $key => $project)
{
if($key == 5) continue;
echo '<li>' . html::a(helper::createLink('project', 'task', 'projectID=' . $project->id, '', false, $project->parent), $project->name, '', "class='text-ellipsis' title='$project->name'") . '</li>';
echo '<li>' . html::a(helper::createLink('project', 'task', 'projectID=' . $project->id, '', false, $project->parent), $project->name, '', "style='padding: 2px 8px 2px 8px;' class='text-ellipsis' title='$project->name'") . '</li>';
}
if(count($recentProjects) > 5) echo '<li onclick="getMorePRJ();" class="text-center"><span>' . $lang->more . '</span></li>';
}
+1 -1
View File
@@ -50,6 +50,6 @@ a.showMoreImage:hover {opacity: 1;}
#mainMenu .pull-right > .btn-group > .btn-icon {background: transparent;}
#mainMenu .pull-right > .btn-group > .btn-icon:hover {background: #fff;}
#menuNav> .nav > li > span {padding: 8px; line-height: 20px; cursor: pointer; color: #fff; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -khtml-user-select: none; user-select:none;}
#mainRecent {padding: 8px; line-height: 20px; cursor: pointer; color: #fff; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -khtml-user-select: none; user-select:none;}
#morePRJ {display:none; max-height: 420px; position: fixed; bottom: 0; left: 100px; z-index: 999; background: white; padding: 20px 10px; height: 420px; margin-bottom: 40px; border: 1px solid #efefef}
#morePRJ > .list-group {height: 380px; min-width: 150px; max-width:200px;}