Display report link next to reference link

This commit is contained in:
Trevor Slocum 2020-11-13 12:53:14 -08:00
parent b225fc00a1
commit b28709f301
1 changed files with 9 additions and 7 deletions

View File

@ -346,10 +346,16 @@ function buildPost($post, $res) {
$return = "";
$threadid = ($post['parent'] == TINYIB_NEWTHREAD) ? $post['id'] : $post['parent'];
if ($res == TINYIB_RESPAGE) {
$reflink = "<a href=\"$threadid.html#{$post['id']}\">No.</a><a href=\"$threadid.html#q{$post['id']}\" onclick=\"javascript:quotePost('{$post['id']}')\">{$post['id']}</a>";
if (TINYIB_REPORT) {
$reflink = '<a href="imgboard.php?report=' . $post['id'] . '" title="' . __('Report') . '">R</a> ';
} else {
$reflink = "<a href=\"res/$threadid.html#{$post['id']}\">No.</a><a href=\"res/$threadid.html#q{$post['id']}\">{$post['id']}</a>";
$reflink = '';
}
if ($res == TINYIB_RESPAGE) {
$reflink .= "<a href=\"$threadid.html#{$post['id']}\">No.</a><a href=\"$threadid.html#q{$post['id']}\" onclick=\"javascript:quotePost('{$post['id']}')\">{$post['id']}</a>";
} else {
$reflink .= "<a href=\"res/$threadid.html#{$post['id']}\">No.</a><a href=\"res/$threadid.html#q{$post['id']}\">{$post['id']}</a>";
}
if ($post["stickied"] == 1) {
@ -466,10 +472,6 @@ EOF;
$return .= $filehtml;
}
if (TINYIB_REPORT) {
$return .= "&nbsp;[<a href=\"imgboard.php?report=${post["id"]}\">" . __("Report") . "</a>]";
}
if ($post['parent'] == TINYIB_NEWTHREAD && $res == TINYIB_INDEXPAGE) {
$return .= "&nbsp;[<a href=\"res/${post["id"]}.html\">" . __("Reply") . "</a>]";
}