2013-08-13 12:52:26 +02:00
< div class = "left-sidebar" id = "left-sidebar" >
2013-02-28 18:57:05 +01:00
< div class = "bottom_sidebar" >
< ul id = "global_filters" class = "filters" >
{# Special-case this link so we don't actually go to page top. #}
2013-04-02 22:50:45 +02:00
< li data-name = "home"
2014-02-14 21:31:45 +01:00
class="global-filter active-filter">< span class = "filter-icon" > < i class = "icon-vector-home" > < / i > < / span > < a href = "#" > Home < span class = "count" > < span class = "value" > < / span > < / span > < / a > < / li >
< li data-name = "private" class = "global-filter" > < span class = "filter-icon" > < i class = "icon-vector-user" > < / i > < / span > < a href = "#narrow/is/private" > Private messages < span class = "count" > < span class = "value" > < / span > < / span > < / a > < / li >
< li data-name = "starred" class = "global-filter" > < span class = "filter-icon" > < i class = "icon-vector-star" > < / i > < / span > < a href = "#narrow/is/starred" > Starred messages< / a > < / li >
< li data-name = "mentioned" class = "global-filter" > < span class = "filter-icon" > < i class = "icon-vector-tag" > < / i > < / span > < a href = "#narrow/is/mentioned" > @-mentions< span class = "count" > < span class = "value" > < / span > < / span > < / a > < / li >
2013-02-28 18:57:05 +01:00
< / ul >
Rewrite topic zoom to fix bugs and make cleaner.
In the first cut at topic zoom, I was re-rendering the
streams list, but this created glitches with orphaned
list items. The reproducible bug was that unread counts
on unshown streams weren't updating.
In the new approach, I keep the elements more permanent, and
I just hide and show them as needed, either through jQuery
show/hide or permanent CSS selectors.
I got rid of toggle_zoom(), so that we just explicitly zoom
in and zoom out in all situations. In particular, when we
narrow, it's more clear now that only stay zoomed in when
we're narrowing to the same stream as before (including topic
narrows within that stream).
When you zoom in, the number of topics is no longer limited
to 30, since that was kind of arbitrary anyway. (In practice,
the number of topics is usually well under 30, anyway, due to
the way we track them on the client.)
(imported from commit 5b6c143dee9ba9fe557d8cc36335ff28efb4b0de)
2013-11-26 23:06:39 +01:00
< div id = "streams_list" class = "zoom-out" >
< div id = "streams_header" class = "zoom-in-hide" > < h4 class = "sidebar-title" > STREAMS< / h4 >
2013-07-12 17:00:32 +02:00
< a href = "" > < i id = "streams_inline_cog" class = 'icon-vector-cog' data-toggle = "tooltip" title = "Subscribe, add, or configure streams" > < / i > < / a >
< / div >
2013-11-22 21:04:49 +01:00
< div id = "topics_header" >
2013-11-27 16:09:10 +01:00
< div class = "all-streams-padding" >
< ul class = "filters" >
< li data-name = "all-streams" >
< i class = "icon-vector-chevron-left" > < / i > < a href = "" class = "show-all-streams" > All streams< / a >
< / li >
< / ul >
< / div >
2013-11-22 21:04:49 +01:00
< / div >
2013-07-12 17:00:32 +02:00
< ul id = "stream_filters" class = "filters scrolling_list" > < / ul >
< / div >
2013-08-06 20:21:32 +02:00
< div id = "share-the-love" >
2013-08-15 22:44:34 +02:00
< div id = "share-the-love-expand-collapse" >
2013-09-12 22:02:55 +02:00
< i class = "toggle icon-vector-caret-right" > < / i > < div id = "sharethelove-header" > < h4 class = "share-the-love-title" > SHARE THE LOVE< span class = "still-have-invites" > (< span class = "invite-count" > 0< / span > )< / span > < / h4 > < / div >
2013-08-06 20:21:32 +02:00
< / div >
2013-08-15 22:44:34 +02:00
< div id = "share-the-love-contents" >
< div id = "tell-a-friend-success" class = "alert alert-success" >
2013-08-15 22:58:53 +02:00
< strong > Thanks!< / strong > A hand-crafted, artisanal invite is on the way.
2013-08-15 22:44:34 +02:00
< / div >
< div class = "still-have-invites" id = "encouraging-invite-message" >
< p >
Know someone who would love Zulip for their company or group? Invite 'em!
< / p >
< / div >
2013-08-15 22:58:53 +02:00
< div class = "no-more-invites" >
< p >
We'll have more invites for you soon, but
for now, enjoy this < a target = "_blank"
href="http://www.youtube.com/watch?v=PW71En5Pa5s#t=2m01s">song
that expresses how we feel when you're
logged out< / a > .
< / p >
< / div >
2013-08-15 22:44:34 +02:00
< div class = "still-have-invites" >
{# Many of these values are set by the initialization code in referral.js #}
< form id = "referral-form" >
< input class = "input-block-level required" type = "email" name = "email" / >
< label for = "email" generated = "true" class = "text-error" > < / label >
< / form >
< / div >
< div class = "invite-count-area" >
< span id = "invite-hearts" > < / span >
< small class = "pull-right" > < span class = "invite-count" > 0< / span > invite< span class = "invite-count-is-plural" > s< / span > remaining< / small >
< / div >
2013-08-06 20:21:32 +02:00
< / div >
< / div >
2013-02-28 18:57:05 +01:00
< / div >
< / div >