From d625cb83c34947a493c77aed07b03a7ce29138c4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jul 2024 19:21:58 +0200 Subject: [PATCH] distroquery.php: display packages list as a table --- distribution/mainstyle.css | 1 - distroquery.php | 9 +++- languages/it_IT.mo | Bin 3629 -> 3747 bytes languages/it_IT.po | 108 ++++++++++++++++++++----------------- languages/responsive.po | 108 ++++++++++++++++++++----------------- languages/update-po.sh | 2 +- style.css | 5 ++ 7 files changed, 133 insertions(+), 100 deletions(-) diff --git a/distribution/mainstyle.css b/distribution/mainstyle.css index 4800058..dde10f9 100644 --- a/distribution/mainstyle.css +++ b/distribution/mainstyle.css @@ -30,7 +30,6 @@ a.blacklink:hover { text-decoration: none; font-weight:bold; } white-space: nowrap; font-weight: normal; } .distromatic img { border: 0px; margin: 0px; margin-right: 0px; vertical-align: top; } .distromatic table { font-size: 9pt; border: 1px solid #2b6600; text-align: left; padding: 0; font-size: 8pt; } -.pkgpage td { vertical-align: top; } div.infomenu { font-size:9pt; font-family:Helvetica Narrow,Arial Narrow,Tahoma,Arial,Helvetica,sans-serif; border:1px solid #c5ddb7; margin:0; margin-left:-1px; margin-bottom:-6px; padding:4px; padding-right:3px; background-color: #e4ffd3; } div.info { font-size:9pt; font-family:Helvetica Narrow,Arial Narrow,Tahoma,Arial,Helvetica,sans-serif; border:1px solid #c5ddb7; margin:3px; padding:3px; background-color: #e4ffd3; } diff --git a/distroquery.php b/distroquery.php index d56c4e2..3fdc232 100644 --- a/distroquery.php +++ b/distroquery.php @@ -109,15 +109,20 @@ $url_prefix = home_url() . "/rpms/"; if ($next_page < 1) $next_page = 1; echo "> "; } - echo "]

"; + echo "]
"; } else { echo "0 " . _r("result(s) found"); } + echo ""; foreach ($j["packages"] as $package) { $package_url = $url_prefix . $repo . "/" . $package["name"]; - echo "". $package["name"] . ": " . $package["summary"] . "
"; + echo ""; } + echo "
" . _r("Name") . "" . _r("Version") . "" . + _r("Summary") . "" . _r("Last update") . "
". $package["name"] . "" . + $package["version"] . "-" . $package["release"] . "" . + $package["summary"] . "" . substr($package["buildtime"], 0, 10) . "
"; echo ""; diff --git a/languages/it_IT.mo b/languages/it_IT.mo index 6c028b240727678e0ce726f223e4638776bcc19f..96ef9bc58d352e0803a1f0e710bed09837ce42c1 100644 GIT binary patch delta 1564 zcmYk6TS$~a7=}kv*EGvh2TN`3q-AQBWm=k9QGtaaMq(vPZMx*HwJN0%n?yl)lWs+Y z&_(TKrtFOrL=Zw?7(oRU30YSeL5GXLi+Wxiso{U;nVIjO@B8NP|M%1HW(3BPqplmu z4wR0HB8{noRZ&!wfoNl5;2>NAhiv~9oJapXoC7D|T=*Lis6$?}R+&B9#*B zw!8^riElzQF{ue$VA(WHI@AlX&i3Dra04L8)?@IZan%}}>J zVA%t?8m1WKp=GEPIgv`?G^UQ7X22BKfz_7zmRsRcq}BajR?<-d|PyO|l)7*sCAZ@F*O8){DV{#CiV>TmgnaVb#)$6m;1y!k- zs{d8lG|P~7Cj;sJtU@J7N1BE*m60xl&P2apZS@wUvJUC8&6Eu^^qH*Kb@@Aj6|n~#2i^WwPm3>nHTFkjYHf3y$J^p`H8y%${63f0 i?Q3fZcg2rI#P4*s9`k!TdD9&{n$Q|EJuNtz(C`;$ql!cT delta 1449 zcmYk6O-NKx6vxllI5{(psX0yQn3HBrHJN>=)sz}Vvr63*3=IU~gtT0FJ^2c*FH4;41o$VI`b~Rq!2L17~3c`~hp>9~gomoQYAm z(#*32jR*rtsF+}o&WoN}L91*nz#sT80FDqua-3ftXy z+Vzh>CD!l8vmOmO8iaCu&b=@K75FOD3iD77C*Vam1u2%~oODzjRQfy*Lyez;$KiP> zzptT=>H|~)b5M7{o2Q{W@C)iY{S9@CgUk{eAXmUTQ3`E9dr=dTwJ%}ueAR4o{iNe| zM`1nEV*WF4@j@wqG}4*KVyGLfMLUs9*)Lmy##Xc&^&oA%c1NaNXh!-1wjk}IOrN-R zVl!fmi&m-cUv>a#^?Q&mqU_)j{?(gk?MK=b{V8={T2U9$5w1gxNaxSBuwJCC-iKs6 tknYy9?V{15fo+9H\n" "Language-Team: Italian, Italy\n" @@ -26,7 +26,7 @@ msgstr "Leggi di piĆ¹ ›" msgid "Pages:" msgstr "Pagine:" -#: ../distroquery.php:40 ../distroquery.php:128 ../distroquery.php:186 +#: ../distroquery.php:40 ../distroquery.php:135 ../distroquery.php:193 msgid "Repositories" msgstr "Repository" @@ -50,7 +50,7 @@ msgstr "Cerca qui" msgid "Results for:" msgstr "Risultati per:" -#: ../distroquery.php:92 +#: ../distroquery.php:92 ../distroquery.php:114 msgid "result(s) found" msgstr "risultati trovati" @@ -62,99 +62,111 @@ msgstr "Mostro la pagina" msgid "of" msgstr "di" -#: ../distroquery.php:134 ../distroquery.php:191 -msgid "ERROR" -msgstr "ERRORE" - -#: ../distroquery.php:141 ../distroquery.php:198 -msgid "Resources" -msgstr "Risorse" - -#: ../distroquery.php:142 ../distroquery.php:199 -msgid "Source files" -msgstr "File sorgenti" - -#: ../distroquery.php:143 ../distroquery.php:200 -msgid "Changes" -msgstr "Modifiche" - -#: ../distroquery.php:144 ../distroquery.php:201 -msgid "Issues" -msgstr "Problemi" - -#: ../distroquery.php:145 ../distroquery.php:202 -msgid "Add a new issue" -msgstr "Segnala un problema" - -#: ../distroquery.php:146 ../distroquery.php:203 -msgid "Download" -msgstr "Scarica" - -#: ../distroquery.php:153 ../distroquery.php:210 +#: ../distroquery.php:117 ../distroquery.php:160 ../distroquery.php:217 msgid "Name" msgstr "Nome" -#: ../distroquery.php:154 ../distroquery.php:211 +#: ../distroquery.php:117 +msgid "Version" +msgstr "Versione" + +#: ../distroquery.php:118 +msgid "Last update" +msgstr "Ultimo aggiornamento" + +#: ../distroquery.php:118 +msgid "Summary" +msgstr "Descrizione" + +#: ../distroquery.php:141 ../distroquery.php:198 +msgid "ERROR" +msgstr "ERRORE" + +#: ../distroquery.php:148 ../distroquery.php:205 +msgid "Resources" +msgstr "Risorse" + +#: ../distroquery.php:149 ../distroquery.php:206 +msgid "Source files" +msgstr "File sorgenti" + +#: ../distroquery.php:150 ../distroquery.php:207 +msgid "Changes" +msgstr "Modifiche" + +#: ../distroquery.php:151 ../distroquery.php:208 +msgid "Issues" +msgstr "Problemi" + +#: ../distroquery.php:152 ../distroquery.php:209 +msgid "Add a new issue" +msgstr "Segnala un problema" + +#: ../distroquery.php:153 ../distroquery.php:210 +msgid "Download" +msgstr "Scarica" + +#: ../distroquery.php:161 ../distroquery.php:218 msgid "Release" msgstr "Versione" -#: ../distroquery.php:157 ../distroquery.php:215 +#: ../distroquery.php:164 ../distroquery.php:222 msgid "Group" msgstr "Gruppo" -#: ../distroquery.php:158 +#: ../distroquery.php:165 msgid "Maintainer" msgstr "Manutentore" -#: ../distroquery.php:159 ../distroquery.php:216 +#: ../distroquery.php:166 ../distroquery.php:223 msgid "Description" msgstr "Descrizione" -#: ../distroquery.php:160 +#: ../distroquery.php:167 msgid "License" msgstr "Licenza" -#: ../distroquery.php:161 ../distroquery.php:217 +#: ../distroquery.php:168 ../distroquery.php:224 msgid "Size" msgstr "Dimensione" -#: ../distroquery.php:162 ../distroquery.php:218 +#: ../distroquery.php:169 ../distroquery.php:225 msgid "Upstream URL" msgstr "URL di origine" -#: ../distroquery.php:163 +#: ../distroquery.php:170 msgid "Build time" msgstr "Data di compilazione" -#: ../distroquery.php:164 +#: ../distroquery.php:171 msgid "Built RPMS" msgstr "RPM creati" -#: ../distroquery.php:170 +#: ../distroquery.php:177 msgid "Build requirements" msgstr "Dipendenze di compilazione" -#: ../distroquery.php:214 +#: ../distroquery.php:221 msgid "Architecture" msgstr "Architettura" -#: ../distroquery.php:219 +#: ../distroquery.php:226 msgid "Source RPM" msgstr "RPM sorgente" -#: ../distroquery.php:222 +#: ../distroquery.php:229 msgid "Brothers" msgstr "Collegati" -#: ../distroquery.php:228 +#: ../distroquery.php:235 msgid "Provides" msgstr "Fornisce" -#: ../distroquery.php:235 +#: ../distroquery.php:242 msgid "Obsoletes" msgstr "Rende obsoleti" -#: ../distroquery.php:242 +#: ../distroquery.php:249 msgid "Requires" msgstr "Richiede" diff --git a/languages/responsive.po b/languages/responsive.po index 34e4a26..2aca3a7 100644 --- a/languages/responsive.po +++ b/languages/responsive.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: openmamba 1.0\n" "Report-Msgid-Bugs-To: bugs@openmamba.org\n" -"POT-Creation-Date: 2024-07-06 18:03+0200\n" +"POT-Creation-Date: 2024-07-06 19:15+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,7 +27,7 @@ msgstr "" msgid "Pages:" msgstr "" -#: ../distroquery.php:40 ../distroquery.php:128 ../distroquery.php:186 +#: ../distroquery.php:40 ../distroquery.php:135 ../distroquery.php:193 msgid "Repositories" msgstr "" @@ -51,7 +51,7 @@ msgstr "" msgid "Results for:" msgstr "" -#: ../distroquery.php:92 +#: ../distroquery.php:92 ../distroquery.php:114 msgid "result(s) found" msgstr "" @@ -63,99 +63,111 @@ msgstr "" msgid "of" msgstr "" -#: ../distroquery.php:134 ../distroquery.php:191 -msgid "ERROR" -msgstr "" - -#: ../distroquery.php:141 ../distroquery.php:198 -msgid "Resources" -msgstr "" - -#: ../distroquery.php:142 ../distroquery.php:199 -msgid "Source files" -msgstr "" - -#: ../distroquery.php:143 ../distroquery.php:200 -msgid "Changes" -msgstr "" - -#: ../distroquery.php:144 ../distroquery.php:201 -msgid "Issues" -msgstr "" - -#: ../distroquery.php:145 ../distroquery.php:202 -msgid "Add a new issue" -msgstr "" - -#: ../distroquery.php:146 ../distroquery.php:203 -msgid "Download" -msgstr "" - -#: ../distroquery.php:153 ../distroquery.php:210 +#: ../distroquery.php:117 ../distroquery.php:160 ../distroquery.php:217 msgid "Name" msgstr "" -#: ../distroquery.php:154 ../distroquery.php:211 +#: ../distroquery.php:117 +msgid "Version" +msgstr "" + +#: ../distroquery.php:118 +msgid "Last update" +msgstr "" + +#: ../distroquery.php:118 +msgid "Summary" +msgstr "" + +#: ../distroquery.php:141 ../distroquery.php:198 +msgid "ERROR" +msgstr "" + +#: ../distroquery.php:148 ../distroquery.php:205 +msgid "Resources" +msgstr "" + +#: ../distroquery.php:149 ../distroquery.php:206 +msgid "Source files" +msgstr "" + +#: ../distroquery.php:150 ../distroquery.php:207 +msgid "Changes" +msgstr "" + +#: ../distroquery.php:151 ../distroquery.php:208 +msgid "Issues" +msgstr "" + +#: ../distroquery.php:152 ../distroquery.php:209 +msgid "Add a new issue" +msgstr "" + +#: ../distroquery.php:153 ../distroquery.php:210 +msgid "Download" +msgstr "" + +#: ../distroquery.php:161 ../distroquery.php:218 msgid "Release" msgstr "" -#: ../distroquery.php:157 ../distroquery.php:215 +#: ../distroquery.php:164 ../distroquery.php:222 msgid "Group" msgstr "" -#: ../distroquery.php:158 +#: ../distroquery.php:165 msgid "Maintainer" msgstr "" -#: ../distroquery.php:159 ../distroquery.php:216 +#: ../distroquery.php:166 ../distroquery.php:223 msgid "Description" msgstr "" -#: ../distroquery.php:160 +#: ../distroquery.php:167 msgid "License" msgstr "" -#: ../distroquery.php:161 ../distroquery.php:217 +#: ../distroquery.php:168 ../distroquery.php:224 msgid "Size" msgstr "" -#: ../distroquery.php:162 ../distroquery.php:218 +#: ../distroquery.php:169 ../distroquery.php:225 msgid "Upstream URL" msgstr "" -#: ../distroquery.php:163 +#: ../distroquery.php:170 msgid "Build time" msgstr "" -#: ../distroquery.php:164 +#: ../distroquery.php:171 msgid "Built RPMS" msgstr "" -#: ../distroquery.php:170 +#: ../distroquery.php:177 msgid "Build requirements" msgstr "" -#: ../distroquery.php:214 +#: ../distroquery.php:221 msgid "Architecture" msgstr "" -#: ../distroquery.php:219 +#: ../distroquery.php:226 msgid "Source RPM" msgstr "" -#: ../distroquery.php:222 +#: ../distroquery.php:229 msgid "Brothers" msgstr "" -#: ../distroquery.php:228 +#: ../distroquery.php:235 msgid "Provides" msgstr "" -#: ../distroquery.php:235 +#: ../distroquery.php:242 msgid "Obsoletes" msgstr "" -#: ../distroquery.php:242 +#: ../distroquery.php:249 msgid "Requires" msgstr "" diff --git a/languages/update-po.sh b/languages/update-po.sh index f3f5834..dd6b08c 100755 --- a/languages/update-po.sh +++ b/languages/update-po.sh @@ -2,4 +2,4 @@ xgettext --default-domain=responsive --language=PHP --keyword=__ --keyword=_e --keyword=_r --sort-by-file --copyright-holder="Silvan Calarco" --package-name=openmamba --package-version=1.0 --msgid-bugs-address="bugs@openmamba.org" ../*.php msgmerge it_IT.po responsive.po -o it_IT.po sed -i "s|#~ ||" it_IT.po -msgcat it_IT.po | msgfmt -o it_IT.mo - +#msgcat it_IT.po | msgfmt -o it_IT.mo - diff --git a/style.css b/style.css index 2b1cc14..55c27e9 100644 --- a/style.css +++ b/style.css @@ -330,3 +330,8 @@ table.queryfiletable td { padding:1px; font-family:courier; } + +table.pkgpage tr:nth-child(even) td { background-color: #F2F2F2; } +table.pkgpage th { padding:0; font-weight: 800; border: 0; text-align: left; vertical-align: top; } +table.pkgpage td { vertical-align: top; } +