diff options
| author | Grégoire Détrez <gregoire.detrez@gu.se> | 2014-09-15 20:28:56 +0200 | 
|---|---|---|
| committer | Grégoire Détrez <gregoire.detrez@gu.se> | 2014-09-15 20:28:56 +0200 | 
| commit | c276c801329e51cfecc9309431501b1801783049 (patch) | |
| tree | fe958c2ce5bacdbff51a0be4957dbc31a634b501 | |
| parent | be78f8efb56f10e5e689c85b794fa62e28292fcc (diff) | |
Hide "last modified" if there is no date
| -rw-r--r-- | templates/page.tmpl | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/templates/page.tmpl b/templates/page.tmpl index 9bc54c2..c8298e5 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -111,15 +111,17 @@            </TMPL_LOOP>          </TMPL_IF>          <i> -          <span class="glyphicon glyphicon-calendar"></span> Last modified <TMPL_VAR MTIME> +          <TMPL_IF MTIME> +            <span class="glyphicon glyphicon-calendar"></span> Last modified <TMPL_VAR MTIME> +          </TMPL_IF>            <TMPL_IF HISTORYURL>              | <span class="glyphicon glyphicon-time"></span> <a href="<TMPL_VAR HISTORYURL>">History</a>            </TMPL_IF>            <TMPL_IF GETSOURCEURL> -          | <b><></b> <a href="<TMPL_VAR GETSOURCEURL>">Show source</a> +            | <b><></b> <a href="<TMPL_VAR GETSOURCEURL>">Show source</a>            </TMPL_IF>            <TMPL_IF GETSOURCEURL> -          | <span class="glyphicon glyphicon-comment"></span><a href="<TMPL_VAR DISCUSSIONURL>"> Discussion</a> +            | <span class="glyphicon glyphicon-comment"></span><a href="<TMPL_VAR DISCUSSIONURL>"> Discussion</a>            </TMPL_IF>          </i>        </p> | 
