- web: when showing team forums, give link back to forum index

svn path=/trunk/boinc/; revision=14303
This commit is contained in:
David Anderson 2007-11-26 04:12:15 +00:00
parent 235ea7fdea
commit 2c5666df86
7 changed files with 31 additions and 8 deletions

View File

@ -11682,3 +11682,16 @@ David 25 Nov 2007
edit_forum_preferences_forum.php
team_display.php
user_search.php
David 25 Nov 2007
- web: when showing team forums, give link back to forum index
html/
inc/
forum.inc
user/
forum_edit.php
forum_forum.php
forum_reply.php
forum_subscribe.php
forum_thread.php

View File

@ -154,13 +154,22 @@ function show_forum_title($category, $forum, $thread, $link_thread=false) {
}
}
function show_team_forum_title($forum, $thread=null) {
function show_team_forum_title($forum, $thread=null, $link_thread=false) {
$team = BoincTeam::lookup_id($forum->category);
echo "<span class=title>
<a href=team_forum.php?teamid=$team->id>$team->name message board</a>
<a href=forum_index.php>Message boards</a> :
";
if ($thread) {
echo " : <a href=forum_thread.php?id=$thread->id>$thread->title</a>";
echo "
<a href=team_forum.php?teamid=$team->id>$team->name message board</a>
";
if ($link_thread) {
echo " : <a href=forum_thread.php?id=$thread->id>$thread->title</a>";
} else {
echo " : $thread->title";
}
} else {
echo "$team->name message board";
}
echo "</span>";
}

View File

@ -75,7 +75,7 @@ case 0:
show_forum_title($category, $forum, $thread);
break;
case 1:
show_team_forum_title($forum);
show_team_forum_title($forum, $thread);
break;
}

View File

@ -59,6 +59,7 @@ case 1:
$team = BoincTeam::lookup_id($forum->category);
page_head("Team message board for <a href=team_display.php?teamid=$team->id>$team->name</a>");
show_forum_header($user);
show_team_forum_title($forum);
break;
}

View File

@ -65,7 +65,7 @@ case 0:
show_forum_title($category, $forum, $thread);
break;
case 1:
show_team_forum_title($forum);
show_team_forum_title($forum, $thread);
break;
}
echo "<p>";

View File

@ -18,7 +18,7 @@ function show_title($forum, $thread) {
show_forum_title($category, $forum, $thread);
break;
case 1:
show_team_forum_title($forum);
show_team_forum_title($forum, $thread);
break;
}
}

View File

@ -72,7 +72,7 @@ case 0:
show_forum_title($category, $forum, $thread);
break;
case 1:
show_team_forum_title($forum);
show_team_forum_title($forum, $thread);
break;
}
@ -175,7 +175,7 @@ case 0:
show_forum_title($category, $forum, $thread);
break;
case 1:
show_team_forum_title($forum);
show_team_forum_title($forum, $thread);
break;
}