Ensure columns on archive tables are of fixed width.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 18 Apr 2018 16:05:40 +0000 (12:05 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 18 Apr 2018 16:05:40 +0000 (12:05 -0400)
This will make the display across multiple dates look cleaner.

django/archives/mailarchives/templates/datelist.html
django/archives/urls.py

index 1d4793605c1b2076b3d5ac746d19a7f6201bdfe2..f0cc42d29684d4577bb8a798d74d1f9029a3a598 100644 (file)
@@ -21,9 +21,9 @@
     <table class="table table-striped table-sm">
       <thead>
         <tr>
-          <th scope="col">Thread</th>
-          <th scope="col">Author</th>
-          <th scope="col">Time</th>
+          <th scope="col" style="width: 70%;">Thread</th>
+          <th scope="col" style="width: 25%;">Author</th>
+          <th scope="col" style="width: 5%;">Time</th>
         </tr>
       </thead>
       <tbody>
index cc80874403365f81fdb25c9c5d6ad23cb9778790..f7e500e6efc076b2b42b5a466dd2c0a286cadb05 100644 (file)
@@ -73,3 +73,7 @@ if not settings.PUBLIC_ARCHIVES:
                url(r'^accounts/logout/?$', archives.auth.logout),
                url(r'^auth_receive/$', archives.auth.auth_receive),
        ]
+
+from django.conf.urls.static import static
+urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+urlpatterns += static('/media/', document_root=settings.MEDIA_ROOT)