Update Documentation and Bug Report pages to use modern design.

This commit is contained in:
Jonathan S. Katz
2018-04-15 23:44:49 -04:00
parent 3ef92d9702
commit 75feea1843
6 changed files with 82 additions and 88 deletions

View File

@ -51,11 +51,12 @@ def submitbug(request):
return render_pgweb(request, 'support', 'base/form.html', { return render_pgweb(request, 'support', 'base/form.html', {
'form': form, 'form': form,
'formitemtype': 'bug report', 'formitemtype': 'bug report',
'formtitle': 'Submit Bug Report <i class="fas fa-bug"></i>',
'operation': 'Submit', 'operation': 'Submit',
'form_intro': template_to_string('misc/bug_header.html', { 'form_intro': template_to_string('misc/bug_header.html', {
'supportedversions': versions, 'supportedversions': versions,
}), }),
'savebutton': 'Create report and send email', 'savebutton': 'Submit Report and Send Email',
}) })

View File

@ -2,34 +2,31 @@
{%block title%}Manual Archive{%endblock%} {%block title%}Manual Archive{%endblock%}
{%block contents%} {%block contents%}
<h1>Manual Archive</h1> <h1>Manual Archive <i class="fas fa-book"></i></h1>
<p>Following are links to manuals (both online and printable versions) for PostgreSQL releases that are no longer supported. <p>Following are links to manuals (both online and printable versions) for PostgreSQL releases that are no longer supported.
If you are still using any of these releases, you are strongly advised to upgrade.</p> If you are still using any of these releases, you are strongly advised to upgrade.</p>
<div class="tblBasic"> <table class="table table-striped">
<table border="0" cellpadding="0" cellspacing="0" class="tblBasicGrey"> <thead class="thead-light">
<tr> <tr>
<th class="colMid">Online Version</th> <th>Online Version</th>
<th class="colLast">PDF Version</th> <th>PDF Version</th>
</tr> </tr>
</thead>
{%for v in versions%} <tbody>
<tr{%if forloop.last%} class="lastrow"{%endif%}> {%for v in versions%}
<td class="colMid"> <tr{%if forloop.last%}{%endif%}>
<ul> <td>
<li><a href="/docs/{{v.numtree}}/static/{{v.indexname}}">{{v.treestring}}</a></li> <a href="/docs/{{v.numtree}}/static/{{v.indexname}}">{{v.treestring}}</a>
</ul>
</td> </td>
<td class="colLast"> <td>
<ul> {%if v.a4pdf%}Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-A4.pdf">A4 PDF</a> <span class="txtMediumGrey">({{v.a4pdf|filesizeformat}})</span>{%endif%}
{%if v.a4pdf%}<li>Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-A4.pdf">A4 PDF</a> <span class="txtMediumGrey">({{v.a4pdf|filesizeformat}})</span></li>{%endif%} {%if v.uspdf%}Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-US.pdf">US PDF</a> <span class="txtMediumGrey">({{v.uspdf|filesizeformat}})</span>{%endif%}
{%if v.uspdf%}<li>Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-US.pdf">US PDF</a> <span class="txtMediumGrey">({{v.uspdf|filesizeformat}})</span></li>{%endif%} {%if not v.a4pdf and not v4.uspdf%}PDF version not available{%endif%}
{%if not v.a4pdf and not v4.uspdf%}<li>PDF version not available</li>{%endif%}
</ul>
</td> </td>
</tr> </tr>
{%endfor%} {%endfor%}
</tbody>
</table> </table>
</div>
{%endblock%} {%endblock%}

View File

@ -1,42 +1,41 @@
{%extends "base/page.html"%} {%extends "base/page.html"%}
{%block title%}Documentation{%endblock%} {%block title%}Documentation{%endblock%}
{%block contents%} {%block contents%}
<div id="pgDocsWrap">
<div id="pgDocs">
<h1>Documentation</h1>
<p>There is a wealth of PostgreSQL information available online. This section contains <a href="/docs/manuals/">current</a> <div class="row">
and <a href="/docs/manuals/archive/">archived</a> manuals for PostgreSQL users, as well as <div class="col-md-9">
<a href="/docs/faq/">frequently asked questions</a>.</p> <section>
<h1>Documentation <i class="far fa-file-alt"></i></h1>
<p>You can learn <a href="/docs/9.6/static/release-9-6.html">what's new</a> in the latest release, and view a listing of <a href="/docs/books/">books</a> </section>
written about PostgreSQL (some of which are available in their entirety online). <p>This section contains <a href="/docs/manuals/">current</a>
<a href="https://wiki.postgresql.org">Technical documentation</a> is also available in this section, or you can check <a href="/support/security/">Security Information</a>.</p> and <a href="/docs/manuals/archive/">archived</a> manuals for PostgreSQL users. You can read the <a href="/docs/current/static/release.html">release notes</a>, and view a listing of <a href="/docs/books/">books</a>
written about PostgreSQL.</p>
</div> </div>
</div> <div class="col-md-3">
<section>
<div id="pgQuickDocsWrap"> <h2>Online Manuals</h2>
<div id="pgQuickDocs"> </section>
<dl> <dl>
<dt>Online Manuals</dt>
<dd> <dd>
<ul> <ul>
{%for v in versions%} {% for version in versions %}
<li><a href="/docs/{{v.numtree}}/static/index.html">{{v.treestring}}</a></li> <li>
{%endfor%} <a href="/docs/{{ version.numtree }}/static/index.html">{{ version.treestring }}</a>
</li>
{%endfor%}
</ul> </ul>
</dd> </dd>
<dt>Translated Manuals</dt> <dt>Translated Manuals</dt>
<dd> <dd>
<ul> <ul>
<li><a href="http://docs.postgresql.fr">French</a></li> <li><a href="http://docs.postgresql.fr" target="_blank">French</a></li>
<li><a href="http://www.postgresql.jp/document/">Japanese</a></li> <li><a href="http://www.postgresql.jp/document/" target="_blank">Japanese</a></li>
<li><a href="https://postgrespro.ru/docs/postgresql">Russian</a></li> <li><a href="https://postgrespro.ru/docs/postgresql" target="_blank">Russian</a></li>
</ul> </ul>
</dd> </dd>
<dd><p></p><a href="/docs/manuals/">More manuals</a></dd> <dd><p></p><a href="/docs/manuals/">More manuals</a></dd>
</dl> </dl>
</div> </div>
</div> </div>
{%endblock%} {%endblock%}

View File

@ -2,34 +2,31 @@
{%block title%}Manuals{%endblock%} {%block title%}Manuals{%endblock%}
{%block contents%} {%block contents%}
<h1>Manuals</h1> <h1>Manuals <i class="fas fa-book"></i></h1>
<p></p>
<div class="tblBasic"> <table class="table table-striped">
<table border="0" cellpadding="0" cellspacing="0" class="tblBasicGrey"> <thead class="thead-light">
<tr> <tr>
<th class="colMid">Online Version</th> <th>Online Version</th>
<th class="colLast">PDF Version</th> <th>PDF Version</th>
</tr> </tr>
{%for v in versions%} </thead>
<tr{%if forloop.last%} class="lastrow"{%endif%}> <tbody>
<td class="colMid"> {%for v in versions%}
<ul> <tr{%if forloop.last%}{%endif%}>
<li><a href="/docs/{{v.numtree}}/static/index.html">{{v.treestring}}</a></li> <td>
</ul> <a href="/docs/{{v.numtree}}/static/index.html">{{v.treestring}}</a>
</td> </td>
<td class="colLast"> <td>
{%if v.a4pdf or v.uspdf%} {%if v.a4pdf or v.uspdf%}
<ul> {%if v.a4pdf%}Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-A4.pdf">A4 PDF</a> <span class="txtMediumGrey">({{v.a4pdf|filesizeformat}})</span>{%endif%}
{%if v.a4pdf%}<li>Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-A4.pdf">A4 PDF</a> <span class="txtMediumGrey">({{v.a4pdf|filesizeformat}})</span></li>{%endif%} {%if v.uspdf%}Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-US.pdf">US PDF</a> <span class="txtMediumGrey">({{v.uspdf|filesizeformat}})</span>{%endif%}
{%if v.uspdf%}<li>Comprehensive Manual: <a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-US.pdf">US PDF</a> <span class="txtMediumGrey">({{v.uspdf|filesizeformat}})</span></li>{%endif%} {%if not v.a4pdf and not v4.uspdf%}PDF version not available{%endif%}
</ul>
{%endif%} {%endif%}
</td> </tr>
</tr> {%endfor%}
{%endfor%} </tbody>
</table> </table>
</div>
<p>Please see the <a href="/docs/manuals/archive/">manual archive</a> for documentation for older releases. <p>Please see the <a href="/docs/manuals/archive/">manual archive</a> for documentation for older releases.
The DocBook SGML source for the manuals is available as part of the PostgreSQL source download available in The DocBook SGML source for the manuals is available as part of the PostgreSQL source download available in

View File

@ -1,7 +1,7 @@
{%extends "base/page.html"%} {%extends "base/page.html"%}
{%block title%}Bug report{%endblock%} {%block title%}Bug report{%endblock%}
{%block contents%} {%block contents%}
<h1>Bug report</h1> <h1>Bug report <i class="fas fa-bug"></i></h1>
<p> <p>
Your bug report has been received, and given id #{{bugid}}. It has been posted Your bug report has been received, and given id #{{bugid}}. It has been posted
to the <a href="/list/pgsql-bugs/">pgsql-bugs</a> to the <a href="/list/pgsql-bugs/">pgsql-bugs</a>

View File

@ -2,7 +2,7 @@
{%block title%}Frequently Asked Questions{%endblock%} {%block title%}Frequently Asked Questions{%endblock%}
{%block contents%} {%block contents%}
<h1>Frequently Asked Questions</h1> <h1>Frequently Asked Questions <i class="fa fa-question-circle"></i></h1>
<h2>General</h2> <h2>General</h2>