Commit 1ff33e42 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

display 'add new image' button if no images are uploaded yet

parent d3ba4b69
......@@ -286,8 +286,8 @@ div.login form input[type="text"], div.login form input[type="password"] {
*.warning {
height: auto;
min-height: 50px;
border: solid 1px #DDD;
padding: 2px;
border: solid 1px #FFF;
padding: 10px;
background-image: url(../pics/bg_warning.png);
background-repeat: repeat-x;
}
......@@ -301,8 +301,8 @@ p.warning {
*.info {
height: auto;
min-height: 50px;
border: solid 1px #DDD;
padding: 2px;
border: solid 1px #FFF;
padding: 10px;
background-image: url(../pics/bg_info.png);
background-repeat: repeat-x;
}
......
......@@ -132,7 +132,7 @@
// If there are no tests for this user, display a message instead of the table:
if ($nrows == 0) {
echo "<p class='warning'><img alt='' src='pics/icons/att.png'>No images uploaded yet</p>";
echo "<p class='warning'><img alt='' src='pics/icons/att.png'>No images uploaded yet. You can add your first test image <a style='color:#666666;text-decoration:none;' href='newimage.php'>here</a>.</p>";
}
// If there are tests for this user, display them (with alternating row coloring):
else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment