File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
openlibrary/templates/covers Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 55 < label > $_("Or, use a cover from %s", source_name)</ label >
66 </ div >
77 < div style ="display: flex; flex-direction: row; ">
8- < div class ="input ">
9- < a href ="$img_url_cover " target ="_blank " style ="flex-direction: column; ">
10- < img class ="ol-cover-form--external_image " src ="$img_url_cover " style ="height: 200px " alt ="" />
11- </ a >
12- < button type ="submit " class ="cta-btn cta-btn--vanilla " name ="url " style ="flex-direction: column; " value ="$img_url_cover "> $_("Upload Image")</ button >
13- </ div >
14- < div class ="input ">
15- $if img_url_title != None:
16- < a href ="$img_url_title " target ="_blank ">
17- < img class ="ol-cover-form--external_image " src ="$img_url_title " style ="height: 200px " alt ="" />
8+ $for url in [img_url_cover, img_url_title]:
9+ $if url:
10+ < div class ="input ">
11+ < a href ="$url " target ="_blank " style ="flex-direction: column; ">
12+ < img class ="ol-cover-form--external_image " src ="$url " style ="height: 200px " alt ="" />
1813 </ a >
19- < button type ="submit " class ="cta-btn cta-btn--vanilla " name ="url " value ="$img_url_title "> $_("Upload Image")</ button >
20- </ div >
14+ < button type ="submit " class ="cta-btn cta-btn--vanilla " name ="url " style =" flex-direction: column; " value ="$url "> $_("Upload Image")</ button >
15+ </ div >
2116 </ div >
2217</ form >
You can’t perform that action at this time.
0 commit comments