diff options
Diffstat (limited to 'lib/VNWeb/HTML.pm')
-rw-r--r-- | lib/VNWeb/HTML.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm index 80dae4b6..8ec6ea85 100644 --- a/lib/VNWeb/HTML.pm +++ b/lib/VNWeb/HTML.pm @@ -14,6 +14,7 @@ use JSON::XS; use VNDB::Config; use VNDB::BBCode; use VNDB::Skins; +use VNDB::Types; use VNWeb::Auth; use VNWeb::Validation; use VNWeb::DB; @@ -21,6 +22,7 @@ use VNDB::Func 'fmtdate'; our @EXPORT = qw/ clearfloat_ + platform_ debug_ join_ user_ user_displayname @@ -42,6 +44,12 @@ our @EXPORT = qw/ sub clearfloat_ { div_ class => 'clearfloat', '' } +# Platform icon +sub platform_ { + img_ src => config->{url_static}.'/f/plat/'.$_[0].'.svg', class => 'platicon', title => $PLATFORM{$_[0]}, undef; +} + + # Throw any data structure on the page for inspection. sub debug_ { return if !tuwf->debug; |