mirror of https://github.com/BOINC/boinc.git
web: fix column widths in several places
This commit is contained in:
parent
3641a319fc
commit
330a8aa95b
|
@ -204,6 +204,10 @@ function show_team_forum_title($forum, $thread=null, $link_thread=false) {
|
|||
echo "</span>";
|
||||
}
|
||||
|
||||
// start a table containing messages, where the layout is fixed
|
||||
// (to accommodate long [pre] lines)
|
||||
// and the left column (author info) has fixed size
|
||||
//
|
||||
function start_forum_table($headings) {
|
||||
$a = array();
|
||||
foreach ($headings as $h) {
|
||||
|
@ -1229,7 +1233,8 @@ function is_moderator($user, $forum) {
|
|||
}
|
||||
|
||||
function show_thread_and_context_header() {
|
||||
start_forum_table(array(
|
||||
start_table('table-striped');
|
||||
row_heading_array(array(
|
||||
tra("Thread"),
|
||||
tra("Posts"),
|
||||
tra("Author"),
|
||||
|
|
|
@ -134,7 +134,8 @@ function show_forum($forum, $start, $sort_style, $user) {
|
|||
$start
|
||||
);
|
||||
echo $page_nav;
|
||||
start_forum_table(array(
|
||||
start_table('table-striped');
|
||||
row_heading_array(array(
|
||||
"",
|
||||
tra("Threads"),
|
||||
tra("Posts"),
|
||||
|
|
|
@ -42,7 +42,8 @@ foreach ($categories as $category) {
|
|||
show_forum_title($category, null, null);
|
||||
echo "<p>";
|
||||
show_mark_as_read_button($user);
|
||||
start_forum_table(array(
|
||||
start_table('table-striped');
|
||||
row_heading_array(array(
|
||||
tra("Topic"),
|
||||
tra("Questions"),
|
||||
tra("Last post")
|
||||
|
|
|
@ -90,7 +90,8 @@ foreach ($categories as $category) {
|
|||
show_forum_title($category, NULL, NULL);
|
||||
echo "<p>";
|
||||
show_mark_as_read_button($user);
|
||||
start_forum_table(array(
|
||||
start_table('table-striped');
|
||||
row_heading_array(array(
|
||||
tra("Topic"),
|
||||
tra("Threads"),
|
||||
tra("Posts"),
|
||||
|
|
|
@ -123,6 +123,7 @@ if ($preview == tra("Preview")) {
|
|||
start_table();
|
||||
show_message_row($thread, $parent_post);
|
||||
end_table();
|
||||
|
||||
if ($parent_post) {
|
||||
start_forum_table(array(tra("Author"), tra("Message")));
|
||||
show_post(
|
||||
|
@ -133,8 +134,6 @@ if ($parent_post) {
|
|||
show_posts($thread, $forum, 0, 0, CREATE_TIME_NEW, 0, $logged_in_user);
|
||||
}
|
||||
|
||||
end_table();
|
||||
|
||||
page_tail();
|
||||
|
||||
function show_message_row($thread, $parent_post) {
|
||||
|
|
|
@ -102,7 +102,7 @@ function show_list($list) {
|
|||
}
|
||||
echo "
|
||||
<td><p class=\"text-muted\">".sanitize_html($team->description)."</p></td>
|
||||
<td>".format_credit($team->expavg_credit)."</td>
|
||||
<td align=right>".format_credit($team->expavg_credit)."</td>
|
||||
<td>$type</td>
|
||||
<td>$team->country</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue