From 5aa7779aaf2909697671f4bda2480d79150d7cbc Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Sat, 27 Sep 2008 09:52:28 +0000 Subject: [PATCH] Part 2 of 2 for the fix of Ticket #740. svn path=/trunk/boinc/; revision=16077 --- html/user/forum_thread.php | 25 +++++++++++++------------ html/user/friend.php | 19 ++++++++----------- html/user/pm.php | 10 +++++----- html/user/white.css | 16 ++++++++++++++-- 4 files changed, 40 insertions(+), 30 deletions(-) diff --git a/html/user/forum_thread.php b/html/user/forum_thread.php index e14870f2b0..368199d571 100644 --- a/html/user/forum_thread.php +++ b/html/user/forum_thread.php @@ -125,48 +125,49 @@ echo "
- \n"; echo "\n"; + echo "\n"; } echo " "; end_table(); diff --git a/html/user/white.css b/html/user/white.css index d3e2351a20..3014e7b8d1 100644 --- a/html/user/white.css +++ b/html/user/white.css @@ -132,7 +132,7 @@ input, select, textarea, .button { input[type="button"], input[type="submit"], input.btn { margin: 2px 0px; background: #d4d0c8; - margin-right: 0.5em; + margin-right: 0.6em; color: #203C66; border: 1px solid #a8a8a8; font-size: 12px; @@ -143,7 +143,8 @@ input[type="button"], input[type="submit"], input.btn { .button { margin: 2px 0px; background: #d4d0c8; - margin-right: 0.5em; + margin-right: 0.6em; + white-space: nowrap; color: #203C66; border: 1px solid #a8a8a8; font-size: 0.9em; @@ -160,6 +161,17 @@ input[type="button"]:hover, input[type="submit"]:hover, input.btn:hover, .forum_ background: #edece8; } +.actionlist { + display: inline; + list-style: none; + margin: 0; + padding: 0; +} +.actionlist li { + display: inline; +} + + img { border: 0px; } img.userimg { border: 0px; }
+
    "; $reply_url = ""; if (can_reply($thread, $forum, $logged_in_user)) { $reply_url = "forum_reply.php?thread=".$thread->id."#input"; - show_button($reply_url, tra("Post to thread"), "Add a new message to this thread"); + show_actionlist_button($reply_url, tra("Post to thread"), "Add a new message to this thread"); } if ($is_subscribed) { $type = NOTIFY_SUBSCRIBED_POST; BoincNotify::delete_aux("userid=$logged_in_user->id and type=$type and opaque=$thread->id"); $url = "forum_subscribe.php?action=unsubscribe&thread=".$thread->id."$tokens"; - show_button($url, tra("Unsubscribe"), "You are subscribed to this thread. Click here to unsubscribe."); + show_actionlist_button($url, tra("Unsubscribe"), "You are subscribed to this thread. Click here to unsubscribe."); } else { $url = "forum_subscribe.php?action=subscribe&thread=".$thread->id."$tokens"; - show_button($url, tra("Subscribe"), "Click to get email when there are new posts in this thread"); + show_actionlist_button($url, tra("Subscribe"), "Click to get email when there are new posts in this thread"); } //If the logged in user is moderator enable some extra features // if (is_moderator($logged_in_user, $forum)) { if ($thread->hidden){ - show_button("forum_moderate_thread_action.php?action=unhide&thread=".$thread->id."$tokens", "Unhide", "Unhide this thread"); + show_actionlist_button("forum_moderate_thread_action.php?action=unhide&thread=".$thread->id."$tokens", "Unhide", "Unhide this thread"); } else { - show_button("forum_moderate_thread.php?action=hide&thread=".$thread->id, "Hide", "Hide this thread"); + show_actionlist_button("forum_moderate_thread.php?action=hide&thread=".$thread->id, "Hide", "Hide this thread"); } if ($thread->sticky){ - show_button("forum_moderate_thread_action.php?action=desticky&thread=".$thread->id."$tokens", "Make unsticky", "Make this thread not sticky"); + show_actionlist_button("forum_moderate_thread_action.php?action=desticky&thread=".$thread->id."$tokens", "Make unsticky", "Make this thread not sticky"); } else { - show_button("forum_moderate_thread_action.php?action=sticky&thread=".$thread->id."$tokens", "Make sticky", "Make this thread sticky"); + show_actionlist_button("forum_moderate_thread_action.php?action=sticky&thread=".$thread->id."$tokens", "Make sticky", "Make this thread sticky"); } if ($thread->locked) { - show_button("forum_moderate_thread_action.php?action=unlock&thread=".$thread->id."$tokens", "Unlock", "Unlock this thread"); + show_actionlist_button("forum_moderate_thread_action.php?action=unlock&thread=".$thread->id."$tokens", "Unlock", "Unlock this thread"); } else { - show_button("forum_moderate_thread.php?action=lock&thread=".$thread->id."$tokens", "Lock", "Lock this thread"); + show_actionlist_button("forum_moderate_thread.php?action=lock&thread=".$thread->id."$tokens", "Lock", "Lock this thread"); } if ($forum->parent_type == 0) { - show_button("forum_moderate_thread.php?action=move&thread=".$thread->id."$tokens", "Move", "Move this thread to a different forum"); + show_actionlist_button("forum_moderate_thread.php?action=move&thread=".$thread->id."$tokens", "Move", "Move this thread to a different forum"); } - show_button("forum_moderate_thread.php?action=title&thread=".$thread->id."$tokens", "Edit title", "Edit thread title"); + show_actionlist_button("forum_moderate_thread.php?action=title&thread=".$thread->id."$tokens", "Edit title", "Edit thread title"); } +echo "
"; //End of action list // Display a box that allows the user to select sorting of the posts echo "
diff --git a/html/user/friend.php b/html/user/friend.php index 2a4b02f7fc..129580ca74 100644 --- a/html/user/friend.php +++ b/html/user/friend.php @@ -136,13 +136,10 @@ function handle_query($user) { echo "

$srcuser->name says: $friend->message

"; } echo " -

- Accept - (click if $srcuser->name is in fact a friend) -

- Decline - (click if $srcuser->name is not a friend) -

+

    "; + show_actionlist_button("friend.php?action=accept&userid=".$srcid, tra("Accept friendship"), tra("Click accept if %1 is in fact a friend", $srcuser->name)); + show_actionlist_button("friend.php?action=ignore&userid=".$srcid, tra("Decline"), tra("Click decline if %1 is not a friend", $srcuser->name)); + echo "

    "; page_tail(); } @@ -236,10 +233,10 @@ function handle_cancel_confirm($user) { echo " Are you sure you want to cancel your friendship with $destuser->name?

    - "; - show_button("friend.php?action=cancel&userid=$destid", "Yes", "Cancel friendship"); - echo "

    "; - show_button("home.php", "No", "Don't cancel friendship"); +

      "; + show_actionlist_button("friend.php?action=cancel&userid=$destid", tra("Yes"), "Cancel friendship"); + show_actionlist_button("home.php", tra("No"), "Stay friends"); + echo "
    "; page_tail(); } diff --git a/html/user/pm.php b/html/user/pm.php index 723860c9a7..9dcd46a36a 100644 --- a/html/user/pm.php +++ b/html/user/pm.php @@ -100,9 +100,10 @@ function do_inbox($logged_in_user) { echo "
    ".time_str($msg->date)."
".output_transform($msg->content, $options)."

"; $tokens = url_tokens($logged_in_user->authenticator); - show_button("pm.php?action=delete&id=$msg->id&$tokens", tra("Delete"), "Delete this message"); - show_button("pm.php?action=new&replyto=$msg->id", tra("Reply"), "Reply to this message"); - echo "

@@ -111,8 +112,7 @@ function do_inbox($logged_in_user) { Unselect all - - selected messages +