From 7be1f5d8943339d8c1f0d02671a8d970889c1f23 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 25 Nov 2016 01:11:04 -0800 Subject: [PATCH] web: tweaks - highlight admins in msg boards using green stripe - show code in posts without scrollbars - default button size: sm --- html/inc/forum.inc | 4 ++-- html/inc/pm.inc | 1 - html/inc/text_transform.inc | 2 +- html/inc/util.inc | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 2020ca9fe3..39705d8ef2 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -555,7 +555,7 @@ function show_post( } else { $highlight = $is_posted_by_special; } - $class = $highlight?' class="bg-info" ':''; + $class = $highlight?' style="border-left: 5px solid LightGreen" ':''; echo " @@ -577,7 +577,7 @@ function show_post( $url = "pm.php?action=new&userid=".$user->id; $name = $user->name; - show_button($url, tra("Send message"), tra("Send %1 a private message",$name)); + show_button($url, tra("Send message"), tra("Send %1 a private message",$name)); echo '
'.tra("Joined: %1", gmdate('j M y', $user->create_time)), "
"; if (!isset($user->nposts)) { diff --git a/html/inc/pm.inc b/html/inc/pm.inc index 697c6f8cb7..1882ae41c4 100644 --- a/html/inc/pm.inc +++ b/html/inc/pm.inc @@ -60,7 +60,6 @@ function pm_team_form($user, $teamid, $error=null) { start_table(); echo $bbcode_html; echo "\n"; - echo "foobar"; echo ""; echo "\n"; end_table(); diff --git a/html/inc/text_transform.inc b/html/inc/text_transform.inc index e63b3cb8eb..f321ff6bd6 100644 --- a/html/inc/text_transform.inc +++ b/html/inc/text_transform.inc @@ -144,7 +144,7 @@ function replace_pre_code($text, $export) { $x = remove_br(substr($matches[0], 6, -7)); $x = htmlspecialchars($x, ENT_COMPAT, "UTF-8", false); $x = str_replace("[", "[", $x); - return "
$x
"; + return "
$x
"; }, $text ); diff --git a/html/inc/util.inc b/html/inc/util.inc index 252e8ad22d..20c8917839 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -800,7 +800,7 @@ function current_url() { // @param desc The title of the destination - typically used as a popup // @param class The optional CSS class of the button. Defaults to a standard button // -function show_button($url, $text, $desc=null, $class="btn btn-default btn-xs") { +function show_button($url, $text, $desc=null, $class="btn btn-default btn-sm") { if (!$desc) $desc = $text; echo "".$text."\n"; }