diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.mako | 4 | ||||
-rw-r--r-- | templates/pages/changelog.mako | 19 | ||||
-rw-r--r-- | templates/pages/development.mako | 2 | ||||
-rw-r--r-- | templates/pages/download.mako | 3 |
4 files changed, 25 insertions, 3 deletions
diff --git a/templates/page.mako b/templates/page.mako index 625a05c..aa2aa51 100644 --- a/templates/page.mako +++ b/templates/page.mako @@ -20,7 +20,7 @@ ${page_text} ## functions -<%def name="h2()"> +<%def name="h2(tag='h2')"> <% if self.attr.uses_toc: c = capture(caller.body) @@ -32,7 +32,7 @@ ${page_text} else: name = "#" %> - <h2><a name="${name}"><span class="hstart">» </span></a>${caller.body()}</h2> + <${tag}><a name="${name}"><span class="hstart">» </span></a>${caller.body()}</${tag}> </%def> <%def name="toc()"> diff --git a/templates/pages/changelog.mako b/templates/pages/changelog.mako new file mode 100644 index 0000000..188b528 --- /dev/null +++ b/templates/pages/changelog.mako @@ -0,0 +1,19 @@ +<%! + title = "Changelog" + uses_toc = True +%> + +<%inherit file="/page.mako" /> +<%def name="preface()"> + <p> + This is a condensed changelog (starting with version <a href="#0.8.5">0.8.5</a>) for portato. The complete one can be found in the <a href="http://git.zakarum.de/portato.git/tree/doc/NEWS">sources</a>. + </p> + + <p> <strong>Note:</strong> Releases with a forth version number (e.g. <em>0.9.0.2</em>) is a bugfix release and therefore not mentioned extra. From <a href="#0.10">0.10</a> onwards, the third part is omitted. This means, that now everything with a third number is a bugfix release. + </p> +</%def> + +% for html, name in h.getChangelogs("/changelogs"): + <%self:h2 tag="h3">${name}</%self:h2> + ${html} +% endfor diff --git a/templates/pages/development.mako b/templates/pages/development.mako index 158c84a..4fb44a5 100644 --- a/templates/pages/development.mako +++ b/templates/pages/development.mako @@ -52,7 +52,7 @@ git checkout -b 0.13 origin/0.13 <%self:h2>Documentation</%self:h2> <p> - The code itself is documented (sometimes ^^). If you have questions, you can ask them via portato@necoro.net. + The code itself is documented (sometimes ^^). If you have questions, you can ask them via portato@necoro.net. But at least there is a condensed <a href=${"/changelog" | url}>changelog</a>. </p> <p> The software itself is not documented in any way. If you like to change this, drop me a mail :). I'd be glad. diff --git a/templates/pages/download.mako b/templates/pages/download.mako index 4a1776f..349c0fc 100644 --- a/templates/pages/download.mako +++ b/templates/pages/download.mako @@ -5,3 +5,6 @@ <p> In most cases, it should be ok to install portato via emerge. But if you want to download it by hand nevertheless, you can do it <a href="http://sourceforge.net/projects/portato/files/">via sourceforge.net</a>. </p> +<p> + A condensed changelog is available <a href=${"/changelog" | url}>here</a>. +</p> |