Waseem Daher
d3ebe22a58
Allow Safari desktop notifications.
...
Apparently the Safari version of requestPermission wants to take
a callback function as an argument and gets unhappy when you
don't give it to them.
I learned this tip from http://www.inserthtml.com/2012/07/html5-app/
But more importantly, from the draft spec at
http://dev.chromium.org/developers/design-documents/desktop-notifications/api-specification
mentions that requestPermission takes a callback function that is
invoked once the user accepts.
(imported from commit c1d98239028ffce2e294568c5711315f985160a3)
2013-02-26 17:51:31 -05:00
Zev Benjamin
fc085cbd77
Add a bottom border to the left sidebar streams list
...
The idea here is to better hint that the list is scrollable.
(imported from commit 75a415535f47807ef146d4dc9a2806d193d31fe7)
2013-02-26 17:18:56 -05:00
Zev Benjamin
e7604e170a
Make left sidebar HTML more standards-compliant
...
(imported from commit 4cfc7789d4b930ea074596ddf06d16638e91c9a2)
2013-02-26 17:18:56 -05:00
Leo Franchi
45322a2791
Always add messageds from get_updates to the home and all lists
...
(imported from commit d922fa2d80b339ef0f6b76c83d30a7c0fcc29888)
2013-02-26 15:09:55 -05:00
Reid Barton
d5ac00aa68
Display timestamps as "Today", "Yesterday"
...
(imported from commit 7f24d1a86c5ffc9b02d35f43f60ad5cf9143f2e3)
2013-02-26 15:06:45 -05:00
Reid Barton
318ee5df7d
Move timestamp updating to an exported function for testing purposes
...
(imported from commit 9d632eb03564899fe2c8ad937d9e2aaac94e1396)
2013-02-26 15:06:45 -05:00
Reid Barton
593af9daa8
Fix two comments in time rendering
...
(imported from commit 056c8eb7f77947ac967a73ace404f9262bf05923)
2013-02-26 15:06:45 -05:00
Leo Franchi
1300b684e5
Don't let clicking 'Show in home' change the scroll position
...
(imported from commit b760abdaa23f9549f15670b14fdaf57c45dc0aeb)
2013-02-26 14:13:35 -05:00
Leo Franchi
19d107e42b
Add a home_msg_list that contains all messages shown in the home view
...
By splitting up all_msg_list and home_msg_list, we can properly add/remove
streams from the home view without having to jump through hoops.
(imported from commit 92767197759f7519197dfc58be951b60fa823fbb)
2013-02-26 14:13:35 -05:00
Keegan McAllister
293be02d53
Don't clear prod-static/collected
...
Hopefully fixes the race condition where we get 500s during a deploy.
(imported from commit 2df471220a98e8902ab43e8c846a320c24c7fd25)
2013-02-25 17:55:50 -05:00
Waseem Daher
3dfd2fa80f
Add a "What is Humbug?" page.
...
(imported from commit 7197f6cd5f51eec155ccac10c45409bb1a2add58)
2013-02-25 17:23:47 -05:00
Keegan McAllister
c5bab96587
Only use PipelineCachedStorage when not DEBUG
...
(imported from commit 6fea56b15122b9d54184f7c368f7e0113d581424)
2013-02-25 17:19:20 -05:00
Keegan McAllister
49e16b0ba6
Add portico and misc CSS and JS to Pipeline
...
Fixes #963 .
(imported from commit 63ec313a41fd13350657c78356efc16422a5fff1)
2013-02-25 16:18:35 -05:00
Keegan McAllister
d31eab9325
Include hash in minified filenames to avoid browsers using stale files
...
Fixes #853 .
(imported from commit f85ebe52df754f488a29c2ad814d582b78aadd14)
2013-02-25 16:18:35 -05:00
Keegan McAllister
1975d7aa16
Set PIPELINE in settings.py so urls.py can read it
...
(imported from commit 641ff07e83ffa4b5271da311c0660d59e73b3f8f)
2013-02-25 16:18:35 -05:00
Keegan McAllister
d4e02f10eb
Set the favicon href directly on Webkit browsers
...
We still delete and re-create the node on other browsers.
Fixes #960 .
(imported from commit 3f0862793042c4a52d18104060ac2fe2ad21b3e6)
2013-02-25 16:01:29 -05:00
Leo Franchi
64bb48421b
Fix jQuery usage and properly show/hide messages table
...
(imported from commit b6d82a6e717b23ce88407499dc8edb4d4c609270)
2013-02-25 10:04:10 -05:00
Jessica McKellar
11a01dac6c
When a narrow would have no messages and just be grey, show a notice instead.
...
(imported from commit 2b2b653805cb1ebdb545f83b20c01f1d6cbde9b7)
2013-02-23 14:38:25 -05:00
Jessica McKellar
cf72ca441f
Add the feedback bot to the people autocomplete list.
...
(imported from commit d32724ca647da5053677dbb7bc720465823d79f1)
2013-02-23 14:38:21 -05:00
Jessica McKellar
c1d4bc58e8
Un-break get_updates when you have no messages.
...
(imported from commit 5221682c8dacdb8d57b4f65749a28f39f2875f3d)
2013-02-23 12:33:58 -05:00
Tim Abbott
c657be9fbc
do-destroy-rebuild-database: Update for South.
...
(imported from commit f3e5d62aa2be0fd907a24fb9b4a5be6438e76c8d)
2013-02-22 17:52:39 -05:00
Jessica McKellar
0bf787321c
Allow inline code blocks to wrap, instead of truncating on overflow.
...
(imported from commit f2586971c113642dba395a68476685be63f6dce6)
2013-02-22 17:06:41 -05:00
Leo Franchi
d08b8459ed
Only show unread notifications in the title bar if a message is shown in the home view.
...
(imported from commit 795a6cb55d480c57e84ea5e17ef3afdc5d62d68b)
2013-02-22 17:05:36 -05:00
Jessica McKellar
ad71168f77
Add an example RSS bot that runs out of cron.
...
(imported from commit 81d7e010f6316dfbe0ce7b645a7b61dde2881483)
2013-02-22 17:00:42 -05:00
Jessica McKellar
7202c50271
Install the demos directory in /usr/local/share/ as well.
...
(imported from commit 7516e5318f9e30544f53703ead4bca60f2dd7828)
2013-02-22 17:00:42 -05:00
Zev Benjamin
6e4093a0a5
Fix the copy-paste code copying too few or too many messages
...
(imported from commit 2e379618b29cd5c8b168e3f4bdbaa278c5247462)
2013-02-22 15:52:51 -05:00
Zev Benjamin
296d7d89a3
Disallow replying when there are no messages
...
(imported from commit b2fb2d9508afcf0470665bd9d42bb50826d838e4)
2013-02-22 13:07:26 -05:00
Zev Benjamin
06d69f10d9
Remove superfluous call to MessageList.closest_id
...
(imported from commit 11d4f096517df4b9ed89f184a1d383c8a55697bc)
2013-02-22 11:46:05 -05:00
Leo Franchi
ca0f414b60
Fix narrowing not marking as unread when backfilling messages
...
(imported from commit 91b164251b0c2f97bf70c0051216347e2a4616eb)
2013-02-22 11:41:35 -05:00
Leo Franchi
9fb5487473
Add a select_closest option to MessageList.select_id()
...
If we have removed a stream from the home view, and our pointer
that we load from the server refers to a message that is no longer
visible, we don't want to error out but rather select the nearest
message to our previously selected one.
(imported from commit d212f1fba7b06836d1d916b43042991625b6f41e)
2013-02-22 11:39:22 -05:00
Leo Franchi
e6bd8271e0
Return undefined from MessageList.get() for consistency
...
(imported from commit 2fe76786921a1500c6ee7fc57af7de7cea667c73)
2013-02-22 11:37:47 -05:00
Jessica McKellar
947d389a33
Fix incorrect sidebar height, which makes you scroll past your messages.
...
(imported from commit 7244853c83ea884697f205ec5355403c5007d61e)
2013-02-22 09:58:12 -05:00
Jessica McKellar
faf37b47be
Lighten some of the jet-black text to dark grey.
...
(imported from commit 5588c2adda941ca0d7305fb7d4d0f97656a277c3)
2013-02-21 22:40:18 -05:00
Jessica McKellar
5821e85317
Make presence links black, like stream filter links.
...
(imported from commit 70cbf16ec4c5fa4b0d4ed2ce326354cbb1cd3679)
2013-02-21 22:40:18 -05:00
Jessica McKellar
021ed669a4
Correct the widths of the search bar and settings page.
...
(imported from commit 14904452cf3b246287e039adb0cdef3d3fa41e27)
2013-02-21 22:40:18 -05:00
Jessica McKellar
015cfb594e
compose: remove a recent bit of error handling for subscribe-and-send.
...
(imported from commit c22ae573904a4532386291e540b8a23dca389a82)
2013-02-21 22:31:25 -05:00
Jessica McKellar
f96079ee48
compose: move X to close a compose error to upper right.
...
(imported from commit f27e3b44f0f62bce8e448116926608da0066f78b)
2013-02-21 22:31:25 -05:00
Jessica McKellar
41aa91d300
compose: give users an action to take on subscription errors.
...
(imported from commit 62b2500bb1993f70b8218cd58fb335de25b18480)
2013-02-21 22:31:25 -05:00
Jessica McKellar
42ba9adad7
Remove unused CSS from removing subscribe-and-send.
...
(imported from commit ad315599277a1d15d536ff3d87c962e03e97d536)
2013-02-21 22:31:25 -05:00
Luke O'Malley
eec2487b9e
Remove sub-and-send javascript and add 'X' to all error messages
...
(imported from commit 66fd42914e4fc33719c4f21ad401748989f20b49)
2013-02-21 22:31:23 -05:00
Keegan McAllister
56d183ea06
Remove lurk mode from web client and API examples
...
See #796 .
(imported from commit e238ce571c3f30d8312b630df7048ad1d9cad6d2)
2013-02-21 15:11:10 -05:00
Leo Franchi
982a3fda9a
Only ignore website messages from user when calculating unread counts
...
(imported from commit 95bd6f8c2ce0ad1f5d59e311107f81e4b07b33dc)
2013-02-21 15:05:59 -05:00
Tim Abbott
6ad84b8cc9
git: Put prod back on the list of branches to send notices about.
...
(imported from commit e608d7050b4e68045b03341dc41e8654e45a3af3)
2013-02-21 14:33:27 -05:00
Leo Franchi
771eea22b8
Properly auto-complete usernames whenever they appear in a message box
...
(imported from commit 82ef65125731eb48fa029d16acc28add401ac633)
2013-02-21 14:24:55 -05:00
Zev Benjamin
48e7fed00f
Fix the selected message when narrowing to a stream that has no messages loaded
...
We would previously scroll you to the top of the just-loaded block of
messages
(imported from commit 520e5588aa078313649677663c7feea4ca1d7145)
2013-02-21 13:29:17 -05:00
Zev Benjamin
4c9e3a167e
Move message selection to an event-based system
...
Messages are now selected on a MessageList, which triggers a
message_selected event that other parts of the code can listen for.
(imported from commit 1da9e4121425c0ac4461b41b7aea169072e1512b)
2013-02-21 13:29:17 -05:00
Zev Benjamin
ed51bd0432
Select messages on the MessageList instead of calling a global function
...
(imported from commit 0ea1c2695cda5ec415c42a450103e768cf2ff5db)
2013-02-21 13:29:17 -05:00
Zev Benjamin
9e9b4c8541
Make MessageList.selected_id an accessor method
...
(imported from commit 144d12ba8be2de02900ef06c3413f660144de8bf)
2013-02-21 13:29:17 -05:00
Zev Benjamin
36798c8d67
Select the closest message to the target after narrowing
...
(imported from commit e41fcb032af5a8653b7573cb87bbc879a2008343)
2013-02-21 13:29:17 -05:00
Zev Benjamin
a91aa7f8f5
Move message filtering from add_to_table to add_messages_helper
...
(imported from commit 45b1149771a0d96af4c6267fc8457e49c3d10799)
2013-02-21 13:29:17 -05:00