mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
Added (subtle) license information for latest apps.
This commit is contained in:
parent
2f4d198589
commit
05e7146de0
@ -502,7 +502,8 @@ for line in file(os.path.join('stats', 'latestapps.txt')):
|
|||||||
for app in apps:
|
for app in apps:
|
||||||
if app['id'] == appid:
|
if app['id'] == appid:
|
||||||
data += app['Name'] + "\t"
|
data += app['Name'] + "\t"
|
||||||
data += app['icon'] + "\n"
|
data += app['icon'] + "\t"
|
||||||
|
data += app['License'] + "\n"
|
||||||
break
|
break
|
||||||
f = open('repo/latestapps.dat', 'w')
|
f = open('repo/latestapps.dat', 'w')
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
@ -728,10 +728,13 @@ function widget_fdroidlatest($args) {
|
|||||||
while (($buffer = fgets($handle, 4096)) !== false) {
|
while (($buffer = fgets($handle, 4096)) !== false) {
|
||||||
$app = explode("\t", $buffer);
|
$app = explode("\t", $buffer);
|
||||||
echo '<a href="/repository/browse/?fdid='.$app[0].'">';
|
echo '<a href="/repository/browse/?fdid='.$app[0].'">';
|
||||||
if(trim($app[2])) {
|
if(isset($app[2]) && trim($app[2])) {
|
||||||
echo '<img src="http://f-droid.org/repo/icons/'.$app[2].'" style="width:32px;border:none;float:right;" />';
|
echo '<img src="http://f-droid.org/repo/icons/'.$app[2].'" style="width:32px;border:none;float:right;" />';
|
||||||
}
|
}
|
||||||
echo $app[1].'<br />';
|
echo $app[1].'<br />';
|
||||||
|
if(isset($app[3]) && trim($app[3])) {
|
||||||
|
echo '<span style="color:#BBBBBB;">'.$app[3].'</span>';
|
||||||
|
}
|
||||||
echo '</a><br style="clear:both;" />';
|
echo '</a><br style="clear:both;" />';
|
||||||
}
|
}
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
|
Loading…
Reference in New Issue
Block a user