changed the project bar to show the subtitle

This commit is contained in:
hyung-hwan 2015-04-25 02:31:48 +00:00
parent 3493b77ba4
commit 90b88057fd
2 changed files with 18 additions and 4 deletions

View File

@ -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)
{ {

View File

@ -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;