File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def render_news_template(news):
4141 'contenttype' : '{}; name={}' .format (_get_contenttype_from_extension (f ), f ),
4242 'filename' : f ,
4343 'disposition' : 'inline; filename="{}"' .format (f ),
44- 'id' : '<{}>' .format (f ),
44+ 'id' : '<{}@img >' .format (f ),
4545 }
4646 with open (os .path .join (basedir , f ), "rb" ) as f :
4747 a ['content' ] = f .read ()
Original file line number Diff line number Diff line change 55{%block content%}
66< table border ="0 " cellpadding ="0 " cellspacing ="0 " width ="100% " align ="center " style ="width: 100%; ">
77< tr >
8- < td > < img style ="width: 50px; height: 50px; " height ="50 " width ="50 " src ="cid:slonik.png " alt ="PostgreSQL logo "> </ td >
8+ < td > < img style ="width: 50px; height: 50px; " height ="50 " width ="50 " src ="cid:slonik.png@img " alt ="PostgreSQL logo "> </ td >
99 < td style ="text-align: center; "> < h1 > {{news.title}}</ h1 > </ td >
10- < td > < img style ="width: 50px; height: 50px; " height ="50 " width ="50 " src ="cid:slonik.png " alt ="PostgreSQL logo "> </ td >
10+ < td > < img style ="width: 50px; height: 50px; " height ="50 " width ="50 " src ="cid:slonik.png@img " alt ="PostgreSQL logo "> </ td >
1111</ tr >
1212</ table >
1313{{news.content|markdown}}
You can’t perform that action at this time.
0 commit comments