tweak feed browser UI

master
Andrew Dolgov 16 years ago
parent 23582ce2b4
commit db5c7f5ddf

@ -82,7 +82,7 @@
set_pref($link, "_PREFS_ACTIVE_TAB", "feedBrowser"); set_pref($link, "_PREFS_ACTIVE_TAB", "feedBrowser");
print "<div>".__('This panel shows feeds subscribed by other users of this system, just in case you are interested in them too.')."</div>"; print "<div class=\"insensitive\">".__('This panel shows feeds subscribed by other users of this system, just in case you are interested in them too.')."</div>";
$limit = db_escape_string($_GET["limit"]); $limit = db_escape_string($_GET["limit"]);
@ -112,6 +112,8 @@
onclick=\"updateBigFeedBrowser()\" value=\"".__('Show')."\"> onclick=\"updateBigFeedBrowser()\" value=\"".__('Show')."\">
</div>"; </div>";
if (db_num_rows($result) > 0) {
print "<div id=\"fbrOpToolbar\"> print "<div id=\"fbrOpToolbar\">
<input type='submit' class='button' onclick=\"feedBrowserSubscribe()\" <input type='submit' class='button' onclick=\"feedBrowserSubscribe()\"
disabled=\"true\" value=\"".__('Subscribe')."\"></div>"; disabled=\"true\" value=\"".__('Subscribe')."\"></div>";
@ -162,11 +164,13 @@
++$feedctr; ++$feedctr;
} }
if ($feedctr == 0) { print "</ul>";
print "<li>".__('No feeds found to subscribe.')."</li>";
} }
print "</ul>"; if ($feedctr == 0) {
print "<div>".__('No feeds found.')."</div>";
}
print "</div>"; print "</div>";
} }

Loading…
Cancel
Save