Commit Graph

5880 Commits

Author SHA1 Message Date
Ibrahim Awwal
62b047f3c2 Refactored DiscussionThreadInlineView to inherit from DiscussionThreadView and
use subviews for rendering. Functionality should be the same. Changed a few things
in DiscussionThreadView to make this a little easier.
2012-09-13 03:11:30 -07:00
Ibrahim Awwal
58fc3eca12 Fix staff markers for inline threads and double staff markers for threads with deeply nested comments. 2012-09-13 02:20:35 -07:00
Ibrahim Awwal
d9018658b7 Remove whitespace around post body in edit template.
Extra spaces actually get added to a post when activating a WMD editor which can
get saved into the post if you click update.
2012-09-13 00:13:34 -07:00
Ibrahim Awwal
8c9febe549 Add quotes to fix thread editor title bug. 2012-09-12 20:55:55 -07:00
Ibrahim Awwal
712e59a68d Merge branch 'feature/arjun/new-discussions' of github.com:MITx/mitx into feature/arjun/new-discussions
Conflicts:
	lms/djangoapps/django_comment_client/forum/views.py
	lms/static/sass/_discussion.scss
2012-09-12 15:18:34 -07:00
Ibrahim Awwal
9a0798b68f Remove old backbone views (the last place they were being used was the profile page). 2012-09-12 15:16:44 -07:00
Ibrahim Awwal
b4828db1e3 User profile page redone to act like the inline discussion, except threads are
loaded into the page in a data attribute instead of loaded on request via ajax.
The user profile page also does not provide facilities for adding
comments/responses, which I think would clutter the page too much.

