changed the project bar to show the subtitle
This commit is contained in:
		| @ -24,10 +24,10 @@ function show_projectbar ($con, $banner, $page, $ctxmenuitems) | |||||||
|  |  | ||||||
| 		if ($project->name == '') | 		if ($project->name == '') | ||||||
| 			print $project->id; | 			print $project->id; | ||||||
| 		else if (strcasecmp ($project->name, $project->id) == 0) | 		//else if (strcasecmp ($project->name, $project->id) == 0) | ||||||
| 			print htmlspecialchars($project->name); | 			print htmlspecialchars($project->name); | ||||||
| 		else | 		//else | ||||||
| 			print htmlspecialchars($project->name) . " ({$project->id})"; | 		//	print htmlspecialchars($project->name) . " ({$project->id})"; | ||||||
| 	} | 	} | ||||||
| 	else if ($type == 'site') | 	else if ($type == 'site') | ||||||
| 	{ | 	{ | ||||||
| @ -43,6 +43,13 @@ function show_projectbar ($con, $banner, $page, $ctxmenuitems) | |||||||
|  |  | ||||||
| 	print "</div>"; | 	print "</div>"; | ||||||
|  |  | ||||||
|  | 	print "<div class='subtitle'>"; | ||||||
|  | 	if ($type == 'project') | ||||||
|  | 	{ | ||||||
|  | 		print htmlspecialchars($project->summary); | ||||||
|  | 	} | ||||||
|  | 	print "</div>"; | ||||||
|  |  | ||||||
| 	print '<div class="ctxmenu">'; | 	print '<div class="ctxmenu">'; | ||||||
| 	if ($ctxmenuitems !== NULL && count($ctxmenuitems) > 0) | 	if ($ctxmenuitems !== NULL && count($ctxmenuitems) > 0) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
| @ -241,11 +241,18 @@ body { | |||||||
| } | } | ||||||
|  |  | ||||||
| .content .projectbar .title { | .content .projectbar .title { | ||||||
| 	font-size: 2.2em; | 	font-size: 2em; | ||||||
| 	text-transform: uppercase; | 	text-transform: uppercase; | ||||||
| 	white-space: nowrap; | 	white-space: nowrap; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .content .projectbar .subtitle { | ||||||
|  | 	font-size: 1em; | ||||||
|  | 	white-space: nowrap; | ||||||
|  | 	padding-left: 0.1em; | ||||||
|  | 	color: #1C94C4; | ||||||
|  | } | ||||||
|  |  | ||||||
| .content .projectbar .ctxmenu { | .content .projectbar .ctxmenu { | ||||||
| 	position: absolute; | 	position: absolute; | ||||||
| 	bottom: 0; | 	bottom: 0; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user