- web: appearance tweaks from Simek; fixes #1012

svn path=/trunk/boinc/; revision=22394
This commit is contained in:
David Anderson 2010-09-20 23:59:25 +00:00
parent 7f941b8cf6
commit d1e66f0427
11 changed files with 44 additions and 20 deletions

View File

@ -6699,3 +6699,19 @@ David 18 Sept 2010
db/
boinc_db.cpp
David 20 Sept 2010
- web: appearance tweaks from Simek; fixes #1012
html/
inc/
util.inc
user/
sample_index.php
main.css
edit_email_form.php
white.css
login_form.php
notices.phhp
edit_user_info_form.php
edit_forum_preferences_form.php

View File

@ -1458,7 +1458,8 @@ bool CLIENT_STATE::enforce_schedule() {
if (ncpus_used >= ncpus) {
if (log_flags.cpu_sched_debug) {
msg_printf(rp->project, MSG_INFO,
"[cpu_sched] all CPUs used, skipping %s",
"[cpu_sched] all CPUs used (%.2f > %d), skipping %s",
ncpus_used, ncpus,
rp->name
);
}

View File

@ -439,7 +439,7 @@ function friend_links($user) {
}
$title = tra("View the profile of %1", $user->name);
$alt = tra("Profile");
$x .= ' <a href="'.URL_BASE.'view_profile.php?userid='.$user->id.'"><img class="userimg" title="'.$title.'" align="top" src="'.$img_url.'" alt="'.$alt.'"></a><br>';
$x .= ' <a href="'.URL_BASE.'view_profile.php?userid='.$user->id.'"><img class="userimg" title="'.$title.'" src="'.$img_url.'" alt="'.$alt.'"></a><br>';
}
$x .= " <a href=\"".URL_BASE."show_user.php?userid=".$user->id."\">".$user->name."</a>";
if ($user->donated == 1) {
@ -458,7 +458,7 @@ function user_links($user) {
$x = "";
if ($user->has_profile) {
$img_url = URL_BASE."img/head_20.png";
$x .= ' <a href="'.URL_BASE.'view_profile.php?userid='.$user->id.'"><img class="userimg" title="View the profile of '.$user->name.'" align="top" src="'.$img_url.'" alt="Profile"></a>';
$x .= ' <a href="'.URL_BASE.'view_profile.php?userid='.$user->id.'"><img class="userimg" title="View the profile of '.$user->name.'" src="'.$img_url.'" alt="Profile"></a>';
}
$x .= " <a href=\"".URL_BASE."show_user.php?userid=".$user->id."\">".$user->name."</a>";
if ($user->donated == 1) {

View File

@ -34,8 +34,8 @@ echo "<form method=post action=edit_email_action.php>\n";
start_table();
row1(tra("Change the email address of your account"));
row2(tra("New email address").
"<br><font size=-2>".tra("Must be a valid address of the form 'name@domain'")."</font>",
"<input name=email_addr size=50 value='$email_text'>"
"<br><span class=note>".tra("Must be a valid address of the form 'name@domain'")."</span>",
"<input name=email_addr size=50 type=text value='$email_text'>"
);
// we need the password here not for verification,
@ -44,7 +44,7 @@ row2(tra("New email address").
row2(
tra("Password").
"<br><a href=".SECURE_URL_BASE."/edit_passwd_form.php><font size=-2>".tra("No password?")."</font></a>",
"<br><a href=".SECURE_URL_BASE."/edit_passwd_form.php><span class=note>".tra("No password?")."</span></a>",
"<input type=password name=passwd>"
);
row2("", "<input type=submit value='".tra("Change email address")."'>");

View File

@ -189,10 +189,10 @@ for ($i=0; $i<sizeof($filtered_userlist); $i++){
$forum_filtered_userlist .= "<input type =\"submit\" name=\"remove".$filtered_user->id."\" value=\"Remove\"> ".$filtered_user->id." - ".user_links($filtered_user)."<br>";
}
}
row2("Filtered users".
"<br><span class=note>Ignore message board posts and private messages from these users.</span>",
"$forum_filtered_userlist
<br>
<input type=\"text\" name=\"forum_filter_user\" size=12> User ID (For instance: 123456789)
<br><input type=\"submit\" name=\"add_user_to_filter\" value=\"Add user to filter\">
"

View File

@ -29,19 +29,19 @@ page_head(tra("Edit account information"));
echo "<form method=post action=edit_user_info_action.php>";
echo form_tokens($user->authenticator);
start_table();
row2(tra("Name %1 real name or nickname%2", "<br><font size=-2>", "</font>"),
"<input name=user_name size=30 value='$user->name'>"
row2(tra("Name %1 real name or nickname%2", "<br><span class=note>", "</span>"),
"<input name=user_name type=text size=30 value='$user->name'>"
);
row2(tra("URL %1 of your web page; optional%2", "<br><font size=-2>", "</font>"),
"http://<input name=url size=50 value='$user->url'>"
row2(tra("URL %1 of your web page; optional%2", "<br><span class=note>", "</span>"),
"http://<input name=url type=text size=50 value='$user->url'>"
);
row2_init(tra("Country"),
"<select name=country>"
);
print_country_select($user->country);
echo "</select></td></tr>\n";
row2(tra("Postal (ZIP) code %1 Optional%2", "<br><font size=-2>", "</font>"),
"<input name=postal_code size=20 value='$user->postal_code'>"
row2(tra("Postal (ZIP) code %1 Optional%2", "<br><span class=note>", "</span>"),
"<input name=postal_code type=text size=20 value='$user->postal_code'>"
);
row2("", "<input type=submit value='".tra("Update info")."'>");

View File

@ -40,7 +40,7 @@ echo "
";
start_table();
row2(tra("Email address:") . '<br><span class="note"><a href="get_passwd.php">'.tra("forgot email address?")."</a></span>",
"<input name=email_addr size=40 tabindex=1>");
"<input name=email_addr type=\"text\" size=40 tabindex=1>");
row2(tra("Password:") . '<br><span class="note"><a href="get_passwd.php">' . tra("forgot password?") . "</a></span>",
'<input type="password" name="passwd" size="40" tabindex="2">'
);

View File

@ -76,11 +76,13 @@ td.heading {
td.fieldname {
text-align: right;
padding-right: 10px;
font-size: 14px;
margin: 2px 0;
}
td.fieldvalue {
margin: 2px 0;
vertical-align: top;
}
td.fieldname_error {
@ -118,8 +120,9 @@ input[type="submit"],
margin: 2px;
border-width: 1px;
border-style: solid;
font-size: 12px;
font-size: 13px;
font-weight: normal;
cursor: pointer;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
@ -135,7 +138,7 @@ a.button {
margin: 0 4px;
border-width: 1px;
border-style: solid;
font-size: 12px;
font-size: 13px;
font-weight: normal;
white-space: nowrap;
-moz-border-radius: 5px;
@ -152,12 +155,12 @@ input.btn:hover,
text-decoration: none;
}
input[type="text"], select, textarea {
input[type="text"], input[type="password"] select, textarea {
border-width: 1px;
border-style: solid;
margin: 2px 4px;
padding: 3px;
font-size: 12px;
font-size: 14px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
@ -361,11 +364,12 @@ span.page_title {
span.note {
font-weight: normal;
font-style: italic;
font-size: 0.9em;
}
span.news_date {
font-size: 0.9em;
font-size: 0.8em;
}
span.news_title,

View File

@ -16,6 +16,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// Generate RSS feed of notices for this user
require_once("../inc/util.inc");
require_once("../inc/news.inc");
require_once("../inc/notify.inc");

View File

@ -49,7 +49,7 @@ function show_nav() {
If you're already running BOINC, select Attach to Project.
If not, <a target=\"_new\" href=\"http://boinc.berkeley.edu/download.php\">download BOINC</a>.
<li> When prompted, enter <br><b>".$master_url."</b>
<li> If you're running a command-line or pre-5.0 version of BOINC,
<li> If you're running a command-line version of BOINC,
<a href=\"create_account_form.php\">create an account</a> first.
<li> If you have any problems,
<a target=\"_new\" href=\"http://boinc.berkeley.edu/help.php\">get help here</a>.

View File

@ -42,6 +42,7 @@ td.heading {
td.fieldname {
background-color: #eee;
color: #333;
}
td.fieldname_error,