mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5122
This commit is contained in:
parent
0fd0d4d551
commit
335af90e5f
|
@ -22720,3 +22720,9 @@ David 14 Jan 2005
|
|||
|
||||
html/inc/
|
||||
forum.inc
|
||||
|
||||
David 14 Jan 2005
|
||||
- fix to fix in msg board code
|
||||
|
||||
html/inc/
|
||||
forum_show.inc
|
||||
|
|
|
@ -14,7 +14,7 @@ function show_page_nav($forum) {
|
|||
$totalPages = ceil($forum->threads / $threads_per_page);
|
||||
$curPage = floor($_GET['start'] / $threads_per_page);
|
||||
|
||||
if ($total_pages == 0) {
|
||||
if ($totalPages == 2) {
|
||||
$pages = array(0, 1);
|
||||
} else {
|
||||
$pages = array(0, 1, 2);
|
||||
|
|
|
@ -446,6 +446,7 @@ void write_team(TEAM& team, FILE* f, bool detail) {
|
|||
fprintf(f,
|
||||
"<team>\n"
|
||||
" <id>%d</id>\n"
|
||||
" <type>%d</type>\n"
|
||||
" <name>%s</name>\n"
|
||||
" <userid>%d</userid>\n"
|
||||
" <total_credit>%f</total_credit>\n"
|
||||
|
@ -453,6 +454,7 @@ void write_team(TEAM& team, FILE* f, bool detail) {
|
|||
" <expavg_time>%f</expavg_time>\n"
|
||||
" <nusers>%d</nusers>\n",
|
||||
team.id,
|
||||
team.type,
|
||||
name.c_str(),
|
||||
team.userid,
|
||||
team.total_credit,
|
||||
|
@ -461,6 +463,16 @@ void write_team(TEAM& team, FILE* f, bool detail) {
|
|||
team.nusers
|
||||
);
|
||||
|
||||
// show founder name since that user might not be active
|
||||
//
|
||||
retval = user.lookup_id(team.userid);
|
||||
if (!retval) {
|
||||
fprintf(f,
|
||||
" <founder_name>%s</founder_name>\n",
|
||||
user.name
|
||||
);
|
||||
}
|
||||
|
||||
fprintf(f,
|
||||
" <create_time>%d</create_time>\n",
|
||||
team.create_time
|
||||
|
|
Loading…
Reference in New Issue