Browse Source

Improve update page

pull/189/head
Danang Probo Sayekti 10 years ago
parent
commit
1257fa0e30
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      system/admin/views/update.html.php

+ 7
- 2
system/admin/views/update.html.php View File

@ -19,6 +19,11 @@ if ($updater->able()) {
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>'; echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>';
echo '<p><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>'; echo '<p><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>';
} else { } else {
echo '<h3>No Available Update</h3>';
echo '<p>You are using the latest HTMLy version.</p>';
echo '<h2>Congrats! You are Up to Date</h2>';
$info = $updater->getCurrentInfo();
echo '<p>Release Title: '. $info['name'] .'</p>';
echo '<p>Version: '. $info['tag_name'] .'</p>';
echo '<p>Release Notes: </p>';
echo '<pre><code>'. $info['body'] .'</code></pre>';
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a></p>';
} }

Loading…
Cancel
Save