]> git.wh0rd.org - tt-rss.git/commitdiff
tweak dialog topmost notices; add an explanation for the batch feed editor
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 14 Jun 2012 17:23:09 +0000 (21:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 14 Jun 2012 17:23:09 +0000 (21:23 +0400)
classes/dlg.php
classes/pref_feeds.php
tt-rss.css

index 345e0c3ef715649b1fc936d9b0474cde481650e7..0a5412fb539d348accd87eff2e70c2901caaf9da 100644 (file)
@@ -590,7 +590,7 @@ class Dlg extends Protected_Handler {
                        GROUP BY ttrss_feeds.title, ttrss_feeds.id, ttrss_feeds.site_url, ttrss_feeds.feed_url
                        ORDER BY last_article");
 
-               print __("These feeds have not been updated with new content for 3 months (oldest first):");
+               print "<div class=\"dialogNotice\">" . __("These feeds have not been updated with new content for 3 months (oldest first):") . "</div>";
 
                print "<div dojoType=\"dijit.Toolbar\">";
                print "<div dojoType=\"dijit.form.DropDownButton\">".
@@ -656,7 +656,7 @@ class Dlg extends Protected_Handler {
        }
 
        function feedsWithErrors() {
-               print __("These feeds have not been updated because of errors:");
+               print "<div class=\"dialogNotice\">" . __("These feeds have not been updated because of errors:") . "</div>";
 
                $result = db_query($this->link, "SELECT id,title,feed_url,last_error,site_url
                FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
@@ -871,7 +871,7 @@ class Dlg extends Protected_Handler {
 
                $url_path = htmlspecialchars($this->params[2]) . "&key=" . $key;
 
-               print __("You can view this feed as RSS using the following URL:");
+               print "<div class=\"dialogNotice\">" .  __("You can view this feed as RSS using the following URL:") . "</div>";
 
                print "<div class=\"tagCloudContainer\">";
                print "<a id='gen_feed_url' href='$url_path' target='_blank'>$url_path</a>";
@@ -924,7 +924,9 @@ class Dlg extends Protected_Handler {
 
                $value = str_replace("<br/>", "\n", $value);
 
+               print "<div class=\"dialogNotice\">";
                print T_sprintf("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here. <a target=\"_blank\" class=\"visibleLink\" href=\"%s\">This file</a> can be used as a baseline.", "tt-rss.css");
+               print "</div>";
 
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"setpref\">";
index 257c1f9c38a9cabf9d32361116dc0f844bbfc122..6c34c2712269ac7f6db1f7b773eeaf4caf7452fc 100644 (file)
@@ -544,6 +544,8 @@ class Pref_Feeds extends Protected_Handler {
 
                $feed_ids = db_escape_string($_REQUEST["ids"]);
 
+               print "<div class=\"dialogNotice\">" . __("Enable the options you wish to apply using checkboxes on the right:") . "</div>";
+
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"ids\" value=\"$feed_ids\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-feeds\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"batchEditSave\">";
index f87ef7cfe9d27d313ea6db0c1bdb6ca633de424f..ff48914c04483e04370b2b5a8e25087ae7a215da 100644 (file)
@@ -1411,3 +1411,8 @@ a.bookmarklet {
 td.error { 
        color : red;
 }
+
+div.dialogNotice {
+       margin-bottom : 5px;
+       color : gray;
+}