com web/php: Fix note editing links: include/shared-manual.inc styles/theme.css
| From: | Paul Dragoonis | Date: | Sun, 02 Jan 2011 20:39:57 +0000 |
| Subject: | com web/php: Fix note editing links: include/shared-manual.inc styles/theme.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23658@lists.php.net to get a copy of this message | ||
Commit: f1e874b88f9fbc9f4cdda414e9784d01d0ee07e1
Author: Hannes Magnusson <bjori@php.net> Sun, 2 Jan 2011 20:39:57 +0000
Parents: 65a4a486dcd257b316ab609d0b7fd05a9fdec166
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f1e874b88f9fbc9f4cdda414e9784d01d0ee07e1
Log:
Fix note editing links
Changed paths:
M include/shared-manual.inc
M styles/theme.css
Diff:
diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index 575655c..0a67b8c 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -457,7 +457,7 @@ function manual_note_display($date, $name, $text, $id)
// If the viewer is logged in, show admin options
if (isset($_COOKIE['MAGIC_COOKIE']) && $id) {
- $admin = "\n <span class=\"action\">\n " .
+ $admin = "\n <span class=\"admin\">\n " .
make_popup_link(
'https://master.php.net/manage/user-notes.php?action=edit+'
. $id,
@@ -484,7 +484,7 @@ function manual_note_display($date, $name, $text, $id)
echo <<<USER_NOTE_TEXT
- {$anchor}<div class="note">{$admin}{$name}{$datestr}
+ {$anchor}<div class="note">{$name}{$datestr}{$admin}
<div class="text">
{$text}
</div>
diff --git a/styles/theme.css b/styles/theme.css
index a43e1fb..8ac8f9a 100644
--- a/styles/theme.css
+++ b/styles/theme.css
@@ -217,14 +217,14 @@ h1 a:hover {
border-top: 3px solid #ddd;
}
-#usernotes .user, #usernotes .date {
+#usernotes .user, #usernotes .date, #usernotes ..admin {
display: block;
width: 50%;
float: left;
margin-bottom: 0.6em;
}
-#usernotes .date {
+#usernotes .date, #usernotes .admin {
float:right;
text-align: right;
}