summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-13 10:47:54 +0100
committerYorhel <git@yorhel.nl>2010-11-13 10:47:54 +0100
commit9a3e82df5241ebcba366a7a53c87b09defe9e156 (patch)
treef588beb48951422d10eb223f694e09b69d6c8f7b
parenta985f2316e50a7170229538efc907c232889bfcc (diff)
Homepage: Added feed icons
-rw-r--r--data/style.css3
-rw-r--r--lib/VNDB/Handler/Misc.pm11
-rw-r--r--static/f/icons.pngbin10352 -> 10825 bytes
3 files changed, 11 insertions, 3 deletions
diff --git a/data/style.css b/data/style.css
index f7b0ab72..09c44e4c 100644
--- a/data/style.css
+++ b/data/style.css
@@ -414,6 +414,7 @@ p.screenshots img {
#maincontent .mainbox.threelayout h1 a {
color: $boxtitle$;
}
+a.feed { float: right }
@@ -1161,6 +1162,7 @@ div#iv_view {
height: 11px;
opacity: 0.5;
}
+.icons.feed { width: 12px; height: 12px }
.icons.rtcomplete, .icons.rtpartial, .icons.rttrial { width: 11px; }
acronym.icons, acronym.uicons { cursor: default; }
a .icons { cursor: pointer }
@@ -1173,6 +1175,7 @@ a .icons { cursor: pointer }
.icons.gba { background-position: 0px -70px; }
.icons.ps3 { background-position: 0px -84px; }
.icons.p98 { background-position: 0px -98px; }
+.icons.feed { background-position: 0px -112px; }
.icons.dvd { background-position: -16px 0px; }
.icons.mac { background-position: -16px -14px; }
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 901e25e0..cbd1dc50 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -63,7 +63,8 @@ sub homepage {
# Recent changes
td;
h1;
- a href => '/hist', mt '_home_recentchanges';
+ a href => '/hist', mt '_home_recentchanges'; txt ' ';
+ a href => '/feeds/changes.atom'; cssicon 'feed'; end;
end;
my $changes = $self->dbRevisionGet(what => 'item user', results => 10, auto => 1);
ul;
@@ -82,7 +83,9 @@ sub homepage {
td;
my $an = $self->dbThreadGet(type => 'an', sort => 'id', reverse => 1, results => 2);
h1;
- a href => '/t/an', mt '_home_announcements';
+ a href => '/t/an', mt '_home_announcements'; txt ' ';
+ a href => '/feeds/announcements.atom'; cssicon 'feed'; end;
+
end;
for (@$an) {
my $post = $self->dbPostGet(tid => $_->{id}, num => 1)->[0];
@@ -98,7 +101,9 @@ sub homepage {
# Recent posts
td;
h1;
- a href => '/t', mt '_home_recentposts';
+ a href => '/t', mt '_home_recentposts'; txt ' ';
+ a href => '/feeds/posts.atom'; cssicon 'feed'; end;
+
end;
my $posts = $self->dbThreadGet(what => 'lastpost boardtitles', results => 10, sort => 'lastpost', reverse => 1, notusers => 1);
ul;
diff --git a/static/f/icons.png b/static/f/icons.png
index 3b761c85..e8d9f1f3 100644
--- a/static/f/icons.png
+++ b/static/f/icons.png
Binary files differ