display username/logout prompt if header is disabled (closes #10)

This commit is contained in:
Andrew Dolgov 2005-12-19 19:19:35 +01:00
parent 426d3c5737
commit 82e1fe00fd
3 changed files with 26 additions and 15 deletions

View file

@ -57,7 +57,7 @@
<td rowspan="2" class="header" valign="middle"> <td rowspan="2" class="header" valign="middle">
<img src="images/ttrss_logo.png" alt="logo"> <img src="images/ttrss_logo.png" alt="logo">
</td> </td>
<td align="right" valign="top"> <td valign="top" class="notifyBox">
<div id="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify"><span id="notify_body">&nbsp;</span></div>
</td> </td>
</tr><tr><td class="welcomePrompt"> </tr><tr><td class="welcomePrompt">
@ -70,9 +70,15 @@
</td> </td>
</tr> </tr>
<? } else { ?> <? } else { ?>
<tr><td colspan="2" align="right"> <tr>
<td class="small">
<div id="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify"><span id="notify_body">&nbsp;</span></div>
<div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div> <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
</td><td class="welcomePrompt">
<? if (!SINGLE_USER_MODE) { ?>
Hello, <b><?= $_SESSION["name"] ?></b>
(<a href="logout.php">Logout</a>)
<? } ?>
</td></tr> </td></tr>
<? } ?> <? } ?>
<tr> <tr>

View file

@ -329,18 +329,21 @@ input.editbox {
padding-left : 2px; padding-left : 2px;
} }
#notify { td.notifyBox {
font-size : 10pt; font-size : 10pt;
text-align : right; text-align : right;
}
#notify {
color : black; color : black;
font-weight : bold; font-weight : bold;
padding : 3px; padding : 3px;
} }
#dispSwitch { #dispSwitch {
text-align : right;
padding : 5px 5px 5px 0px; padding : 5px 5px 5px 0px;
font-size : x-small; font-size : x-small;
text-align : right;
} }
#dispSwitch a { #dispSwitch a {
@ -692,10 +695,6 @@ table.innerLoginForm td {
padding : 3px 3px 5px 3px; padding : 3px 3px 5px 3px;
} }
div.small, p.small {
font-size : x-small;
}
span.insensitive { span.insensitive {
color : gray; color : gray;
} }
@ -730,7 +729,7 @@ div.logoutContent {
} }
.small { .small {
font-size : small; font-size : x-small;
} }
table.innerFeedTable td { table.innerFeedTable td {

View file

@ -57,7 +57,7 @@
<td rowspan="2" class="header" valign="middle"> <td rowspan="2" class="header" valign="middle">
<img src="images/ttrss_logo.png" alt="logo"> <img src="images/ttrss_logo.png" alt="logo">
</td> </td>
<td align="right" valign="top"> <td valign="top" class="notifyBox">
<div id="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify"><span id="notify_body">&nbsp;</span></div>
</td> </td>
@ -73,9 +73,15 @@
</td> </td>
</tr> </tr>
<? } else { ?> <? } else { ?>
<tr><td align="right" colspan="2"> <tr>
<td class="small">
<div id="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify"><span id="notify_body">&nbsp;</span></div>
<div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div> <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
</td><td class="welcomePrompt">
<? if (!SINGLE_USER_MODE) { ?>
Hello, <b><?= $_SESSION["name"] ?></b>
(<a href="logout.php">Logout</a>)
<? } ?>
</td></tr> </td></tr>
<? } ?> <? } ?>
<tr> <tr>