mirror of https://github.com/BOINC/boinc.git
- web: when showing team forums, give link back to forum index
svn path=/trunk/boinc/; revision=14303
This commit is contained in:
parent
235ea7fdea
commit
2c5666df86
|
@ -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
|
||||
|
|
|
@ -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=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>";
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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>";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue