Convert formatting of Planet Postgres listing to table.
authorSarah Conway <sarah.conway@crunchydata.com>
Sat, 21 Apr 2018 23:56:24 +0000 (16:56 -0700)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 22 Apr 2018 00:04:20 +0000 (20:04 -0400)
This changes the structural display of the Planet Postgres listing on
the Community page from a dl tag to table. This allows for better padding
and less dense display of the post titles.

templates/core/community.html

index 74c72c94795029b4bd487a2bf7babf3e12d63358..59f2fd93bcb51bc5840ffa7b62eacfb0049d75c3 100644 (file)
     </div>
     <div class="col-md-4">
       <h2>Planet PostgreSQL</h2>
-     <dl>
-      <dd><ul class="feature">
-       {% for post in planet %}
-        <li class="{% cycle '' 'pg-bg-gray' %}"><a href="{{ post.url }}">{{ post.title }}</a></li>
-       {%endfor%}
-      </ul></dd>
-     </dl>
+      <table class="table table-striped">
+        <tbody>
+          {% for post in planet %}
+          <tr>
+            <td scope="row"><a href="{{ post.url }}">{{ post.title }}</a></td>
+          </tr>
+          {%endfor%}
+        </tbody>
+      </table>
      <a href="https://planet.postgresql.org"><button type="button" class="btn btn-primary">More</button></a>
     </div>
   </div>