OSDN Git Service

/archive: hide advertise when no contents (#7688)
authorhylom <hylom@users.osdn.me>
Fri, 7 Jun 2019 17:16:13 +0000 (17:16 +0000)
committerhylom <hylom@users.osdn.me>
Fri, 7 Jun 2019 17:16:13 +0000 (17:16 +0000)
src/newslash_web/lib/Newslash/Web/Controller/Archive.pm

index 14962b1..34eb328 100644 (file)
@@ -208,6 +208,7 @@ sub _render_archive {
               next_month => $next_month,
               prev_month_date => $prev_month_date,
               next_month_date => $next_month_date,
+              no_ad => (@items == 0),
               );
 
     if (@$items == 0) {