- user web: show date/time on friend request page

svn path=/trunk/boinc/; revision=23131
This commit is contained in:
David Anderson 2011-03-02 18:36:51 +00:00
parent b51aee4cdf
commit a191566a6a
2 changed files with 8 additions and 1 deletions

View File

@ -1227,3 +1227,9 @@ David 28 Feb 2011
forum_thread_status.php
client/
boinc_cmd.cpp
David 2 Mar 2011
- user web: show date/time on friend request page
html/user/
friend.php

View File

@ -126,8 +126,9 @@ function handle_query($user) {
$friend = BoincFriend::lookup($srcid, $user->id);
if (!$friend) error_page(tra("Request not found"));
page_head(tra("Friend request"));
echo time_str($friend->create_time)."<p>\n";
$x = user_links($srcuser, true);
echo tra("%1 has added you as a friend.", $x);
echo tra("%1 has requested friendship with you.", $x);
if (strlen($friend->message)) {
echo "<p>".tra("%1 says: %2", $srcuser->name, $friend->message)."</p>";
}