Add a couple comments to the templates
Add a couple comments to the templates

--- a/templates/commitdiff.tpl
+++ b/templates/commitdiff.tpl
@@ -5,6 +5,7 @@
  *
  *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
  *}
+ {* Nav *}
  <div class="page_nav">
    <a href="{$SCRIPT_NAME}?p={$project}&a=summary">summary</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h={$hash}">shortlog</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=log&h={$hash}">log</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=commit&h={$hash}">commit</a> | commitdiff | <a href="{$SCRIPT_NAME}?p={$project}&a=tree&h={$tree}&hb={$hash}">tree</a><br /><a href="{$SCRIPT_NAME}?p={$project}&a=commitdiff_plain&h={$hash}&hp={$hashparent}">plain</a>
  </div>
@@ -19,6 +20,7 @@
      {$line}<br />
    {/foreach}
    <br />
+   {* Diff each file changed *}
    {section name=difftree loop=$difftreelines}
      {if $difftreelines[difftree].status == "A"}
        <div class="diff_info">

--- a/templates/history.tpl
+++ b/templates/history.tpl
@@ -31,6 +31,7 @@
    </b>
  </div>
  <table cellspacing="0">
+   {* Display each history line *}
    {section name=history loop=$historylines}
      <tr class="{cycle values="light,dark"}">
        <td title="{$historylines[history].agestringage}"><i>{$historylines[history].agestringdate}</i></td>

--- a/templates/log.tpl
+++ b/templates/log.tpl
@@ -5,6 +5,7 @@
  *
  *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
  *}
+ {* Nav *}
  <div class="page_nav">
    <a href="{$SCRIPT_NAME}?p={$project}&a=summary">summary</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h={$hash}">shortlog</a> | log | <a href="{$SCRIPT_NAME}?p={$project}&a=commit&h={$hash}">commit</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=commitdiff&h={$hash}">commitdiff</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=tree&h={$hash}&hb={$hash}">tree</a>
    <br />
@@ -36,6 +37,7 @@
      <br /><br />
    </div>
  {/if}
+ {* Display each commit *}
  {section name=log loop=$commitlines}
    <div>
      <a href="{$SCRIPT_NAME}?p={$project}&a=commit&h={$commitlines[log].commit}" class="title"><span class="age">{$commitlines[log].agestring}</span>{$commitlines[log].title}

comments