summaryrefslogtreecommitdiff
path: root/lib/VNDB/Func.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-11 16:47:39 +0100
committerYorhel <git@yorhel.nl>2008-12-11 16:47:39 +0100
commit739327d3d50b7cae9f9cb938fa25129ae34e78cb (patch)
tree526eb94147223f1aedc70e873b273f0ab3e15d80 /lib/VNDB/Func.pm
parent0514545451f9955cbdcdfed3137ac7e7888d6269 (diff)
Basic userpage + recent votes to VN pages + long-object-float bugfix
These changes are all pretty much related, so couldn't really do that in multiple commits.
Diffstat (limited to 'lib/VNDB/Func.pm')
-rw-r--r--lib/VNDB/Func.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm
index 52aa16a4..0fb0e6a1 100644
--- a/lib/VNDB/Func.pm
+++ b/lib/VNDB/Func.pm
@@ -3,9 +3,10 @@ package VNDB::Func;
use strict;
use warnings;
+use YAWF ':html';
use Exporter 'import';
use POSIX 'strftime';
-our @EXPORT = qw| shorten date datestr monthstr userstr bb2html gtintype liststat |;
+our @EXPORT = qw| shorten date datestr monthstr userstr bb2html gtintype liststat clearfloat |;
# I would've done this as a #define if this was C...
@@ -186,5 +187,11 @@ sub liststat {
}
+# Clears a float, to make sure boxes always have the correct height
+sub clearfloat {
+ div class => 'clearfloat', '';
+}
+
+
1;