Commit Graph

14498 Commits

Author SHA1 Message Date
Brock Whittaker 7b00bd6f7e Remove the old spinner, replace with new one.
This removes the old content loading spinner and replaces it with a new
SVG.
2017-01-06 10:37:54 -08:00
Tommy Ip b0b0c885a6 Update .editorconfig to use 4 spaces for handlebars/html. 2017-01-06 09:31:01 -08:00
Tim Abbott b513e63f5e docs: Cleanup whitespace in user docs style guide. 2017-01-06 09:01:27 -08:00
synicalsyntax c9eaf67c78 docs: Update documentation styling guide with new guidelines. 2017-01-05 20:23:26 -08:00
Rafid Aslam 88ec999cf3 tests: Bump up max length queries in test_bulk_message_fetching().
Bump up max length queries in `test_bulk_message_fetching()` to 11
in `zerver/tests/test_messages.py` to avoid test failing when run
this test alone.

Fixes #3087.
2017-01-05 17:30:47 -08:00
Brock Whittaker 3d5c24ab40 Show date correctly on message headers.
This shows a date on a message header whenever the date of that
message is different than the date of the previous message.

The previous logic was bugged and didn't display dates in headers at
date transition points.
2017-01-05 17:28:08 -08:00
JefftheBest1 af1998fbb8 docs:Added make an announcement 2017-01-05 17:26:53 -08:00
synicalsyntax 9d09ab11a9 docs: Replace images with FontAwesome icons. 2017-01-05 16:43:00 -08:00
Brock Whittaker b976e179e6 css: Restyle Open-Graph Links.
This styles open-graph links to be cleaner and smaller.
2017-01-05 16:15:01 -08:00
Brock Whittaker 5d2ceb2f16 Change default emoji reaction styling.
This changes the styling to be slightly more compact, have more bottom
padding between the edge of the message wall, and have more consistency.
2017-01-05 15:46:06 -08:00
Steve Howell 90fa797f9b Use stream id to live-update messages for name changes.
When we change a stream name, we now use the stream id as the
key to find messages we need to live update.  This eliminates
some possible race conditions from two users renaming a stream.

This commit introduces message_live_update.js.

The new call stack is this:

    subs.update_subscription_properties
    subs.update_stream_name
    message_live_update.update_stream_name
    message_list.update_stream_name
2017-01-05 15:32:45 -08:00
Steve Howell 99b5c00ec1 Add stream id to message dictionary.
We now pass the stream id in the messages we send to
our clients.
2017-01-05 15:32:45 -08:00
Sampriti Panda 45a5e47e1b compose: Fix bug on sending message to invalid streams.
The issue is that we were trying to validate the mentions before
checking that the recipient stream was valid, leading to problems
checking the membership of the stream.

Fixes #3040.
2017-01-05 15:26:54 -08:00
Sampriti Panda c15d1ff343 compose: Split validate_stream_message into separate functions. 2017-01-05 15:26:03 -08:00
Bojidar Marinov 5fc65efd69 messages: Allow rendering message content without having an actual message.
This is useful for doing rendering in the emoji search code path.
2017-01-05 15:16:43 -08:00
Tim Abbott 1262db40ea lint: Check for invalid '!!! warning'. 2017-01-05 15:15:19 -08:00
JefftheBest1 e724af3183 docs: Fix incorrect use of warning markdown. 2017-01-05 15:15:19 -08:00
Tim Abbott 8b839c96d4 lint: Check for long lines in all markdown files in general.
This has a few excludes for cases involving code blocks where it would
have been difficult to clean up.
2017-01-05 15:06:34 -08:00
Tim Abbott 9289c75f54 contrib_bots: Wrap CommuteBot docs. 2017-01-05 14:58:06 -08:00
Tim Abbott bc4a9ff722 lint: Enforce no lines longer than 120 characters in help docs.
This requires some somewhat messy changes to the all-streams macro.
2017-01-05 14:54:04 -08:00
Tim Abbott 25f083a284 help: Wrap a bunch of very long lines.
Now there are no lines longer than 140 characters here.
2017-01-05 14:45:31 -08:00
Tim Abbott efb8f8c26d docs: Wrap a bunch of long lines. 2017-01-05 14:31:34 -08:00
Tim Abbott c57ef13a62 docs: Wrap long lines in Russian style guide. 2017-01-05 14:31:34 -08:00
Tim Abbott 5dfc13d346 docs: Wrap long lines in translation guides. 2017-01-05 14:08:42 -08:00
Tim Abbott 2ce1f7c489 help: Wrap long lines in glossary. 2017-01-05 14:04:06 -08:00
Robert Hönig 4d59e2ff74 Fix typo in Spanish and Polish translation guides. 2017-01-05 13:58:46 -08:00
Cynthia Lin 6e27a64e23 docs: Remove unnecessary images. 2017-01-05 13:40:45 -08:00
Cynthia Lin 68da889a76 docs: Modify existing images to fit with documentation styling guidelines. 2017-01-05 13:40:45 -08:00
Cynthia Lin b8007b1b3c docs: Add macros to the *View the markdown source of a message* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin d737108e57 docs: Add macros to the *Unsubscribe from a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 6b7afddd20 docs: Add macros to the *Star a message* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 1c6a765a22 docs: Add macros to the *Restrict editing of old messages and topics* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin d6e9a57fa3 docs: Add macros to the *Reply to a message* doc.
This doc needs to be modified in the future to conform to the styling guidelines; only a portion was corrected.
2017-01-05 13:40:45 -08:00
Cynthia Lin c39aeeca5b docs: Add macros to the *Rename a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 990d022cd5 docs: Add macros to the *Remove someone from a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin b0f867357d docs: Add macros to the *Pin a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 1796de44a8 docs: Add macros to the *Mute a topic* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin a3e035e047 docs: Add macros to the *Mute a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 6a0f07802b docs: Add macros to the *Edit or delete a message* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 4a1f93817b docs: Add macros to the *Create a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 20151a81e9 docs: Add macros to the *Collapse a message* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin c8824b96c1 docs: Add macros to the *Change who can join a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin a9d0d0a8a8 docs: Add macros to the *Change the topic of a message* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 4aa70af05f docs: Add macros to *Change the stream description* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 22ea5f27a5 docs: Add macros to *Change the color of a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin bed7bc98bc docs: Add macros to *Browse and join streams* doc.
Also modified to serve as a reference for navigating to the Subscriptions page.
2017-01-05 13:40:45 -08:00
Cynthia Lin 24ba8d8f08 docs: Add macros to *Add or invite someone to a stream* doc. 2017-01-05 13:40:45 -08:00
Cynthia Lin 083c331e2d docs: Create *Stream Settings* macro. 2017-01-05 13:40:45 -08:00
Cynthia Lin d49b119391 docs: Create *Stream Settings scroll* macro. 2017-01-05 13:40:45 -08:00
Cynthia Lin ae79bb9f01 docs: Create *Stream actions* macro. 2017-01-05 13:40:45 -08:00