Blind attempt to restore the old image sanitisation.
authorDave Page <dpage@pgadmin.org>
Mon, 23 Jan 2023 15:07:36 +0000 (15:07 +0000)
committerDave Page <dpage@pgadmin.org>
Mon, 23 Jan 2023 15:07:41 +0000 (15:07 +0000)
template/index.tmpl
www/css/planet.css

index a5538cb88eb552ac5a569bda7a7b7c363d375b23..16ffaf107e32e8d91df1a352b71bb4d2d575cb21 100644 (file)
@@ -13,7 +13,7 @@
                 <div class="card-body">
                     <h5 class="card-title"><a href="{{post.link}}">{{post.title}}</a></h5>
                     <h6 class="card-subtitle mb-2 text-muted">Posted by {%if post.feed.blogurl%}<a href="{{post.feed.blogurl}}">{{post.feed.name}}</a>{%else%}{{post.feed.name}}{%endif%} {%if post.feed.team%} in <a href="{{post.feed.team.teamurl}}">{{post.feed.team.name}}</a>{%endif%} on <span class="date">{{post.dat|date:"Y-m-d"}} at {{post.dat|date:"H:i"}}</span></h6>
-                    <div>
+                    <div class="planetpost">
                         {{post.txt|postcontents}}
                     </div>
                 </div>
@@ -74,4 +74,4 @@
     </div>
     <!-- End Info -->
 
-{% endblock %}
\ No newline at end of file
+{% endblock %}
index 46896c03a85f863e80b8a183b97f0b02d00bc885..1776c9dc0f86b3d1b3511768dbe9319f6e97624b 100644 (file)
@@ -63,6 +63,17 @@ div.contentwrap h2:after {
     margin: .5em 0 .5em .75em;
 }
 
+.planetpost img {
+   display: block;
+   margin-left: auto;
+   margin-right: auto;
+   max-height: 100px;
+   max-width: 300px;
+   width: auto;
+   height: auto;
+   clear: left;
+}
+
 h2 a, h3 a {
     text-decoration: none;
     color: #515151;