From 90b88057fd31c2ed0a170d2e537164dd33b3df31 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 25 Apr 2015 02:31:48 +0000 Subject: [PATCH] changed the project bar to show the subtitle --- codepot/src/codepot/views/projectbar.php | 13 ++++++++++--- codepot/src/css/common.css | 9 ++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/codepot/src/codepot/views/projectbar.php b/codepot/src/codepot/views/projectbar.php index 17282443..bad2dd0c 100644 --- a/codepot/src/codepot/views/projectbar.php +++ b/codepot/src/codepot/views/projectbar.php @@ -24,10 +24,10 @@ function show_projectbar ($con, $banner, $page, $ctxmenuitems) if ($project->name == '') print $project->id; - else if (strcasecmp ($project->name, $project->id) == 0) + //else if (strcasecmp ($project->name, $project->id) == 0) print htmlspecialchars($project->name); - else - print htmlspecialchars($project->name) . " ({$project->id})"; + //else + // print htmlspecialchars($project->name) . " ({$project->id})"; } else if ($type == 'site') { @@ -43,6 +43,13 @@ function show_projectbar ($con, $banner, $page, $ctxmenuitems) print ""; + print "
"; + if ($type == 'project') + { + print htmlspecialchars($project->summary); + } + print "
"; + print '
'; if ($ctxmenuitems !== NULL && count($ctxmenuitems) > 0) { diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css index 433631d4..95c7e8c3 100644 --- a/codepot/src/css/common.css +++ b/codepot/src/css/common.css @@ -241,11 +241,18 @@ body { } .content .projectbar .title { - font-size: 2.2em; + font-size: 2em; text-transform: uppercase; white-space: nowrap; } +.content .projectbar .subtitle { + font-size: 1em; + white-space: nowrap; + padding-left: 0.1em; + color: #1C94C4; +} + .content .projectbar .ctxmenu { position: absolute; bottom: 0;