OSDN Git Service

fix comment archive (/comment/yy/mm/dd/) to work
authorhylom <hylom@users.sourceforge.jp>
Fri, 22 Feb 2019 11:52:29 +0000 (20:52 +0900)
committerhylom <hylom@users.sourceforge.jp>
Fri, 22 Feb 2019 11:52:29 +0000 (20:52 +0900)
src/newslash_web/lib/Newslash/Web.pm
src/newslash_web/templates/archive/index_header.html.tt2

index 69f6856..1b2c357 100644 (file)
@@ -293,6 +293,10 @@ sub startup {
     $r->get('/submission/:year/:month/')->to('archive#submission');
     $r->get('/submission/')->to('archive#submission');
 
+    $r->get('/comment/:year/:month/:day/')->to('archive#comment');
+    $r->get('/comment/:year/:month/')->to('archive#comment');
+    $r->get('/comment/')->to('archive#comment');
+
     $r->get('/poll/:year/:month/')->to('archive#poll');
     $r->get('/poll/')->to('archive#poll');
 
index e5cce06..2e1e070 100644 (file)
@@ -80,6 +80,7 @@ IF n_mm < 10; n_mm = "0" _ n_mm; END;
     <a href="/story/[% yy %]/[% mm %]/[% dd %]/">記事</a> /
     <a href="/journal/[% yy %]/[% mm %]/[% dd %]/">日記</a> /
     <a href="/submission/[% yy %]/[% mm %]/[% dd %]/">タレコミ</a> / 
+    <a href="/comment/[% yy %]/[% mm %]/[% dd %]/">コメント</a> / 
     <a href="/poll/[% yy %]/[% mm %]/">国民投票</a>
   </div>