mirror of https://github.com/BOINC/boinc.git
web: tweaks
- highlight admins in msg boards using green stripe - show code in posts without scrollbars - default button size: sm
This commit is contained in:
parent
28a8014df0
commit
7be1f5d894
|
@ -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 "
|
||||
<tr>
|
||||
|
@ -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 '<br>'.tra("Joined: %1", gmdate('j M y', $user->create_time)), "<br>";
|
||||
|
||||
if (!isset($user->nposts)) {
|
||||
|
|
|
@ -60,7 +60,6 @@ function pm_team_form($user, $teamid, $error=null) {
|
|||
start_table();
|
||||
echo $bbcode_html;
|
||||
echo "<tr><td>\n";
|
||||
echo "foobar";
|
||||
echo "<textarea name=\"content\" class=\"form-control\" rows=\"18\">$content</textarea>";
|
||||
echo "</td></tr>\n";
|
||||
end_table();
|
||||
|
|
|
@ -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 "<pre style=\"width:800px;overflow:scroll\">$x</pre>";
|
||||
return "<pre style=\"white-space:pre-wrap; \">$x</pre>";
|
||||
},
|
||||
$text
|
||||
);
|
||||
|
|
|
@ -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 "<a href=\"".$url."\" title=\"$desc\" class=\"".$class."\">".$text."</a>\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue