remove top hello - feedback - preferences line

master
Andrew Dolgov 12 years ago
parent ed47e3c418
commit 2d1282d4d1

@ -181,10 +181,6 @@
// Users may enable other user plugins from Preferences/Plugins but may not // Users may enable other user plugins from Preferences/Plugins but may not
// disable plugins specified in this list. // disable plugins specified in this list.
define('FEEDBACK_URL', '');
// Displays an URL for users to provide feedback or comments regarding
// this instance of tt-rss. Can lead to a forum, contact email, etc.
define('CONFIG_VERSION', 26); define('CONFIG_VERSION', 26);
// Expected config version. Please update this option in config.php // Expected config version. Please update this option in config.php
// if necessary (after migrating all new options from this file). // if necessary (after migrating all new options from this file).

@ -117,20 +117,6 @@
title="<?php echo __("Communication problem with server.") ?>" title="<?php echo __("Communication problem with server.") ?>"
src="<?php echo theme_image($link, 'images/alert.png') ?>"/> src="<?php echo theme_image($link, 'images/alert.png') ?>"/>
<?php if (!$_SESSION["hide_hello"]) { ?>
<?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |
<?php } ?>
<a href="prefs.php"><?php echo __('Preferences') ?></a>
<?php if (defined('FEEDBACK_URL') && FEEDBACK_URL) { ?>
| <a target="_blank" class="feedback" href="<?php echo FEEDBACK_URL ?>">
<?php echo __('Comments?') ?></a>
<?php } ?>
<?php if (!$_SESSION["hide_logout"]) { ?>
| <a href="backend.php?op=logout"><?php echo __('Logout') ?></a>
<?php } ?>
<img id="newVersionIcon" style="display:none" onclick="newVersionDlg()" <img id="newVersionIcon" style="display:none" onclick="newVersionDlg()"
width="13" height="13" width="13" height="13"
src="<?php echo theme_image($link, 'images/new_version.png') ?>" src="<?php echo theme_image($link, 'images/new_version.png') ?>"
@ -197,9 +183,24 @@
</form> </form>
<div class="actionChooser"> <div class="actionChooser">
<button id="net-alert" dojoType="dijit.form.Button" style="display : none" disabled="true"
title="<?php echo __("Communication problem with server.") ?>">
<img
src="<?php echo theme_image($link, 'images/alert.png') ?>" />
</button>
<button id="newVersionIcon" dojoType="dijit.form.Button" style="display : none">
<img onclick="newVersionDlg()"
src="<?php echo theme_image($link, 'images/new_version.png') ?>"
title="<?php echo __('New version of Tiny Tiny RSS is available!') ?>" />
</button>
<div dojoType="dijit.form.DropDownButton"> <div dojoType="dijit.form.DropDownButton">
<span><?php echo __('Actions...') ?></span> <span><?php echo __('Actions...') ?></span>
<div dojoType="dijit.Menu" style="display: none"> <div dojoType="dijit.Menu" style="display: none">
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcPrefs')"><?php echo __('Preferences...') ?></div>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcSearch')"><?php echo __('Search...') ?></div> <div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcSearch')"><?php echo __('Search...') ?></div>
<div dojoType="dijit.MenuItem" disabled="1"><?php echo __('Feed actions:') ?></div> <div dojoType="dijit.MenuItem" disabled="1"><?php echo __('Feed actions:') ?></div>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddFeed')"><?php echo __('Subscribe to feed...') ?></div> <div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddFeed')"><?php echo __('Subscribe to feed...') ?></div>
@ -220,6 +221,9 @@
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddLabel')"><?php echo __('Create label...') ?></div> <div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddLabel')"><?php echo __('Create label...') ?></div>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddFilter')"><?php echo __('Create filter...') ?></div> <div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddFilter')"><?php echo __('Create filter...') ?></div>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div> <div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div>
<?php if (!$_SESSION["hide_logout"]) { ?>
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcLogout')"><?php echo __('Logout') ?></div>
<?php } ?>
</div> </div>
</div> </div>
</div> </div>

@ -292,6 +292,10 @@ function gotoPreferences() {
document.location.href = "prefs.php"; document.location.href = "prefs.php";
} }
function gotoLogout() {
document.location.href = "backend.php?op=logout";
}
function gotoMain() { function gotoMain() {
document.location.href = "index.php"; document.location.href = "index.php";
} }

@ -335,42 +335,35 @@ function init_second_stage() {
function quickMenuGo(opid) { function quickMenuGo(opid) {
try { try {
if (opid == "qmcPrefs") { switch (opid) {
case "qmcPrefs":
gotoPreferences(); gotoPreferences();
} break;
case "qmcLogout":
if (opid == "qmcTagCloud") { gotoLogout();
break;
case "qmcTagCloud":
displayDlg("printTagCloud"); displayDlg("printTagCloud");
} break;
case "qmcTagSelect":
if (opid == "qmcTagSelect") {
displayDlg("printTagSelect"); displayDlg("printTagSelect");
} break;
case "qmcSearch":
if (opid == "qmcSearch") {
search(); search();
return; break;
} case "qmcAddFeed":
if (opid == "qmcAddFeed") {
quickAddFeed(); quickAddFeed();
return; break;
} case "qmcDigest":
if (opid == "qmcDigest") {
window.location.href = "backend.php?op=digest"; window.location.href = "backend.php?op=digest";
return; break;
} case "qmcEditFeed":
if (opid == "qmcEditFeed") {
if (activeFeedIsCat()) if (activeFeedIsCat())
alert(__("You can't edit this kind of feed.")); alert(__("You can't edit this kind of feed."));
else else
editFeed(getActiveFeedId()); editFeed(getActiveFeedId());
return; break;
} case "qmcRemoveFeed":
if (opid == "qmcRemoveFeed") {
var actid = getActiveFeedId(); var actid = getActiveFeedId();
if (activeFeedIsCat()) { if (activeFeedIsCat()) {
@ -390,46 +383,34 @@ function quickMenuGo(opid) {
if (confirm(pr)) { if (confirm(pr)) {
unsubscribeFeed(actid); unsubscribeFeed(actid);
} }
break;
return; case "qmcCatchupAll":
}
if (opid == "qmcCatchupAll") {
catchupAllFeeds(); catchupAllFeeds();
return; break;
} case "qmcShowOnlyUnread":
if (opid == "qmcShowOnlyUnread") {
toggleDispRead(); toggleDispRead();
return; break;
} case "qmcAddFilter":
if (opid == "qmcAddFilter") {
quickAddFilter(); quickAddFilter();
return; break;
} case "qmcAddLabel":
if (opid == "qmcAddLabel") {
addLabel(); addLabel();
return; break;
} case "qmcRescoreFeed":
if (opid == "qmcRescoreFeed") {
rescoreCurrentFeed(); rescoreCurrentFeed();
return; break;
} case "qmcToggleWidescreen":
if (opid == "qmcToggleWidescreen") {
if (!isCdmMode()) { if (!isCdmMode()) {
_widescreen_mode = !_widescreen_mode; _widescreen_mode = !_widescreen_mode;
switchPanelMode(_widescreen_mode); switchPanelMode(_widescreen_mode);
} }
return; break;
} case "qmcHKhelp":
if (opid == "qmcHKhelp") {
helpDialog("main"); helpDialog("main");
break;
default:
console.log("quickMenuGo: unknown action: " + opid);
} }
} catch (e) { } catch (e) {
@ -469,13 +450,10 @@ function parse_runtime_info(data) {
// console.log("RI: " + k + " => " + v); // console.log("RI: " + k + " => " + v);
if (k == "new_version_available") { if (k == "new_version_available") {
var icon = $("newVersionIcon");
if (icon) {
if (v == "1") { if (v == "1") {
icon.style.display = "inline"; Element.show(dijit.byId("newVersionIcon").domNode);
} else { } else {
icon.style.display = "none"; Element.hide(dijit.byId("newVersionIcon").domNode);
}
} }
return; return;
} }
@ -908,15 +886,15 @@ function handle_rpc_json(transport, scheduled_call) {
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1); hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
Element.hide("net-alert"); Element.hide(dijit.byId("net-alert").domNode);
} else { } else {
//notify_error("Error communicating with server."); //notify_error("Error communicating with server.");
Element.show("net-alert"); Element.show(dijit.byId("net-alert").domNode);
} }
} catch (e) { } catch (e) {
Element.show("net-alert"); Element.show(dijit.byId("net-alert").domNode);
//notify_error("Error communicating with server."); //notify_error("Error communicating with server.");
console.log(e); console.log(e);
//exception_error("handle_rpc_json", e, transport); //exception_error("handle_rpc_json", e, transport);

@ -211,7 +211,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
"</div>"); "</div>");
} else { } else {
//notify_error("Error communicating with server."); //notify_error("Error communicating with server.");
Element.show("net-alert"); Element.show(dijit.byId("net-alert").domNode);
} }
_infscroll_request_sent = 0; _infscroll_request_sent = 0;
@ -322,7 +322,7 @@ function article_callback2(transport, id) {
render_article("<div class='whiteBox'>" + render_article("<div class='whiteBox'>" +
__('Could not display article (invalid object received - see error console for details)') + "</div>"); __('Could not display article (invalid object received - see error console for details)') + "</div>");
} else { } else {
Element.show("net-alert"); Element.show(dijit.byId("net-alert").domNode);
} }
request_counters(); request_counters();

@ -1079,10 +1079,10 @@ div.fatalError textarea {
#content-wrap { #content-wrap {
padding : 0px; padding : 0px;
border-width : 1px 0px 1px 1px; border-width : 0px 0px 1px 1px;
border-style : solid; border-style : solid;
border-color : #c0c0c0; border-color : #c0c0c0;
margin : 25px 0px 0px 0px; margin : 0px;
} }
#feeds-holder { #feeds-holder {
@ -1235,13 +1235,6 @@ a.bookmarklet {
padding : 2px; padding : 2px;
} }
#newVersionIcon {
margin-left : 5px;
vertical-align : middle;
position : relative;
top : -1px;
}
.player { .player {
display : inline-block; display : inline-block;
color : gray; color : gray;

Loading…
Cancel
Save