summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-25 21:47:38 +0400
committerAndrew Dolgov <[email protected]>2013-03-25 21:47:38 +0400
commit2e828a4af62ba81e30b5dee1e49f1de6e8fc443a (patch)
tree8290d8346e664f952ddde35d97dc7feb0a4058a8
parentf4a2f12ad51085d54da7cfaa137699bef9699586 (diff)
add a button to show release notes before updating; remove obsolete elements
-rw-r--r--classes/dlg.php2
-rw-r--r--index.php12
-rw-r--r--plugins/updater/init.php7
3 files changed, 7 insertions, 14 deletions
diff --git a/classes/dlg.php b/classes/dlg.php
index 5789af684..23b9c78fa 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -598,7 +598,7 @@ class Dlg extends Handler_Protected {
print "<div style='text-align : center'>";
print "<button dojoType=\"dijit.form.Button\"
- onclick=\"return window.open('$details')\">".__("Details")."</button>";
+ onclick=\"return window.open('$details')\">".__("See the release notes")."</button>";
print "<button dojoType=\"dijit.form.Button\"
onclick=\"return window.open('$download')\">".__("Download")."</button>";
print "<button dojoType=\"dijit.form.Button\"
diff --git a/index.php b/index.php
index 5c5f706d1..5be6d12a4 100644
--- a/index.php
+++ b/index.php
@@ -125,18 +125,6 @@
<div style="display : none" onclick="Element.hide(this)" id="small_article_preview"></div>
-<div id="header">
- <img id="net-alert" style="display : none"
- title="<?php echo __("Communication problem with server.") ?>"
- src="images/alert.png"/>
-
- <img id="newVersionIcon" style="display:none" onclick="newVersionDlg()"
- width="13" height="13"
- src="images/new_version.png"
- title="<?php echo __('New version of Tiny Tiny RSS is available!') ?>"
- alt="new_version_icon"/>
-</div>
-
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
<div id="cmdline" style="display : none"></div>
<div id="auxDlg" style="display : none"></div>
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index 63b681e17..8a7c8a9ca 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -323,9 +323,14 @@ class Updater extends Plugin {
if (is_array($_SESSION["version_data"])) {
$version = $_SESSION["version_data"]["version"];
+ $version_id = $_SESSION["version_data"]["version_id"];
print_notice(T_sprintf("New version of Tiny Tiny RSS is available (%s).", "<b>$version</b>"));
- print "<p><button dojoType=\"dijit.form.Button\" onclick=\"return updateSelf()\">".
+ $details = "http://tt-rss.org/redmine/versions/$version_id";
+
+ print "<p><button onclick=\"window.open('$details')\" dojoType=\"dijit.form.Button\">".__("See the release notes")."</button>";
+
+ print " <button dojoType=\"dijit.form.Button\" onclick=\"return updateSelf()\">".
__('Update Tiny Tiny RSS')."</button></p>";
} else {