diff options
author | Andrew Dolgov <[email protected]> | 2010-11-25 14:57:32 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-25 14:57:32 +0300 |
commit | e91ad1e9abf094998bbcfb1ec205c46272208193 (patch) | |
tree | 99aa82318cf89fd3031b37fe2596c5a22beeaf4d | |
parent | 1bf679a304856d07979467486843a47cf3906878 (diff) |
tweak new version dialog
-rw-r--r-- | functions.php | 2 | ||||
-rw-r--r-- | modules/popup-dialog.php | 17 |
2 files changed, 13 insertions, 6 deletions
diff --git a/functions.php b/functions.php index 5f88c5552..23638fea9 100644 --- a/functions.php +++ b/functions.php @@ -3905,7 +3905,7 @@ if ($version_data && $version_data['version']) { if (version_compare(VERSION, $version_data['version']) == -1) { - return $version_data['version']; + return $version_data; } } } diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 394ee16a0..16b727fd1 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -766,19 +766,26 @@ } if ($id == "newVersion") { - $version = check_for_update($link); - - $version_link = "<a class=\"visibleLink\" target=\"_blank\" - href=\"http://tt-rss.org\">http://tt-rss.org</a>"; + $version_data = check_for_update($link); + $version = $version_data['version']; + $id = $version_data['version_id']; print "<div class='tagCloudContainer'>"; - print T_sprintf("New version of Tiny Tiny RSS is available (%s).<br/>Visit %s for more information.", "<b>$version</b>", $version_link); + print T_sprintf("New version of Tiny Tiny RSS is available (%s).", + "<b>$version</b>"); print "</div>"; + $details = "http://tt-rss.org/redmine/versions/show/$id"; + $download = "http://tt-rss.org/#Download"; + print "<div style='text-align : center'>"; print "<button dojoType=\"dijit.form.Button\" + onclick=\"return window.open('$details')\">".__("Details")."</button>"; + print "<button dojoType=\"dijit.form.Button\" + onclick=\"return window.open('$download')\">".__("Download")."</button>"; + print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('newVersionDlg').hide()\">". __('Close this window')."</button>"; print "</div>"; |