Also removed some unused stuff from views.py.
2012-09-12 15:16:35 -07:00
Matthew Mongeau
ba56afae7c Clear search when clicking topic dropdown. 2012-09-12 16:57:19 -04:00
Matthew Mongeau
d425f525b8 Display tags. 2012-09-12 16:43:52 -04:00
Tom Giannattasio
1d71a2cfbd tweaked usernames so they were more prominent throughout 2012-09-12 13:40:11 -04:00
Carlos Andrés Rocha
18b5a1f5a2 Temporary fix to get the discussion profile page rendering 2012-09-12 13:20:04 -04:00
Matthew Mongeau
1a402f7fda Mark responses and comments as staff 2012-09-12 11:09:36 -04:00
Tom Giannattasio
d1292949be fixed spinner positioning on inline discussions 2012-09-12 11:03:18 -04:00
Tom Giannattasio
9ef83b0ca5 edit post style clean up 2012-09-12 10:19:25 -04:00
Tom Giannattasio
7098b2e658 cleaned up loading animation in post-list 2012-09-12 10:07:16 -04:00
Tom Giannattasio
87dcd07112 delayed appearance of spinner in thread so things are less jumpy 2012-09-12 10:07:16 -04:00
Tom Giannattasio
d88de52181 fixed jump to top on browse buttons 2012-09-12 09:41:34 -04:00
Tom Giannattasio
ff94541e40 tweaked inline hide/show and new post buttons 2012-09-12 09:41:34 -04:00
Arjun Singh
452414da37 Kill requests for loading responses when selecting another thread. This ensures that the thread you're viewing has the right responses loaded. 2012-09-12 06:13:46 -07:00
Arjun Singh
a900998145 Fix anonymity leak; fix editing when rendering from main page. 2012-09-12 04:32:32 -07:00
Ibrahim Awwal
3bc9c7496c Update discussion setup instructions to clarify that you need to specify a
course id for seed_permissions_roles, and also the script itself to tell you that.
2012-09-11 19:15:18 -07:00
Ibrahim Awwal
1be378e697 Render comment replies properly, and update them after receiving a response. 2012-09-11 14:31:03 -07:00
Ibrahim Awwal
a91a5df499 Use regular javascript attributes for parent reference rather than setting
Backbone.Model attributes because Model attributes get serialized into
JSON which is wasteful.
2012-09-11 13:57:51 -07:00
Ibrahim Awwal
f97d4fe983 Add @login_required to forum views so that they redirect to a login page if you're not logged in. 2012-09-11 13:41:30 -07:00
Ibrahim Awwal
2c6c64d533 Sort comment replies in chronological order, keeping the parent references. 2012-09-11 13:12:01 -07:00
Carlos Andrés Rocha
2900c169cc Load inline comments templates at render time and not during page load 2012-09-11 15:58:16 -04:00
Matthew Mongeau
f4ba65c5d5 Show and hide search correctly. Added loading icon. 2012-09-11 13:30:00 -04:00
Tom Giannattasio
a0eefd1ea2 tweaked inline responses and new response toolbar 2012-09-11 10:59:40 -04:00
Tom Giannattasio
00156fd600 fixed textbook bug 2012-09-11 10:14:20 -04:00
Ibrahim Awwal
2d105265f9 Add @references for deeply nested (3+) comments. 2012-09-11 05:43:21 -07:00
Ibrahim Awwal
fc459f7e44 Displays deeply nested comments inline.
This just puts them in three traversal order rather than chronological order.
Not sure which makes the most sense, but I'll implement both ways.
2012-09-11 05:08:55 -07:00
Ibrahim Awwal
7e96f668c0 Render courseware context after creating a new post. 2012-09-11 04:28:24 -07:00
Ibrahim Awwal
ce16d22451 Fix anonymous posts on the inline discussion view. 2012-09-11 04:09:53 -07:00
Ibrahim Awwal
8b7940f413 Fixed context links after searching for real, and removed some more dead code. 2012-09-11 03:40:33 -07:00
Ibrahim Awwal
8f776ab2d8 Comment out some things which I am 99.9% sure are vestigial, which cuts
down on the amount of data shuffled around and saves some rendering time
on the forum index as well.
2012-09-11 02:02:15 -07:00
Ibrahim Awwal
b60feb164c Remove user_id from content renderer although I'm 99.9% sure this isn't
used anywhere anyway.
2012-09-11 01:51:16 -07:00
Ibrahim Awwal
9266ade9b6 Removed helpers.show_if.
I don't know why this was ever defined when python has a ternary operator
which doesn't require its arguments to be evaluated if the condition
evaluates to false, whereas this helper method does.
2012-09-11 01:49:43 -07:00
Ibrahim Awwal
fd6e30abfc Don't try to retrieve roles for anonymous posts. 2012-09-11 01:33:59 -07:00
Ibrahim Awwal
45ba58318f Hide usernames for anonymous posts. 2012-09-11 01:33:59 -07:00
Arjun Singh
a49b638027 Edit post works now. 2012-09-11 01:07:03 -07:00
Matthew Mongeau
79775c6ea8 Remove all number. Toggle search and dropdown. 2012-09-10 21:51:25 -07:00
Ibrahim Awwal
e3ef9993a0 Fix context for posts that don't have it. 2012-09-10 20:35:06 -07:00
Ibrahim Awwal
c2f741c392 Revert "Disable posting anonymously for now."
This reverts commit 6ee6e1c656.
2012-09-10 20:18:46 -07:00
Ibrahim Awwal
12dbdfa0f8 Removed some dead code and marked a method that I think is dead.
Related templates should probably also be deleted. I did this mainly
because it's confusing to have so many functions with similar names and
there's a lot of unused stuff from discussion v1.
2012-09-10 20:07:41 -07:00
Ibrahim Awwal
a8beb2a807 Add context link to threads rendered via AJAX. 2012-09-10 19:48:11 -07:00
Arjun Singh
ca8b299711 drop unread counts for now 2012-09-10 19:16:57 -07:00
Ibrahim Awwal
0da2f60a5e [Fixes #35791223] Clear the WMD preview after posting a new post. 2012-09-10 17:29:34 -07:00
Ibrahim Awwal
96eb40384f Fix markdown in thread view. 2012-09-10 16:45:48 -07:00
Tom Giannattasio
5688cbf0f9 hid inline response toolbar due to lacking inline styles for the icons 2012-09-10 16:14:04 -07:00
Matthew Mongeau
6ee6e1c656 Disable posting anonymously for now. 2012-09-10 16:14:04 -07:00