{%extends "base/page.html"%}
{%block title%}Manual Archive{%endblock%}
{%block contents%}

<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.
If you are still using any of these releases, you are strongly advised to upgrade.</p>

<table class="table table-striped">
  <thead>
    <tr>
      <th class="w-25">Online Version</th>
      <th>PDF Version</th>
    </tr>
  </thead>
  <tbody>
		{%for v in versions%}
		<tr>
	    <td>
          <a href="/docs/{{v.numtree}}/{{v.indexname}}">{{v.treestring}}</a>
      </td>
      <td>
	  {%if v.a4pdf or v.uspdf%}
	  {%if v.a4pdf%}<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 and v.uspdf%} &bull; {%endif%}
	  {%if v.uspdf%}<a href="/files/documentation/pdf/{{v.numtree}}/postgresql-{{v.numtree}}-US.pdf">US PDF</a> <span class="txtMediumGrey">({{v.uspdf|filesizeformat}})</span>{%endif%}
	  {%else%}PDF version not available
	  {%endif%}
      </td>
		</tr>
		{%endfor%}
  </tbody>
</table>
{%endblock%}
