summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-01-27 03:57:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-01-27 03:57:38 +0000
commit03d0c2d5c3d455bbfba524b59d6269ae446351af (patch)
tree9890e0784e61b4f7f75a015e3ff8687dcdb0f234 /templates
parentbc25aa8141c287e6db6a2dc47b04fc30d3cf50ad (diff)
downloadampache-03d0c2d5c3d455bbfba524b59d6269ae446351af.tar.gz
ampache-03d0c2d5c3d455bbfba524b59d6269ae446351af.tar.bz2
ampache-03d0c2d5c3d455bbfba524b59d6269ae446351af.zip
fix editing preferences, and colorize the debug page a tad for fun
Diffstat (limited to 'templates')
-rw-r--r--templates/base.css12
-rw-r--r--templates/show_debug.inc.php3
-rw-r--r--templates/show_user_preferences.inc.php3
3 files changed, 15 insertions, 3 deletions
diff --git a/templates/base.css b/templates/base.css
index 17a43d97..db4d7408 100644
--- a/templates/base.css
+++ b/templates/base.css
@@ -24,6 +24,7 @@
/*****************
* Tag Definitions
*****************/
+
.tag_size1 {
font-size:.6em;
}
@@ -42,5 +43,12 @@ a.tag_size1, a.tag_size2, a.tag_size3, a.tag_size4 { text-decoration: none; }
.hover-add:hover { font-weight:900; }
.hover-remove:hover { text-decoration:line-through;}
-
-
+/*****************
+ * Generic / Misc
+ *****************/
+.item_on {
+ color: #347C17;
+}
+.item_off {
+ color: #FF0000;
+}
diff --git a/templates/show_debug.inc.php b/templates/show_debug.inc.php
index a3b0490a..f8a9a71d 100644
--- a/templates/show_debug.inc.php
+++ b/templates/show_debug.inc.php
@@ -94,6 +94,9 @@
}
$value = $string;
}
+ if (Preference::is_boolean($key)) {
+ $value = print_boolean($value);
+ }
?>
<tr class="<?php echo flip_class(); ?>">
<td valign="top"><strong><?php echo $key; ?></strong></td>
diff --git a/templates/show_user_preferences.inc.php b/templates/show_user_preferences.inc.php
index 8ef67376..a948a078 100644
--- a/templates/show_user_preferences.inc.php
+++ b/templates/show_user_preferences.inc.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved
This program is free software; you can redistribute it and/or
@@ -48,6 +48,7 @@
<td>
<div class="formValidation">
<input class="button" type="submit" value="<?php echo _('Update Preferences'); ?>" />
+ <?php echo Core::form_register('update_preference'); ?>
<input type="hidden" name="user_id" value="<?php echo scrub_out($_REQUEST['user_id']); ?>" />
</div>
</td>