mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Added (subtle) license information for latest apps.
This commit is contained in:
parent
2f4d198589
commit
05e7146de0
2 changed files with 6 additions and 2 deletions
|
@ -502,7 +502,8 @@ for line in file(os.path.join('stats', 'latestapps.txt')):
|
|||
for app in apps:
|
||||
if app['id'] == appid:
|
||||
data += app['Name'] + "\t"
|
||||
data += app['icon'] + "\n"
|
||||
data += app['icon'] + "\t"
|
||||
data += app['License'] + "\n"
|
||||
break
|
||||
f = open('repo/latestapps.dat', 'w')
|
||||
f.write(data)
|
||||
|
|
|
@ -728,10 +728,13 @@ function widget_fdroidlatest($args) {
|
|||
while (($buffer = fgets($handle, 4096)) !== false) {
|
||||
$app = explode("\t", $buffer);
|
||||
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 $app[1].'<br />';
|
||||
if(isset($app[3]) && trim($app[3])) {
|
||||
echo '<span style="color:#BBBBBB;">'.$app[3].'</span>';
|
||||
}
|
||||
echo '</a><br style="clear:both;" />';
|
||||
}
|
||||
fclose($handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue