summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-19 19:19:35 +0100
committerAndrew Dolgov <[email protected]>2005-12-19 19:19:35 +0100
commit82e1fe00fd0ba85b30d8823c1175aeae0fd11fb1 (patch)
treed758a51859100d336d80445509ad3402c8391508
parent426d3c57372976359d298fa881ee5d4cd7c3bf1b (diff)
display username/logout prompt if header is disabled (closes #10)
-rw-r--r--prefs.php14
-rw-r--r--tt-rss.css13
-rw-r--r--tt-rss.php14
3 files changed, 26 insertions, 15 deletions
diff --git a/prefs.php b/prefs.php
index 5a56f896f..cfdb5e0c8 100644
--- a/prefs.php
+++ b/prefs.php
@@ -57,7 +57,7 @@
<td rowspan="2" class="header" valign="middle">
<img src="images/ttrss_logo.png" alt="logo">
</td>
- <td align="right" valign="top">
+ <td valign="top" class="notifyBox">
<div id="notify"><span id="notify_body">&nbsp;</span></div>
</td>
</tr><tr><td class="welcomePrompt">
@@ -70,9 +70,15 @@
</td>
</tr>
<? } else { ?>
-<tr><td colspan="2" align="right">
- <div id="notify"><span id="notify_body">&nbsp;</span></div>
- <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
+<tr>
+ <td class="small">
+ <div id="notify"><span id="notify_body">&nbsp;</span></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>
<? } ?>
<tr>
diff --git a/tt-rss.css b/tt-rss.css
index 584c41b35..d99a6308f 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -329,18 +329,21 @@ input.editbox {
padding-left : 2px;
}
-#notify {
+td.notifyBox {
font-size : 10pt;
text-align : right;
+}
+
+#notify {
color : black;
font-weight : bold;
padding : 3px;
}
#dispSwitch {
- text-align : right;
padding : 5px 5px 5px 0px;
font-size : x-small;
+ text-align : right;
}
#dispSwitch a {
@@ -692,10 +695,6 @@ table.innerLoginForm td {
padding : 3px 3px 5px 3px;
}
-div.small, p.small {
- font-size : x-small;
-}
-
span.insensitive {
color : gray;
}
@@ -730,7 +729,7 @@ div.logoutContent {
}
.small {
- font-size : small;
+ font-size : x-small;
}
table.innerFeedTable td {
diff --git a/tt-rss.php b/tt-rss.php
index 069293590..d6b3aeee0 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -57,7 +57,7 @@
<td rowspan="2" class="header" valign="middle">
<img src="images/ttrss_logo.png" alt="logo">
</td>
- <td align="right" valign="top">
+ <td valign="top" class="notifyBox">
<div id="notify"><span id="notify_body">&nbsp;</span></div>
</td>
@@ -73,9 +73,15 @@
</td>
</tr>
<? } else { ?>
-<tr><td align="right" colspan="2">
- <div id="notify"><span id="notify_body">&nbsp;</span></div>
- <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
+<tr>
+ <td class="small">
+ <div id="notify"><span id="notify_body">&nbsp;</span></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>
<? } ?>
<tr>