zulip/static
Steve Howell 9986e41999 top left: Simplify markup for main links.
The following elements in the top left corner
are major components of our app:

    All messages
    Private messages
    Starred messages
    Mentions

We can now find them directly:

    $('.top_left_all_messages')
    $('.top_left_private_messages')
    $('.top_left_starred_messages')
    $('.top_left_mentions')

Before this, we had to build up complicated selectors
like below:

    exports.get_global_filter_li = function (filter_name) {
        var selector = "#global_filters li[data-name='"
            + filter_name + "']";
        return $(selector);
    };

I don't think any newbie would know to grep for "global_filter",
and I've seen a PR where somebody added specific markup here
to "Private messages" because they couldn't grok the old scheme.

Another thing to note is that we still have a "home-link"
class for "All messages", which overlapped with portico
code that had the same name.  (There were some inaccurate
comments in the code relating to the tab bar, but we don't
actually have a way to click to the home view in the tab
bar any more.)  I'll eliminate that cruft in another commit.

For this commit the four elements still have the
"global-filter" class, since there's some benefit to being
able to style them all as a group, although we should give
it a nicer name in a subsequent commit.

Most of this PR is basic search/replace, but I did add a
two-line helper: `top_left_corner.update_starred_count`
2019-01-30 13:53:20 -08:00
..
assets
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated
html HTML validation: Remove xmlns:svg attribute. 2018-07-09 09:45:42 +05:30
icons/fonts tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
images portico: Add inspire-hep to /for/open-source. 2019-01-29 11:46:19 -08:00
js top left: Simplify markup for main links. 2019-01-30 13:53:20 -08:00
locale i18n: Sync translation data from Transifex. 2019-01-04 14:42:46 -08:00
styles portico: Add inspire-hep to /for/open-source. 2019-01-29 11:46:19 -08:00
templates settings: Update tip strings for adding custom emoji. 2019-01-30 10:34:16 -08:00
third api_docs: Specify max width for long code examples. 2019-01-28 22:39:54 -03:30
ts webpack: Upgrade webpack version 4.5.0. 2018-04-23 15:49:33 -07:00
.gitignore tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
favicon.ico
node_modules