Files
postgres-web/templates/docs/docspage.html
Magnus Hagander a1c89c082b Fix doc-comments link to use the major version number only
This was broken in commit 8e458731cb when
an actual reference between documents and versions was created.
2013-09-14 09:50:04 +02:00

129 lines
5.4 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
<head>
<title>PostgreSQL: Documentation: {{page.display_version}}: {{page.title}}</title>
<style type="text/css" media="screen" title="Normal Text">@import url("/media/css/docs.css");</style>
<link rel="alternate stylesheet" media="screen" href="/media/css/docs_large.css" type="text/css" title="Large Text" />
<script type="text/javascript" src="/media/js/styleswitcher.js"></script>
<script type="text/javascript" src="/media/js/monospacefix.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1345454-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="docHeader">
<div id="docHeaderLogo">
<a href="/" title="PostgreSQL"><img src="/media/img/docs/hdr_logo.png" width="206" height="80" alt="PostgreSQL" /></a>
</div>
</div>
<div id="docContainerWrap">
<div id="docContainer">
<div id="docNavSearchContainer">
<div id="docSearch">
<form action="/search/" method="get">
<div>
<input type="hidden" name="u" value="/docs/{{page.display_version}}/" />
<label for="q">Search Documentation:&nbsp;</label><input type="text" id="q" name="q" size="20" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" /><input id="submit" type="submit" value="Search" />
</div>
</form>
<div id="docTextSize">Text Size: <a href="#" onclick="setActiveStyleSheet('Normal Text'); return false;" onkeypress="return false;" title="Normal Text Size">Normal</a> / <a href="#" onclick="setActiveStyleSheet('Large Text'); return false;" onkeypress="return false;" title="Large Text Size">Large</a></div>
</div>
<div id="docNav">
<a href="/" title="Home">Home</a> &rarr; <a href="/docs" title="Documentation">Documentation</a> &rarr; <a href="/docs/manuals" title="Manuals">Manuals</a> &rarr; <a href="/docs/{{page.display_version}}/{{doc_type}}/{{doc_index_filename}}">PostgreSQL {{page.display_version}}</a>{%if loaddate%} ({{loaddate|date:"Y-m-d H:i:s"}}){%endif%}
</div>
<div id="docVersions">
This page in other versions:
{%if supported_versions%}
{%for ver in supported_versions %}
{%if not forloop.first %}/{%endif%}
{%if ver.version == page.version %}
<b>{{ver.display_version}}</b>
{%else%}
<a href="/docs/{{ver.display_version}}/{{doc_type}}/{{ver.file}}" title="This page in version {{ver.display_version}}">{{ver.display_version}}</a>
{%endif%}
{%endfor%}
{%endif%}
{%if devel_versions%}
{%if supported_versions%}&nbsp;|&nbsp; {%endif%}Development versions:
{%for ver in devel_versions %}
{%if not forloop.first %}/{%endif%}
{%if ver.version == page.version %}
<b>{{ver.display_version}}</b>
{% else %}
<a href="/docs/{{ver.display_version}}/{{doc_type}}/{{ver.file}}" title="This page in version {{ver.display_version}}" rel="nofollow">{{ver.display_version}}</a>
{%endif%}
{%endfor%}
{%endif%}
{%if unsupported_versions%}
{%if supported_versions or devel_versions%}&nbsp;|&nbsp; {%endif%}Unsupported versions:
{%for ver in unsupported_versions %}
{%if not forloop.first %}/{%endif%}
{%if ver.version == page.version %}
<b>{{ver.display_version}}</b>
{% else %}
<a href="/docs/{{ver.display_version}}/{{doc_type}}/{{ver.file}}" title="This page in version {{ver.display_version}}" rel="nofollow">{{ver.display_version}}</a>
{%endif%}
{%endfor%}
{%endif%}
</div>
</div>
<div id="docContent">
{{page.content|safe}}
</div>
<div id="docComments">
{%for comment in comments%}
{%if forloop.first%}<h2>Comments</h2>{%endif%}
<br />
<div class="txtCommentsWrap">
<div class="txtCommentsContent">
<div class="txtCommentsPoster">{{comment.poster}}</div>
<div class="txtCommentsDate">{{comment.posted_at}}</div>
<br style="clear: both;" />
</div>
<div class="txtCommentsComment">{{comment.comment|linebreaks}}</div>
</div>
{%endfor%}
{%if can_comment%}
<h2>Add Comment</h2>
<p>
Please use this form to add your own comments regarding your experience with
particular features of PostgreSQL, clarifications of the documentation, or
hints for other users. Please note, this is <strong>not</strong> a support
forum, and your IP address will be logged. If you have a question or need help,
please see the <a href="http://www.postgresql.org/docs/faq/">faq</a>, try a
<a href="http://www.postgresql.org/community/lists/">mailing list</a>, or join
us on <a href="http://www.postgresql.org/community/irc">IRC</a>.
Note that submissions containing URLs or other keywords commonly found in
'spam' comments may be silently discarded. Please contact the
<a href="mailto:webmaster@postgresql.org">webmaster</a> if you think this
is happening to you in error.
</p>
<p>
Proceed to the <a href="/account/comments/new/{{page.version.tree}}/{{page.file}}/" rel="nofollow">comment form</a>.
</p>
{%endif%}
</div>
<div id="docFooter">
<a href="{{link_root}}/about/privacypolicy">Privacy Policy</a> |
<a href="{{link_root}}/about/">About PostgreSQL</a><br/>
Copyright &copy; 1996-{% now "Y" %} The PostgreSQL Global Development Group
</div>
</div>
</div>
</body>
</html>