Permalink
Browse files

in summary mode, link back to full page

  • Loading branch information...
moritz committed Sep 16, 2012
1 parent fbd5ae2 commit 58ea2c4e6bb564381b61da340bc5362b9ea9a0c1
Showing with 10 additions and 1 deletion.
  1. +1 −0 cgi/out.pl
  2. +2 −0 cgi/template/day.tmpl
  3. +7 −1 cgi/template/linkblock.tmpl
View
@@ -221,6 +221,7 @@ sub irclog_output {
CHANNEL => $channel,
MESSAGES => \@msg,
DATE => $date,
+ IS_SUMMARY => $summary,
);
# check if previous/next date exists in database
View
@@ -33,7 +33,9 @@
<TMPL_INCLUDE NAME='linkblock.tmpl'>
<p>All times shown according to <abbr title="Coordinated Universal Time">UTC</abbr>.</p>
+ <TMPL_UNLESS NAME=IS_SUMAMRY>
<div id="summary_container" />
+ </TMPL_UNLESS>
<TMPL_IF ADMIN>
<form method="post" action="<TMPL_VAR BASE_URL>spam.pl?date=<TMPL_VAR DATE>;channel=<TMPL_VAR CHANNEL>">
<p><input type="submit" value="Mark as spam" /></p>
@@ -14,7 +14,13 @@
NAME=DATE>">Plain-Text</a>
| <a href="<TMPL_VAR
NAME=BASE_URL>text.pl?channel=<TMPL_VAR NAME=CHANNEL>;date=<TMPL_VAR
- NAME=DATE>;reverse=1">plain, newest first</a>| <a href="<TMPL_VAR NAME=BASE_URL>out.pl?channel=<TMPL_VAR NAME=CHANNEL>;date=<TMPL_VAR NAME=DATE>;summary=1">summary</a>
+ NAME=DATE>;reverse=1">plain, newest first</a > |
+ <TMPL_IF NAME=IS_SUMMARY>
+ <a href="<TMPL_VAR NAME=BASE_URL><TMPL_VAR NAME=CHANNEL>/<TMPL_VAR
+ NAME=DATE>">full mode</a>
+ <TMPL_ELSE>
+ <a href="<TMPL_VAR NAME=BASE_URL>out.pl?channel=<TMPL_VAR NAME=CHANNEL>;date=<TMPL_VAR NAME=DATE>;summary=1">summary</a>
+ </TMPL_IF>
</TMPL_IF>
</p>

0 comments on commit 58ea2c4

Please sign in to comment.