summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-25 14:57:32 +0300
committerAndrew Dolgov <[email protected]>2010-11-25 14:57:32 +0300
commite91ad1e9abf094998bbcfb1ec205c46272208193 (patch)
tree99aa82318cf89fd3031b37fe2596c5a22beeaf4d /modules
parent1bf679a304856d07979467486843a47cf3906878 (diff)
tweak new version dialog
Diffstat (limited to 'modules')
-rw-r--r--modules/popup-dialog.php17
1 files changed, 12 insertions, 5 deletions
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>";