WIP: Generate nice looking pages for the directories containing the images
Merge request reports
Activity
9 9 import bpo.images 10 10 11 11 12 def write_header(path, title): 12 def write_header(path, title, dirname): 13 13 """ Write a header.html, as our nginx configuration expects it to exist for 14 14 each directory. 15 15 :param path: full path to where it will get saved 16 16 :title: what to put in the <title> tag """ - data/templates/dir_header_uis.html 0 → 100644
30 td.size, td.date { 31 display: none; 32 } 33 </style> 34 </head> 35 <body> 36 <header> 37 <img src="https://postmarketos.org/logo.svg"> 38 <span>postmarketOS</span> 39 </header> 40 <br style="clear: both;"> 41 <main> 42 <p> 43 This is the postmarketOS images server. Device images for supported devices will be generated here by 44 the postmarketOS build system at <a href="https://build.postmarketos.org/">build.postmarketos.org</a>. 45 </p> - data/templates/dir_header_devices.html 0 → 100644
35 <body> 36 <header> 37 <img src="https://postmarketos.org/logo.svg"> 38 <span>postmarketOS</span> 39 </header> 40 <br style="clear: both;"> 41 <main> 42 <p> 43 This is the postmarketOS images server. Device images for supported devices will be generated here by 44 the postmarketOS build system at <a href="https://build.postmarketos.org/">build.postmarketos.org</a>. 45 </p> 46 <p> 47 Available devices in the <strong>{{dirname}}</strong> release channel (<a href="..">All channels</a>): 48 </p> 49 </main> 50 <h1 style="display: none"> So the nginx directory listing cuts off the file names, which is unfortunate because the file names of the images are pretty long. How about we simply generate one index.html instead of the header.html and readme.html? (maybe generate empty files for them if nginx writes 404 errors otherwise)
By Oliver Smith on 2021-02-24T23:11:45
Regarding the look of the page: how about we base it off build.postmarketos.org? it's kind of similar to the regular website, but more minimalistic. Important parts for me would be free space on the left and right, and a clearly distinguished header from the rest of the page (like the pmOS logo on black background @ bpo).
By Oliver Smith on 2021-02-24T23:14:12
Obsoleted by !26 (merged).
By Oliver Smith on 2021-06-29T09:39:11