We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e66af6 commit c268185Copy full SHA for c268185
public/index.php
@@ -93,14 +93,13 @@
93
});
94
95
$app->get('/', function (Application $app) {
96
- $currentVersion = 'v0.5.0';
97
- $repository = $app['config']['app']['github_url'];
+ $release = $app['api']->getRelease('latest');
98
99
return $app->render('home.twig', [
100
- 'changelog_url' => "{$repository}/releases/{$currentVersion}",
+ 'changelog_url' => $release['changelog_url'],
101
'expiration_date' => date('m/d/Y', strtotime('+1 day')),
102
- 'download_url' => "{$repository}/releases/download/{$currentVersion}/{$currentVersion}-prepackaged.zip",
103
- 'download_version' => $currentVersion,
+ 'download_url' => $release['download_url'],
+ 'download_version' => $release['version'],
104
'github_url' => $app['config']['app']['github_url'],
105
'home' => true,
106
]);
0 commit comments