From 75feea184347179949f3aa5fc23f48736f88b0bf Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Sun, 15 Apr 2018 23:44:49 -0400 Subject: [PATCH] Update Documentation and Bug Report pages to use modern design. --- pgweb/misc/views.py | 3 +- templates/docs/archive.html | 43 +++++++++---------- templates/docs/index.html | 71 +++++++++++++++---------------- templates/docs/manuals.html | 49 ++++++++++----------- templates/misc/bug_completed.html | 2 +- templates/pages/docs/faq.html | 2 +- 6 files changed, 82 insertions(+), 88 deletions(-) diff --git a/pgweb/misc/views.py b/pgweb/misc/views.py index 2942b7bd..1d40bcd8 100644 --- a/pgweb/misc/views.py +++ b/pgweb/misc/views.py @@ -51,11 +51,12 @@ def submitbug(request): return render_pgweb(request, 'support', 'base/form.html', { 'form': form, 'formitemtype': 'bug report', + 'formtitle': 'Submit Bug Report ', 'operation': 'Submit', 'form_intro': template_to_string('misc/bug_header.html', { 'supportedversions': versions, }), - 'savebutton': 'Create report and send email', + 'savebutton': 'Submit Report and Send Email', }) diff --git a/templates/docs/archive.html b/templates/docs/archive.html index fb11d798..c7843baf 100644 --- a/templates/docs/archive.html +++ b/templates/docs/archive.html @@ -2,34 +2,31 @@ {%block title%}Manual Archive{%endblock%} {%block contents%} -

Manual Archive

+

Manual Archive

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.

-
- - - - - - -{%for v in versions%} - -
Online VersionPDF Version
- + + + + + + + + + {%for v in versions%} + + - - -{%endfor%} + + {%endfor%} +
Online VersionPDF Version
+ {{v.treestring}} -
    - {%if v.a4pdf%}
  • Comprehensive Manual: A4 PDF ({{v.a4pdf|filesizeformat}})
  • {%endif%} - {%if v.uspdf%}
  • Comprehensive Manual: US PDF ({{v.uspdf|filesizeformat}})
  • {%endif%} - {%if not v.a4pdf and not v4.uspdf%}
  • PDF version not available
  • {%endif%} -
+
+ {%if v.a4pdf%}Comprehensive Manual: A4 PDF ({{v.a4pdf|filesizeformat}}){%endif%} + {%if v.uspdf%}Comprehensive Manual: US PDF ({{v.uspdf|filesizeformat}}){%endif%} + {%if not v.a4pdf and not v4.uspdf%}PDF version not available{%endif%}
- {%endblock%} diff --git a/templates/docs/index.html b/templates/docs/index.html index ed6c5bd0..e214e374 100644 --- a/templates/docs/index.html +++ b/templates/docs/index.html @@ -1,42 +1,41 @@ {%extends "base/page.html"%} {%block title%}Documentation{%endblock%} {%block contents%} -
-
-

Documentation

-

There is a wealth of PostgreSQL information available online. This section contains current -and archived manuals for PostgreSQL users, as well as -frequently asked questions.

+
+
+
+

Documentation

+
+

This section contains current + and archived manuals for PostgreSQL users. You can read the release notes, and view a listing of books + written about PostgreSQL.

+
+
+
+

Online Manuals

+
+
+
+ +
+
Translated Manuals
+
+ +
+

More manuals
+
+
+
-

You can learn what's new in the latest release, and view a listing of books -written about PostgreSQL (some of which are available in their entirety online). -Technical documentation is also available in this section, or you can check Security Information.

- -
-
- -
-
-
-
Online Manuals
-
- -
-
Translated Manuals
-
- -
-

More manuals
-
-
-
{%endblock%} diff --git a/templates/docs/manuals.html b/templates/docs/manuals.html index 52c321e8..be2dfb41 100644 --- a/templates/docs/manuals.html +++ b/templates/docs/manuals.html @@ -2,34 +2,31 @@ {%block title%}Manuals{%endblock%} {%block contents%} -

Manuals

-

+

Manuals

-
- - - - - -{%for v in versions%} - - - - -{%endfor%} +
Online VersionPDF Version
- - - {%if v.a4pdf or v.uspdf%} -
    - {%if v.a4pdf%}
  • Comprehensive Manual: A4 PDF ({{v.a4pdf|filesizeformat}})
  • {%endif%} - {%if v.uspdf%}
  • Comprehensive Manual: US PDF ({{v.uspdf|filesizeformat}})
  • {%endif%} -
- {%endif%} -
+ + + + + + + + {%for v in versions%} + + + + {%endfor%} +
Online VersionPDF Version
+ {{v.treestring}} + + {%if v.a4pdf or v.uspdf%} + {%if v.a4pdf%}Comprehensive Manual: A4 PDF ({{v.a4pdf|filesizeformat}}){%endif%} + {%if v.uspdf%}Comprehensive Manual: US PDF ({{v.uspdf|filesizeformat}}){%endif%} + {%if not v.a4pdf and not v4.uspdf%}PDF version not available{%endif%} + {%endif%} +
-

Please see the manual archive for documentation for older releases. The DocBook SGML source for the manuals is available as part of the PostgreSQL source download available in diff --git a/templates/misc/bug_completed.html b/templates/misc/bug_completed.html index b36c58d5..4474d239 100644 --- a/templates/misc/bug_completed.html +++ b/templates/misc/bug_completed.html @@ -1,7 +1,7 @@ {%extends "base/page.html"%} {%block title%}Bug report{%endblock%} {%block contents%} -

Bug report

+

Bug report

Your bug report has been received, and given id #{{bugid}}. It has been posted to the pgsql-bugs diff --git a/templates/pages/docs/faq.html b/templates/pages/docs/faq.html index 95e3a4c4..61a9612c 100644 --- a/templates/pages/docs/faq.html +++ b/templates/pages/docs/faq.html @@ -2,7 +2,7 @@ {%block title%}Frequently Asked Questions{%endblock%} {%block contents%} -

Frequently Asked Questions

+

Frequently Asked Questions

General

-- 2.39.5