')
- else if DiscussionUtil.isTA(@model.get("user_id"))
- @$el.addClass("community-ta")
- @$el.prepend('
' + gettext('Community TA') + '
')
-
edit: (event) ->
@trigger "response:edit", event
_delete: (event) ->
@trigger "response:_delete", event
-
- toggleEndorse: (event) ->
- event.preventDefault()
- if not @model.can('can_endorse')
- return
- $elem = $(event.target)
- url = @model.urlFor('endorse')
- endorsed = @model.get('endorsed')
- data = { endorsed: not endorsed }
- @model.set('endorsed', not endorsed)
- @trigger "comment:endorse", not endorsed
- DiscussionUtil.safeAjax
- $elem: $elem
- url: url
- data: data
- type: "POST"
-
-
- renderFlagged: =>
- if window.user.id in @model.get("abuse_flaggers") or (DiscussionUtil.isFlagModerator and @model.get("abuse_flaggers").length > 0)
- @$("[data-role=thread-flag]").addClass("flagged")
- @$("[data-role=thread-flag]").removeClass("notflagged")
- @$(".discussion-flag-abuse").attr("aria-pressed", "true")
- @$(".discussion-flag-abuse").attr("data-tooltip", gettext("Misuse Reported, click to remove report"))
- ###
- Translators: The text between start_sr_span and end_span is not shown
- in most browsers but will be read by screen readers.
- ###
- @$(".discussion-flag-abuse .flag-label").html(interpolate(gettext("Misuse Reported%(start_sr_span)s, click to remove report%(end_span)s"), {"start_sr_span": "", "end_span": ""}, true))
- else
- @$("[data-role=thread-flag]").removeClass("flagged")
- @$("[data-role=thread-flag]").addClass("notflagged")
- @$(".discussion-flag-abuse").attr("aria-pressed", "false")
- @$(".discussion-flag-abuse .flag-label").html(gettext("Report Misuse"))
-
- updateModelDetails: =>
- @renderVote()
- @renderFlagged()
diff --git a/common/static/coffee/src/discussion/views/thread_response_view.coffee b/common/static/coffee/src/discussion/views/thread_response_view.coffee
index 8dc157df9b..e6a3412c59 100644
--- a/common/static/coffee/src/discussion/views/thread_response_view.coffee
+++ b/common/static/coffee/src/discussion/views/thread_response_view.coffee
@@ -1,6 +1,7 @@
if Backbone?
class @ThreadResponseView extends DiscussionContentView
tagName: "li"
+ className: "forum-response"
events:
"click .discussion-submit-comment": "submitComment"
@@ -9,7 +10,8 @@ if Backbone?
$: (selector) ->
@$el.find(selector)
- initialize: ->
+ initialize: (options) ->
+ @collapseComments = options.collapseComments
@createShowView()
renderTemplate: ->
@@ -65,6 +67,15 @@ if Backbone?
collectComments(child)
@model.get('comments').each collectComments
comments.each (comment) => @renderComment(comment, false, null)
+ if @collapseComments && comments.length
+ @$(".comments").hide()
+ @$(".action-show-comments").on("click", (event) =>
+ event.preventDefault()
+ @$(".action-show-comments").hide()
+ @$(".comments").show()
+ )
+ else
+ @$(".action-show-comments").hide()
renderComment: (comment) =>
comment.set('thread', @model.get('thread'))
@@ -155,6 +166,7 @@ if Backbone?
@showView = new ThreadResponseShowView(model: @model)
@showView.bind "response:_delete", @_delete
@showView.bind "response:edit", @edit
+ @showView.on "comment:endorse", => @trigger("comment:endorse")
renderShowView: () ->
@renderSubView(@showView)
diff --git a/common/static/js/src/utility.js b/common/static/js/src/utility.js
index ef540373fc..2ea5da08fc 100644
--- a/common/static/js/src/utility.js
+++ b/common/static/js/src/utility.js
@@ -91,75 +91,7 @@ window.parseQueryString = function(queryString) {
return parameters
};
-// Check if the user recently enrolled in a course by looking at a referral URL
-window.checkRecentEnrollment = function(referrer) {
- var enrolledIn = null;
-
- // Check if the referrer URL contains a query string
- if (referrer.indexOf("?") > -1) {
- referrerQueryString = referrer.split("?")[1];
- } else {
- referrerQueryString = "";
- }
-
- if (referrerQueryString != "") {
- // Convert a non-empty query string into a key/value object
- var referrerParameters = window.parseQueryString(referrerQueryString);
- if ("course_id" in referrerParameters && "enrollment_action" in referrerParameters) {
- if (referrerParameters.enrollment_action == "enroll") {
- enrolledIn = referrerParameters.course_id;
- }
- }
- }
-
- return enrolledIn
-};
-
-window.assessUserSignIn = function(parameters, userID, email, username) {
- // Check if the user has logged in to enroll in a course - designed for when "Register" button registers users on click (currently, this could indicate a course registration when there may not have yet been one)
- var enrolledIn = window.checkRecentEnrollment(document.referrer);
-
- // Check if the user has just registered
- if (parameters.signin == "initial") {
- window.trackAccountRegistration(enrolledIn, userID, email, username);
- } else {
- window.trackReturningUserSignIn(enrolledIn, userID, email, username);
- }
-};
-
-window.trackAccountRegistration = function(enrolledIn, userID, email, username) {
- // Alias the user's anonymous history with the user's new identity (for Mixpanel)
- analytics.alias(userID);
-
- // Map the user's activity to their newly assigned ID
- analytics.identify(userID, {
- email: email,
- username: username
- });
-
- // Track the user's account creation
- analytics.track("edx.bi.user.account.registered", {
- category: "conversion",
- label: enrolledIn != null ? enrolledIn : "none"
- });
-};
-
-window.trackReturningUserSignIn = function(enrolledIn, userID, email, username) {
- // Map the user's activity to their assigned ID
- analytics.identify(userID, {
- email: email,
- username: username
- });
-
- // Track the user's sign in
- analytics.track("edx.bi.user.account.authenticated", {
- category: "conversion",
- label: enrolledIn != null ? enrolledIn : "none"
- });
-};
-
window.identifyUser = function(userID, email, username) {
- // If the signin parameter isn't present but the query string is non-empty, map the user's activity to their assigned ID
analytics.identify(userID, {
email: email,
username: username
diff --git a/common/test/acceptance/fixtures/discussion.py b/common/test/acceptance/fixtures/discussion.py
index fad8ac5686..a521a36c8e 100644
--- a/common/test/acceptance/fixtures/discussion.py
+++ b/common/test/acceptance/fixtures/discussion.py
@@ -30,6 +30,7 @@ class ContentFactory(factory.Factory):
class Thread(ContentFactory):
+ thread_type = "discussion"
anonymous = False
anonymous_to_peers = False
comments_count = 0
@@ -87,7 +88,13 @@ class SingleThreadViewFixture(DiscussionContentFixture):
def addResponse(self, response, comments=[]):
response['children'] = comments
- self.thread.setdefault('children', []).append(response)
+ if self.thread["thread_type"] == "discussion":
+ responseListAttr = "children"
+ elif response["endorsed"]:
+ responseListAttr = "endorsed_responses"
+ else:
+ responseListAttr = "non_endorsed_responses"
+ self.thread.setdefault(responseListAttr, []).append(response)
self.thread['comments_count'] += len(comments) + 1
def _get_comment_map(self):
diff --git a/common/test/acceptance/pages/lms/discussion.py b/common/test/acceptance/pages/lms/discussion.py
index 23ae60fe40..dea713b226 100644
--- a/common/test/acceptance/pages/lms/discussion.py
+++ b/common/test/acceptance/pages/lms/discussion.py
@@ -1,3 +1,5 @@
+from contextlib import contextmanager
+
from bok_choy.page_object import PageObject
from bok_choy.promise import EmptyPromise
@@ -39,6 +41,25 @@ class DiscussionThreadPage(PageObject, DiscussionPageMixin):
query = self._find_within(selector)
return query.present and query.visible
+ @contextmanager
+ def _secondary_action_menu_open(self, ancestor_selector):
+ """
+ Given the selector for an ancestor of a secondary menu, return a context
+ manager that will open and close the menu
+ """
+ self._find_within(ancestor_selector + " .action-more").click()
+ EmptyPromise(
+ lambda: self._is_element_visible(ancestor_selector + " .actions-dropdown"),
+ "Secondary action menu opened"
+ ).fulfill()
+ yield
+ if self._is_element_visible(ancestor_selector + " .actions-dropdown"):
+ self._find_within(ancestor_selector + " .action-more").click()
+ EmptyPromise(
+ lambda: not self._is_element_visible(ancestor_selector + " .actions-dropdown"),
+ "Secondary action menu closed"
+ ).fulfill()
+
def get_response_total_text(self):
"""Returns the response count text, or None if not present"""
return self._get_element_text(".response-count")
@@ -89,10 +110,23 @@ class DiscussionThreadPage(PageObject, DiscussionPageMixin):
def start_response_edit(self, response_id):
"""Click the edit button for the response, loading the editing view"""
- self._find_within(".response_{} .discussion-response .action-edit".format(response_id)).first.click()
+ with self._secondary_action_menu_open(".response_{} .discussion-response".format(response_id)):
+ self._find_within(".response_{} .discussion-response .action-edit".format(response_id)).first.click()
+ EmptyPromise(
+ lambda: self.is_response_editor_visible(response_id),
+ "Response edit started"
+ ).fulfill()
+
+ def is_show_comments_visible(self, response_id):
+ """Returns true if the "show comments" link is visible for a response"""
+ return self._is_element_visible(".response_{} .action-show-comments".format(response_id))
+
+ def show_comments(self, response_id):
+ """Click the "show comments" link for a response"""
+ self._find_within(".response_{} .action-show-comments".format(response_id)).first.click()
EmptyPromise(
- lambda: self.is_response_editor_visible(response_id),
- "Response edit started"
+ lambda: self._is_element_visible(".response_{} .comments".format(response_id)),
+ "Comments shown"
).fulfill()
def is_add_comment_visible(self, response_id):
@@ -108,11 +142,13 @@ class DiscussionThreadPage(PageObject, DiscussionPageMixin):
def is_comment_deletable(self, comment_id):
"""Returns true if the delete comment button is present, false otherwise"""
- return self._is_element_visible("#comment_{} div.action-delete".format(comment_id))
+ with self._secondary_action_menu_open("#comment_{}".format(comment_id)):
+ return self._is_element_visible("#comment_{} .action-delete".format(comment_id))
def delete_comment(self, comment_id):
with self.handle_alert():
- self._find_within("#comment_{} div.action-delete".format(comment_id)).first.click()
+ with self._secondary_action_menu_open("#comment_{}".format(comment_id)):
+ self._find_within("#comment_{} .action-delete".format(comment_id)).first.click()
EmptyPromise(
lambda: not self.is_comment_visible(comment_id),
"Deleted comment was removed"
@@ -120,7 +156,8 @@ class DiscussionThreadPage(PageObject, DiscussionPageMixin):
def is_comment_editable(self, comment_id):
"""Returns true if the edit comment button is present, false otherwise"""
- return self._is_element_visible("#comment_{} .action-edit".format(comment_id))
+ with self._secondary_action_menu_open("#comment_{}".format(comment_id)):
+ return self._is_element_visible("#comment_{} .action-edit".format(comment_id))
def is_comment_editor_visible(self, comment_id):
"""Returns true if the comment editor is present, false otherwise"""
@@ -132,15 +169,16 @@ class DiscussionThreadPage(PageObject, DiscussionPageMixin):
def start_comment_edit(self, comment_id):
"""Click the edit button for the comment, loading the editing view"""
old_body = self.get_comment_body(comment_id)
- self._find_within("#comment_{} .action-edit".format(comment_id)).first.click()
- EmptyPromise(
- lambda: (
- self.is_comment_editor_visible(comment_id) and
- not self.is_comment_visible(comment_id) and
- self._get_comment_editor_value(comment_id) == old_body
- ),
- "Comment edit started"
- ).fulfill()
+ with self._secondary_action_menu_open("#comment_{}".format(comment_id)):
+ self._find_within("#comment_{} .action-edit".format(comment_id)).first.click()
+ EmptyPromise(
+ lambda: (
+ self.is_comment_editor_visible(comment_id) and
+ not self.is_comment_visible(comment_id) and
+ self._get_comment_editor_value(comment_id) == old_body
+ ),
+ "Comment edit started"
+ ).fulfill()
def set_comment_editor_value(self, comment_id, new_body):
"""Replace the contents of the comment editor"""
@@ -269,7 +307,7 @@ class InlineDiscussionThreadPage(DiscussionThreadPage):
def expand(self):
"""Clicks the link to expand the thread"""
- self._find_within(".expand-post").first.click()
+ self._find_within(".forum-thread-expand").first.click()
EmptyPromise(
lambda: bool(self.get_response_total_text()),
"Thread expanded"
diff --git a/common/test/acceptance/tests/test_discussion.py b/common/test/acceptance/tests/test_discussion.py
index 3e4a36a1c5..8c5fe9558a 100644
--- a/common/test/acceptance/tests/test_discussion.py
+++ b/common/test/acceptance/tests/test_discussion.py
@@ -144,6 +144,27 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest, DiscussionResponsePaginati
self.thread_page = DiscussionTabSingleThreadPage(self.browser, self.course_id, thread_id) # pylint:disable=W0201
self.thread_page.visit()
+ def test_marked_answer_comments(self):
+ thread_id = "test_thread_{}".format(uuid4().hex)
+ response_id = "test_response_{}".format(uuid4().hex)
+ comment_id = "test_comment_{}".format(uuid4().hex)
+ thread_fixture = SingleThreadViewFixture(
+ Thread(id=thread_id, commentable_id=self.discussion_id, thread_type="question")
+ )
+ thread_fixture.addResponse(
+ Response(id=response_id, endorsed=True),
+ [Comment(id=comment_id)]
+ )
+ thread_fixture.push()
+ self.setup_thread_page(thread_id)
+ self.assertFalse(self.thread_page.is_comment_visible(comment_id))
+ self.assertFalse(self.thread_page.is_add_comment_visible(response_id))
+ self.assertTrue(self.thread_page.is_show_comments_visible(response_id))
+ self.thread_page.show_comments(response_id)
+ self.assertTrue(self.thread_page.is_comment_visible(comment_id))
+ self.assertTrue(self.thread_page.is_add_comment_visible(response_id))
+ self.assertFalse(self.thread_page.is_show_comments_visible(response_id))
+
@attr('shard_1')
class DiscussionCommentDeletionTest(UniqueCourseTest):
diff --git a/docs/en_us/course_authors/source/Images/DiscussionComponent_Forum.png b/docs/en_us/course_authors/source/Images/DiscussionComponent_Forum.png
deleted file mode 100644
index c5c75b8b11..0000000000
Binary files a/docs/en_us/course_authors/source/Images/DiscussionComponent_Forum.png and /dev/null differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_More_menu.png b/docs/en_us/course_authors/source/Images/Discussion_More_menu.png
new file mode 100644
index 0000000000..297c72bd56
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_More_menu.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_add_response.png b/docs/en_us/course_authors/source/Images/Discussion_add_response.png
new file mode 100644
index 0000000000..c2929defcd
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_add_response.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_answer_question.png b/docs/en_us/course_authors/source/Images/Discussion_answer_question.png
new file mode 100644
index 0000000000..f9a3256f4c
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_answer_question.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_answers_in_list.png b/docs/en_us/course_authors/source/Images/Discussion_answers_in_list.png
new file mode 100644
index 0000000000..9d8819bf62
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_answers_in_list.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_colorcoding.png b/docs/en_us/course_authors/source/Images/Discussion_colorcoding.png
index c6c0954c31..04ef536214 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_colorcoding.png and b/docs/en_us/course_authors/source/Images/Discussion_colorcoding.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_course_wide_post.png b/docs/en_us/course_authors/source/Images/Discussion_course_wide_post.png
index 0b444915bd..2595ed885a 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_course_wide_post.png and b/docs/en_us/course_authors/source/Images/Discussion_course_wide_post.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_expand.png b/docs/en_us/course_authors/source/Images/Discussion_expand.png
new file mode 100644
index 0000000000..912bfdb3cd
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_expand.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_filterfollowing.png b/docs/en_us/course_authors/source/Images/Discussion_filterfollowing.png
index aa9775850e..9e8056ccb7 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_filterfollowing.png and b/docs/en_us/course_authors/source/Images/Discussion_filterfollowing.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_filters.png b/docs/en_us/course_authors/source/Images/Discussion_filters.png
new file mode 100644
index 0000000000..7a850f0671
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_filters.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_follow.png b/docs/en_us/course_authors/source/Images/Discussion_follow.png
index ae953e9a36..f6448c58fe 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_follow.png and b/docs/en_us/course_authors/source/Images/Discussion_follow.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_mouseover.png b/docs/en_us/course_authors/source/Images/Discussion_mouseover.png
new file mode 100644
index 0000000000..05e6558f37
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_mouseover.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_options_mouseover.png b/docs/en_us/course_authors/source/Images/Discussion_options_mouseover.png
new file mode 100644
index 0000000000..4a8cdaaafb
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Discussion_options_mouseover.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_reportmisuse.png b/docs/en_us/course_authors/source/Images/Discussion_reportmisuse.png
index 6a353a9f38..8d8e09ee47 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_reportmisuse.png and b/docs/en_us/course_authors/source/Images/Discussion_reportmisuse.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_sortvotes.png b/docs/en_us/course_authors/source/Images/Discussion_sortvotes.png
index f798d902cd..293cf46605 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_sortvotes.png and b/docs/en_us/course_authors/source/Images/Discussion_sortvotes.png differ
diff --git a/docs/en_us/course_authors/source/Images/Discussion_vote.png b/docs/en_us/course_authors/source/Images/Discussion_vote.png
index 390338a37d..453960684d 100644
Binary files a/docs/en_us/course_authors/source/Images/Discussion_vote.png and b/docs/en_us/course_authors/source/Images/Discussion_vote.png differ
diff --git a/docs/en_us/course_authors/source/Images/Endorse_Discussion.png b/docs/en_us/course_authors/source/Images/Endorse_Discussion.png
index 5ffa90a039..88f86f3507 100644
Binary files a/docs/en_us/course_authors/source/Images/Endorse_Discussion.png and b/docs/en_us/course_authors/source/Images/Endorse_Discussion.png differ
diff --git a/docs/en_us/course_authors/source/Images/NewCategory_Discussion.png b/docs/en_us/course_authors/source/Images/NewCategory_Discussion.png
index d27a34fc0c..e8cdac719b 100644
Binary files a/docs/en_us/course_authors/source/Images/NewCategory_Discussion.png and b/docs/en_us/course_authors/source/Images/NewCategory_Discussion.png differ
diff --git a/docs/en_us/course_authors/source/Images/Post_types_in_list.png b/docs/en_us/course_authors/source/Images/Post_types_in_list.png
new file mode 100644
index 0000000000..6a68570c1d
Binary files /dev/null and b/docs/en_us/course_authors/source/Images/Post_types_in_list.png differ
diff --git a/docs/en_us/course_authors/source/Pin_Discussion.png b/docs/en_us/course_authors/source/Pin_Discussion.png
new file mode 100644
index 0000000000..c1fb8fddd9
Binary files /dev/null and b/docs/en_us/course_authors/source/Pin_Discussion.png differ
diff --git a/docs/en_us/course_authors/source/change_log.rst b/docs/en_us/course_authors/source/change_log.rst
index ee4fa0ec93..29fb550f16 100644
--- a/docs/en_us/course_authors/source/change_log.rst
+++ b/docs/en_us/course_authors/source/change_log.rst
@@ -1,6 +1,22 @@
############
Change Log
############
+
+*****************
+September, 2014
+*****************
+
+.. list-table::
+ :widths: 10 70
+ :header-rows: 1
+
+ * - Date
+ - Change
+ * - 09/02/14
+ - Updated the :ref:`Discussions` and :ref:`Discussions for Students and
+ Staff` chapters to include information about choosing the type of post
+ and to reflect changes in the user interface.
+
**************
August, 2014
diff --git a/docs/en_us/course_authors/source/creating_content/create_discussion.rst b/docs/en_us/course_authors/source/creating_content/create_discussion.rst
index 43a03763e3..8f6cdace03 100644
--- a/docs/en_us/course_authors/source/creating_content/create_discussion.rst
+++ b/docs/en_us/course_authors/source/creating_content/create_discussion.rst
@@ -51,7 +51,7 @@ Create a Discussion Component
course content. The values in the **Category** and **Subcategory** fields
appear in the list of discussion topics on the **Discussion** page. To
uniquely identify the discussion in your course, each **Category** /
- **Subcategory** pair that you supply should be unique.
+ **Subcategory** pair that you supply must be unique.
.. image:: ../Images/Discussion_category_subcategory.png
:alt: The list of discussions with the "Answering More Than Once" topic indented under "Getting Graded"
@@ -102,4 +102,4 @@ In the **Discussion** tab at the top of the page, students can find the
category and subcategory of the discussion in the left pane.
.. image:: ../Images/Discussion_category_subcategory.png
- :alt: Image of the Discussion page from a student's point of view
\ No newline at end of file
+ :alt: Image of the Discussion page from a student's point of view
diff --git a/docs/en_us/course_authors/source/getting_started/glossary.rst b/docs/en_us/course_authors/source/getting_started/glossary.rst
index 8b6ff1fbcb..911bae30e4 100644
--- a/docs/en_us/course_authors/source/getting_started/glossary.rst
+++ b/docs/en_us/course_authors/source/getting_started/glossary.rst
@@ -161,7 +161,13 @@ D
**Discussion**
- The set of topics defined to promote course-wide or unit-specific dialog. Students use the discussion topics to communicate with each other and the course staff in threaded excahnges.
+ The set of topics defined to promote course-wide or unit-specific
+ conversation. Students use the discussion topics to communicate with each
+ other and the course staff in threaded exchanges.
+
+ A discussion is also a type of contribution that you can make to a topic to
+ start an open-ended dialogue. You can also contribute questions to the
+ discussion topics.
See :ref:`Discussions` for more information.
@@ -433,6 +439,29 @@ P
The page in the learning management system that shows students their scores on graded assignments in the course.
+
+.. _Public Unit:
+
+**Public Unit**
+
+ A unit whose **Visibility** option is set to Public so that the unit is visible to students, if the subsection that contains the unit has been released.
+
+ See :ref:`Public and Private Units` for more information.
+
+.. _Q:
+
+*****
+Q
+*****
+
+**Question**
+
+ A question is a type of contribution that you can make to a course discussion
+ topic to surface an issue that the course staff or other students can
+ resolve.
+
+ See :ref:`Discussions` for more information.
+
.. _R:
****
diff --git a/docs/en_us/course_authors/source/running_course/discussions.rst b/docs/en_us/course_authors/source/running_course/discussions.rst
index 94e734e9b2..f001e4c6a6 100644
--- a/docs/en_us/course_authors/source/running_course/discussions.rst
+++ b/docs/en_us/course_authors/source/running_course/discussions.rst
@@ -1,7 +1,7 @@
.. _Discussions:
##################################
-Managing the Course Discussions
+Managing Course Discussions
##################################
Discussions, or discussion forums, foster interaction among your students and
@@ -31,13 +31,13 @@ sections:
Overview
********************************
-Students and staff use course discussions to share ideas, exchange views, and
-consider different viewpoints. In a discussion, there are three hierarchical
-levels of interaction.
+Students and staff use course discussions to share ideas, exchange views,
+consider different viewpoints, and ask questions. In a discussion, there are
+three hierarchical levels of interaction.
* A *post* is the first level of interaction. A post opens a new subject. Posts
are often posed as questions, either to start a conversation or to surface an
- issue that requires some action.
+ issue that requires some action. When you add a post, you categorize it as a **Question** or as a **Discussion**.
* A *response* is the second level of interaction. A response is a reply made
directly to a post to provide a solution or continue the conversation.
@@ -46,13 +46,15 @@ levels of interaction.
clarification or side note made to a specific response, rather than to the
post as a whole.
-The dialog created by a post, its responses, and the comments on those
-responses is called a *thread*.
+The dialogue created by a post, its responses, and the comments on those
+responses is sometimes called a thread.
All course staff members and enrolled students can add posts, responses, and
comments, and view all of the posts, responses, and comments made by other
-course participants. Discussion threads are saved as part of the course
-history.
+course participants. Members of the course community, both staff and students,
+can be given permission to moderate or administer course discussions through a
+set of discussion administration roles. Discussion threads are saved as part of
+the course history.
.. note::
The :ref:`Discussions for Students and Staff` chapter describes features that
@@ -64,7 +66,7 @@ history.
.. _Organizing_discussions:
*************************************************
-Set Up Discussions for Your Course
+Set Up Discussion Topics for Your Course
*************************************************
Discussions in an edX course include both the specific topics that you add to
@@ -77,11 +79,12 @@ Add Units With a Discussion Component
============================================
Typically, all units are added during the design and creation of your course in
-Studio. To add a component to a unit, follow the instructions in :ref:`Working
-with Discussion Components`.
+Studio. To add a discussion topic to a unit, you add a discussion component.
+Follow the instructions in :ref:`Working with Discussion Components`.
-This type of discussion is subject to the release date of the section that
-contains it. Students cannot contribute to these discussions until that date.
+This type of discussion topic is subject to the release date of the section
+that contains it. Students cannot contribute to these discussion topics until
+that date.
=====================================
Create Course-Wide Discussion Topics
@@ -150,24 +153,27 @@ You can designate a team of people to help you run course discussions.
Different options for working with discussions are available through
these roles:
-* Discussion moderators can edit and delete messages at any level, review
+* *Discussion moderators* can edit and delete messages at any level, review
messages flagged for misuse, close and reopen posts, pin posts, and endorse
responses. Posts made by moderators are marked as "By: Staff" in the list of
posts. Responses and comments made by moderators have a colored "Staff"
- banner. This role is often given to course team members who already have the
- Course Staff role.
+ identifier. This role is often given to course team members who already have
+ the Course Staff role.
.. removed this clause from 1st sentence per JAAkana and MHoeber: , and, if the
.. course is cohorted, see posts from all cohorts
-* Discussion community TAs have the same options for working with discussions
+* *Discussion community TAs* have the same options for working with discussions
as moderators. Posts made by community TAs are marked as "By: Community TA"
- in the list of posts. Responses and comments made by community TAs have a
- colored "Community TA" banner. This role is often given to students.
+ in the list of posts on the **Discussion** page. Responses and comments made
+ by community TAs have a colored "Community TA" identifier. This role is often
+ given to students.
-* Discussion admins have the same options for working with discussions as
+.. put this comment in to make the formatting of this bulleted list consistent when output using the spinx template
+
+* *Discussion admins* have the same options for working with discussions as
moderators, and their posts, responses, and comments have the same "Staff"
- identifier. This role can be reserved for assignment to course team members
+ identifiers. This role can be reserved for assignment to course team members
who have the Instructor role only: the discussion admins can then both
moderate discussions and give other users these discussion management roles
whenever necessary.
@@ -179,7 +185,7 @@ addresses or usernames.
click **Membership** and then select **Course Staff** or **Instructor** from
the drop-down list.
-* To get this information for any enrolled student, on the Instructor Dashboard
+* To get this information for an enrolled student, on the Instructor Dashboard
click **Data Download**, then **Download profile information as a CSV**.
To assign a role, you must be the course author or an Instructor (that is, you
@@ -206,9 +212,9 @@ Run a Discussion
*********************
On an ongoing basis, the members of your discussion team run the course
-discussion by making contributions, endorsing responses, and guiding student
-messages into pertinent threads. Techniques that you can use throughout your
-course to make discussions successful follow.
+discussion by making contributions, endorsing responses, marking answers as
+correct, and guiding student messages into pertinent threads. Techniques that
+you can use throughout your course to make discussions successful follow.
==========================================
Use Conventions in Discussion Subjects
@@ -229,13 +235,21 @@ body of a response or comment. Examples follow.
Both your discussion team and your students can use tags like these to search
the discussions more effectively.
+When a post is created its type must be selected: either "question" or
+"discussion". Members of the discussion team should be thoughtful when
+selecting the type for their posts, and encourage students to do the same. See
+:ref:`Find Question Posts and Discussion Posts`.
+
+.. future: changing the type of a post, maybe resequence or separate conventions from post types
+
========================
-Seed Discussions
+Seed Discussion Topics
========================
-To help students learn how to get the most of course discussions, and find the
-best discussion topic to use for their questions, you can seed discussions by
-adding posts before your course starts. Some examples follow.
+To help students learn how to get the most out of course discussions, and find
+the best discussion topic to use for their questions and conversations, you can
+seed discussion topics by adding posts before your course starts. Some examples
+follow.
* In the General topic (which is included in every course by default), add an
[INTRO] post to initiate a thread for student and staff introductions.
@@ -246,8 +260,8 @@ adding posts before your course starts. Some examples follow.
create their own posts.
* If you include discussion components along with problem components in a unit,
- you can add a post that encourages students to use the discussion topic to
- ask for help with the problems, but reminds them not to post the answers.
+ you can add a post that encourages students to use the topic to ask for help
+ with the problems, but reminds them not to post the answers.
======================================
Minimize Thread Proliferation
@@ -259,30 +273,35 @@ long threads (with more than 200 responses and comments) can be difficult to
read, and can therefore result in an unsatisfactory experience in the
discussion.
-* Pin a post. Pinning a post makes it appear at the top of the list of posts.
- As a result, it is more likely that students will see and respond to pinned
- posts. You can write your own post and then pin it, or pin a post by any
- author. Click **Pin Thread**.
+* Pin a post. Pinning a post makes it appear at the top of the list of posts on
+ the **Discussion** page. As a result, it is more likely that students will
+ see and respond to pinned posts. You can write your own post and then pin it,
+ or pin a post by any author. Select the "More" icon and then **Pin**.
.. image:: ../Images/Pin_Discussion.png
:alt: Image of the pin icon for discussion posts
* Endorse a response. Endorsing a response indicates that it provides value to
- the discussion, such as a correct answer to a question. Click the **check
- mark** that displays at upper right of the response.
+ the discussion. Click the "check mark" (or tick mark) icon for the response.
.. image:: ../Images/Endorse_Discussion.png
:alt: Image of the Endorse button for discussion posts
+* Mark a question as answered. You use the same procedure to mark a response as
+ the correct answer to a question as you do to endorse contributions to a
+ discussion: click the "check mark" (or tick mark) icon for correct answers.
+
* Close a post. You can respond to a redundant post by (optionally) pasting in
a link to the post that you prefer students to contribute to, and prevent
- further interaction by closing the post. Click the **Close** button that
- displays below the post to close it.
+ further interaction by closing the post. Select the "More" icon and then
+ **Close** to close it.
-* Provide post/response/comment guidelines. A set of :ref:`Guidance for
- Discussion Moderators` or a post in a course-wide discussion topic (such
- as **General**) can provide guidance about when to start a new thread by
- adding a post, responding to an existing post, or commenting on a response.
+* Provide post/response/comment guidelines. You can post information from the
+ :ref:`overview` in this chapter, or the :ref:`anatomy
+ of edX discussions` in the next chapter,
+ in a course-wide discussion topic (such as General) to provide guidance about
+ when to start a new thread by adding a post, responding to an existing post,
+ or commenting on a response.
.. _Moderating_discussions:
@@ -313,6 +332,11 @@ them available to students as a course handout file or on a defined page in
your course. These guidelines can define your expectations and optionally
introduce features of edX discussions.
+You can also share the :ref:`Discussions for Students and Staff` chapter with
+your students. It describes features that are available to all discussion
+participants, and may be useful to students who are new to online discussion
+forums.
+
.. For a template that you can use to develop your own guidelines, see
.. :ref:`Discussion Forum Guidelines`.
@@ -320,8 +344,8 @@ introduce features of edX discussions.
Develop a Positive Discussion Culture
========================================
-Monitors can cultivate qualities in their own discussion interactions to make
-their influence positive and their time productive.
+Discussion monitors can cultivate qualities in their own discussion
+interactions to make their influence positive and their time productive.
* Encourage quality contributions: thank students whose posts have a positive
impact and who answer questions.
@@ -352,8 +376,34 @@ their influence positive and their time productive.
For a template that you can use to develop guidelines for your course
moderators, see :ref:`Guidance for Discussion Moderators`.
+.. _Find Question Posts and Discussion Posts:
+
+==========================================
+Find Questions and Discussions
+==========================================
+
+When students create posts, they specify the type of post to indicate whether
+they are asking for concrete information (a question) or starting an open-ended
+conversation (a discussion).
+
+On the **Discussion** page, a question mark image identifies posts that ask
+questions, and a conversation bubble image identifies posts that start
+discussions. When an answer is provided and marked as correct for a question, a
+check or tick mark image replaces the question mark image. See :ref:`Answer
+Questions`.
+
+In addition to these visual cues, filters can help you find questions and
+discussions that need review. Above the list of posts on the **Discussion**
+page, the **Show all** filter is selected by default. You can also select:
+
+* **Unread**, to list only the discussions and questions that you have not yet
+ viewed.
+
+* **Unanswered**, to list only questions that do not yet have any responses
+ marked as answers.
+
==================
-Edit Messages
+Edit Messages
==================
Discussion moderators, community TAs, and admins can edit the content of posts,
@@ -364,8 +414,12 @@ text, images, or links.
#. Log in to the site and then select the course on your **Current Courses**
dashboard.
-#. Click the **Edit** button below the post or response or the pencil icon for
- the comment.
+#. Open the **Discussion** page and then open the post with the content that
+ requires editing. You can select a single topic from the drop-down list of
+ discussion topics, apply a filter, or search to locate the post.
+
+#. For the post or for the response or comment that you want to edit, click the
+ "More" icon and then **Edit**.
#. Remove the problematic portion of the message, or replace it with standard
text such as "[REMOVED BY MODERATOR]".
@@ -384,33 +438,41 @@ language may need to be deleted, rather than edited.
#. Log in to the site and then select the course on your **Current Courses**
dashboard.
-#. Click the **Delete** button below the post or response or the "X" icon for
- the comment.
+#. Open the **Discussion** page and then open the post with the content that
+ requires deletion. You can select a single topic from the drop-down list of
+ discussion topics, apply a filter, or search to locate the post.
+
+#. For the post or for the response or comment that you want to delete, click
+ the "More" icon and then **Delete**.
#. Click **OK** to confirm the deletion.
.. how to communicate with the poster?
-.. important:: If a message is threatening or indicates serious harmful intent, contact campus security at your institution. Report the incident before taking any other action.
+.. important:: If a message is threatening or indicates serious harmful
+ intent, contact campus security at your institution. Report the incident
+ before taking any other action.
==================================
Respond to Reports of Misuse
==================================
-Students can use the **Report Misuse** flag to indicate messages that they find
-inappropriate. Moderators, community TAs, and admins can check for messages
-that have been flagged in this way and edit or delete them as needed.
+Students have the option to report contributions that they find inappropriate.
+Moderators, community TAs, and admins can check for messages that have been
+flagged in this way and edit or delete them as needed.
#. View the live version of your course and click **Discussion** at the top of
the page.
-#. On the drop-down Discussion list click **Flagged Discussions**.
+#. In the list of posts on the left side of the page, use the filter drop-down
+ list (set to **Show all** by default) to select **Flagged**.
-#. Review each post listed as a flagged discussion. Posts and responses show a
- flag and **Misuse Reported** in red font; comments show only a red flag.
+#. Review listed posts. A post is listed if it or any of its responses or
+ comments has been reported. The reported contribution includes a
+ **Reported** identifier.
-#. Edit or delete the post, response, or comment. Alternatively, to remove the
- misuse flag from a message click **Misuse Reported** or the red flag icon.
+#. Edit or delete the post, response, or comment. Alternatively, remove the
+ flag: click the "More" icon and then **Unreport**.
===============
Block Users
@@ -443,7 +505,9 @@ course units and all of the course-wide topics are affected.
and Discussion Community TAs are not affected when you close the discussions
for a course. Users with these roles can continue to add to discussions.
-.. note:: To assure that your students understand why they cannot add to discussions, you can add the dates that discussions are closed to the **Course Info** page and post them to a General discussion.
+.. note:: To assure that your students understand why they cannot add to
+ discussions, you can add the dates that discussions are closed to the
+ **Course Info** page and post them to a General discussion.
=====================================
Start-End Date Format Specification
@@ -518,4 +582,6 @@ reopen:
:alt: Same policy value but with a line feed after each bracket and comma,
and an indent before each date
-.. For examples of email messages that you can send to let students know when the course discussions are closed (or open), see :ref:`Example Messages to Students`.
+For examples of email messages that you can send to let students know when the
+course discussions are closed (or open), see :ref:`Example Messages to
+Students`.
\ No newline at end of file
diff --git a/docs/en_us/course_authors/source/running_course/discussions_students.rst b/docs/en_us/course_authors/source/running_course/discussions_students.rst
index 810b2ea5db..9357a13f90 100644
--- a/docs/en_us/course_authors/source/running_course/discussions_students.rst
+++ b/docs/en_us/course_authors/source/running_course/discussions_students.rst
@@ -19,11 +19,7 @@ participation more effective. These include ways to:
* :ref:`Keep Up with New Activity`
-* :ref:`Follow Posts`
-
-* :ref:`Vote for Posts or Responses`
-
-* :ref:`Report Discussion Misuse`
+* :ref:`React to Contributions`
.. _Anatomy of edX Course Discussions:
@@ -60,19 +56,23 @@ Discussion Topics
====================================
Most edX courses include opportunities to discuss specific video lectures,
-reading assignments, questions, or other course content. Each of these content-
-specific discussion opportunities is called a *topic*. When these discussion
-topics are included in a course, they typically appear below the content they apply to.
+reading assignments, homework problems, or other course content. Each of these
+content-specific discussion opportunities is called a *topic*. When these
+discussion topics are included in a course, they typically appear below the
+content they apply to.
.. image:: /Images/Discussion_content_specific.png
- :alt: A discussion topic that appears below a video in the course, identified by a "Show Discussion" link
+ :alt: A discussion topic that appears below a video in the course, identified
+ by a "Show Discussion" link
-Most courses also include one or more topics for discussions about course-wide
-areas of interest, such as "Frequently Asked Questions" or "Troubleshooting".
-You access these topics on the **Discussion** page of the course.
+Most courses also include one or more topics for course-wide discussions, such
+as "Frequently Asked Questions" and "Troubleshooting". You access these topics
+on the **Discussion** page of the course: click the **All Discussions**
+drop-down.
.. image:: /Images/Discussion_course_wide.png
- :alt: Discussion topics are listed on the Discussion page when you click the drop-down list at the left side of the page
+ :alt: Discussion topics are listed on the Discussion page when you click the
+ drop-down list at the left side of the page
When you visit the **Discussion** page, you can read and add to any of the
discussion topics.
@@ -81,14 +81,39 @@ discussion topics.
* Content-specific topics are indented under an identifying category name.
-Notice that while you can access content-specific topics both on the
-**Discussion** page and while you are navigating through course content on the
-**Courseware** page, you can only access the course-wide topics on the
+Notice that you can access content-specific topics both on the **Discussion**
+page and also while you are navigating through course content on the
+**Courseware** page. However, you can only access the course-wide topics on the
**Discussion** page.
-Before you add a post, look through the topics. When add your post to the most
-appropriate topic, others with the same interest can find, read, and respond to
-it more easily.
+Before you add a post, look through the topics. When you add your post to the
+most appropriate topic, others with the same interest can find, read, and
+respond to it more easily.
+
+====================================
+Types of Discussion Posts
+====================================
+
+When you make a contribution to a course discussion topic, it can typically be
+categorized as either a question or a discussion.
+
+* A *question* post raises an issue so that the course staff and community can
+ provide answers.
+
+* A *discussion* post starts a conversation by sharing thoughts and
+ reflections, and inviting community participation.
+
+When you add a post to a discussion topic, you specify whether it is a question
+or a discussion. When you visit the **Discussion** page for your course, a
+question mark image identifies posts that ask questions and a conversation
+bubble image identifies posts that start discussions.
+
+.. image:: ../Images/Post_types_in_list.png
+ :alt: The list of posts with images identifying questions and discussions
+
+If you have any difficulty deciding which type of post you want to add, think
+about whether you want to get concrete information (a question) or start an
+open-ended conversation (a discussion).
.. _Find Posts:
@@ -96,11 +121,12 @@ it more easily.
Find Posts
******************************
-Finding out whether someone else has already started a conversation about the
-same subject that interests you, and then reading and contributing to that
-exchange instead of starting a new one, helps make the time that everyone
-spends with the course discussion more productive. You can search for something
-specific, or you can browse through the posts in a single discussion topic.
+Finding out whether someone else has already asked the same question or
+initiated a conversation about the same subject that interests you, and then
+reading and contributing to that exchange instead of starting a new one, helps
+make the time that everyone spends with the course discussion more productive.
+You can search for something specific, or you can browse through the posts in a
+single discussion topic.
=======================
Search the Discussions
@@ -120,8 +146,8 @@ press Enter, the search tries to find:
level.
* Any usernames that are an exact match to your text. A "Show posts by
- {username}" option displays above any posts that have an exact match at any
- interaction level. Click the username in the message to read that user's
+ {username}" option displays above any posts that have an exact text match at
+ any interaction level. Click the username in the message to read that user's
posts, responses, and comments.
==============================================
@@ -133,7 +159,22 @@ To review posts about a particular part of the course or type of issue, click
down list. (**All Discussions** is selected by default.) Only posts about the
topic you select appear in the list of posts.
-.. add something about endorsed responses(?)
+.. image:: ../Images/Discussion_filters.png
+ :alt: The list of posts with callouts to identify the top filter to select
+ one topic and the filter below it to select by state
+
+=======================================
+Review Only Unread or Unanswered Posts
+=======================================
+
+To limit the posts shown on the **Discussion** page, you can select one of the filter options. Above the list of posts, the **Show all** filter
+is selected by default.
+
+* To list only the discussions and questions that you have not yet viewed,
+ select **Unread**.
+
+* To list only question posts that do not yet have any responses marked as
+ answers, select **Unanswered**.
.. _Add a Post:
@@ -141,14 +182,13 @@ topic you select appear in the list of posts.
Add a Post, Response, or Comment
************************************
-.. this section is likely to be more interesting and valuable when we add the discussion vs. question differentiation
-
================================
Add a Post
================================
To make sure that other students and the course team can find and respond to
-your posts, try to add your posts to the most appropriate topic.
+your post, try to select the correct type for your post: either question or
+discussion.
Add a Post to a Content-Specific Discussion Topic
**************************************************
@@ -162,7 +202,7 @@ Add a Post to a Content-Specific Discussion Topic
**Show Discussion**.
You can scroll through the posts that have already been added: the title and
- the first sentence or two of each post appear. To read the entire post, view
+ the first sentence or two of each post appear. To read an entire post, view
the responses to it, and see any comments, click **Expand discussion**.
4. To add a post, click **New Post**.
@@ -170,7 +210,9 @@ Add a Post to a Content-Specific Discussion Topic
.. image:: /Images/Discussion_content_specific_post.png
:alt: Adding a post about specific course content
-5. Enter a short, descriptive identifier for your post in the **Title** field.
+5. Select the type of post: click **Question** or **Discussion**.
+
+#. Enter a short, descriptive identifier for your post in the **Title** field.
The title is the part of your post that others see when they are browsing on
the **Discussion** page or scrolling through one of the content-specific
topics.
@@ -188,12 +230,14 @@ discussion topics.
#. Click **New Post**.
+#. Select the type of post: click **Question** or **Discussion**.
+
#. Select the most appropriate discussion topic for your post.
-.. image:: /Images/Discussion_course_wide_post.png
- :alt: Selecting the topic for a new post on the Discussion page
+ .. image:: /Images/Discussion_course_wide_post.png
+ :alt: Selecting the topic for a new post on the Discussion page
-4. Supply a short, descriptive **Title**. The title is the part of your post
+5. Supply a short, descriptive **Title**. The title is the part of your post
that others see when they are browsing on the **Discussion** page or
scrolling through one of the content-specific topics.
@@ -223,13 +267,16 @@ Add a Response or Comment to a Content-Specific Discussion Topic
#. Scroll to the post where you want to add your thoughts.
#. Click **Expand discussion**.
+
+ .. image:: /Images/Discussion_expand.png
+ :alt: The **Expand discussion** link under a post
-#. Add a response or comment.
+6. Add a response or comment.
- To add a response to the post, click **Add A Response** below the post. When
- your response is complete, click **Submit**.
+ - To add a response to the post, click **Add A Response**. When your response
+ is complete, click **Submit**.
- To add a comment to a response, click in the **Add a comment** field below
+ - To add a comment to a response, click in the **Add a comment** field below
the response. When your comment is complete, click **Submit**.
Add a Response or Comment to a Course-Wide Discussion Topic
@@ -243,16 +290,18 @@ content-specific discussion topics.
#. Find the post that you want to contribute to. To help you decide where to
add your thoughts, review the current responses and their comments.
-#. Add a response or comment.
+#. Add a response or comment.
- To add a response to the post, click **Add A Response** below the post. When
- your response is complete, click **Submit**.
+ - To add a response to the post, click **Add A Response**. When your response
+ is complete, click **Submit**.
- To add a comment to a response, click in the **Add a comment** field below
+ .. image:: /Images/Discussion_add_response.png
+ :alt: The **Add A Response** button located between a post and its
+ responses
+
+ - To add a comment to a response, click in the **Add a comment** field below
the response. When your comment is complete, click **Submit**.
-.. images to come
-
.. _Keep Up with New Activity:
****************************************
@@ -268,21 +317,30 @@ identify posts that are new, or that have responses or comments that you have
not read yet, and to distinguish them from exchanges that you have already read
completely.
-* Posts that you have not read yet have a blue dialog "bubble".
+* Posts that you have not read yet have a blue callout image.
-* Posts with responses or comments that you have not read yet have a white
- dialog "bubble".
+* Posts that you have read, but with responses or comments that you have not
+ read yet, have a white callout image.
-* Exchanges that you have read completely have a gray dialog "bubble" and
+* Exchanges that you have read completely have a gray callout image and
background.
.. image:: ../Images/Discussion_colorcoding.png
- :alt: The list of posts with posts showing differently colored backgrounds and bubble icons
+ :alt: The list of posts with posts showing differently colored backgrounds
+ and callout images
-These color-coded dialog bubbles appear when you sort the list of posts by
-recent activity or by most activity. If you sort the list of posts by most
-votes instead, the number of votes that the post has received appears in place
-of the bubble icon. See :ref:`Vote for Posts or Responses`.
+The total number of contributions in the exchange (the post and its responses
+and comments) appears in each callout image. To see the number of contributions
+that you haven't read yet, move your cursor over the callout image.
+
+.. image:: ../Images/Discussion_mouseover.png
+ :alt: A post with 4 contributions total and a popup that shows only two are
+ unread
+
+The color-coded callout images appear when you sort the list of posts **by
+recent activity** or **by most activity**. If you sort the list of posts by
+most votes instead, the number of votes that the post has received appears in
+place of the callouts. See :ref:`Vote for Posts or Responses`.
==============================
Receive Daily Digests
@@ -292,37 +350,52 @@ You have the option to receive an email message each day that summarizes
discussion activity for the posts you are following. To receive this daily
digest, click **Discussion** and then select the **Receive updates** checkbox.
-.. _Follow Posts:
+
+.. _React to Contributions:
************************************
-Follow Posts
+Provide Feedback on Contributions
************************************
-If you find a post particularly interesting and want to return to it in the
-future, you can follow it: view that post and click the star icon in its top
-right corner.
+As you read the contributions that other students and staff make to discussion
+topics, you can provide feedback without writing a complete response or
+comment. You can:
-.. image:: ../Images/Discussion_follow.png
- :alt: A post with the Follow icon circled
+* :ref:`Vote for posts and responses` to provide
+ positive feedback.
-Each post that you follow appears with a "Following" badge in the list of
-posts.
+* :ref:`Follow posts` so that you can check back in on
+ interesting conversations and questions easily.
-To list only the posts that you are following, regardless of the discussion
-topic they apply to, click the drop-down Discussion list and select
-**Posts I'm Following**.
+* :ref:`Answer questions, and mark your questions as answered`.
-.. image:: ../Images/Discussion_filterfollowing.png
- :alt: The list of posts with the "Posts I'm Following" filter selected. Every post shows the following badge.
+* :ref:`Report a contribution` that is inappropriate
+ to the course staff.
+
+To select a feedback option, you use the icons at the top right of each post,
+response, or comment. When you move your cursor over these icons a label
+appears.
+
+.. image:: ../Images/Discussion_options_mouseover.png
+ :alt: The icons at top right of a post, shown before the cursor is
+ placed over each one and with the Vote, Follow, and More labels
+
+When you click the "More" icon, a menu of the options that currently apply
+appears.
+
+.. image:: ../Images/Discussion_More_menu.png
+ :alt: The More icon expanded to show a menu with one option and a menu with
+ three options
.. _Vote for Posts or Responses:
-************************************
+==============================
Vote for Posts or Responses
-************************************
+==============================
If you like a post or one of its responses, you can vote for it: view the
-post or response and click the **+** at top right.
+post or response and click the "Vote" icon at top right.
.. image:: ../Images/Discussion_vote.png
:alt: A post with the Vote icon circled
@@ -332,22 +405,70 @@ the top: click the drop-down list of sorting options and select **by most
votes**.
.. image:: ../Images/Discussion_sortvotes.png
- :alt: The list of posts with the "by most votes" sorting option and the number of votes for the post circled
+ :alt: The list of posts with the "by most votes" sorting option and the
+ number of votes for the post circled
The number of votes that each post has received displays in the list of posts.
(Votes for responses are not included in the number.)
+.. _Follow Posts:
+
+==============================
+Follow Posts
+==============================
+
+If you find a post particularly interesting and want to return to it in the
+future, you can follow it: view that post and click the "Follow" icon.
+
+.. image:: ../Images/Discussion_follow.png
+ :alt: A post with the Follow icon circled
+
+Each post that you follow appears with a "Following" indicator in the list of
+posts.
+
+To list only the posts that you are following, regardless of the discussion
+topic they apply to, click the drop-down Discussion list and select
+**Posts I'm Following**.
+
+.. image:: ../Images/Discussion_filterfollowing.png
+ :alt: The list of posts with the "Posts I'm Following" filter selected. Every
+ post in the list shows the following indicator.
+
+.. _Answer Questions:
+
+============================================================
+Answer Questions and Mark Questions as Answered
+============================================================
+
+Anyone in a course can answer questions. Just add a response to the question
+post with your answer.
+
+The person who posted the question (and staff members) can mark responses as
+correct: click the "Mark as Answer" icon that appears at upper right of
+the response.
+
+.. image:: ../Images/Discussion_answer_question.png
+ :alt: A question and a response, with the Mark as Answer icon circled
+
+After at least one response is marked as the answer, a check or tick mark image
+replaces the question mark image for the post in the list on the **Discussion**
+page.
+
+.. image:: ../Images/Discussion_answers_in_list.png
+ :alt: The list of posts with images identifying unanswered and answered
+ questions and discussions
+
.. _Report Discussion Misuse:
-************************************
+==============================
Report Discussion Misuse
-************************************
+==============================
You can flag any post, response, or comment for a discussion moderator to
-review: view the post or response and then click **Report Misuse**. For a
-comment, click the flag.
+review: view the contribution, click the "More" icon, and then click
+**Report**.
.. image:: ../Images/Discussion_reportmisuse.png
- :alt: A post and a response with the "Report Misuse" link circled, and a comment with the flag icon circled
+ :alt: A post and a response with the "Report" link circled
.. Future: DOC-121 As a course author, I need a template of discussion guidelines to give to students
\ No newline at end of file
diff --git a/docs/en_us/data/source/internal_data_formats/change_log.rst b/docs/en_us/data/source/internal_data_formats/change_log.rst
index 664ef0265d..fe3d0c7b40 100644
--- a/docs/en_us/data/source/internal_data_formats/change_log.rst
+++ b/docs/en_us/data/source/internal_data_formats/change_log.rst
@@ -11,6 +11,10 @@ Change Log
* - Date
- Change
+ * - 09/02/14
+ - Updated the :ref:`Discussion Forums Data` chapter to include the
+ ``thread_type`` field for CommentThreads and the ``endorsement`` field
+ for Comments.
* - 08/25/14
- Removed information on course grading. See `Establishing a Grading
Policy li {
- margin: 0 20px 30px;
- }
- }
-
- .discussion-show {
- display: block;
- width: 200px;
- margin: auto;
- font-size: 14px;
- text-align: center;
-
- &.shown {
- .show-hide-discussion-icon {
- background-position: 0 0;
- }
- }
-
- .show-hide-discussion-icon {
- display: inline-block;
- position: relative;
- top: 5px;
- margin-right: 6px;
- width: 21px;
- height: 19px;
- background: url(../images/show-hide-discussion-icon.png) no-repeat;
- background-position: -21px 0;
- }
- }
-
- .new-post-btn {
- display: inline-block;
- }
-
- section.discussion {
- margin-top: 20px;
-
- .threads {
- margin-top: 20px;
- }
-
- /* Course content p has a default margin-bottom of 1.416em, this is just to reset that */
- .discussion-thread {
- padding: 0;
- @include transition(all .25s);
-
- .dogear,
- .vote-btn {
- display: none;
- }
-
- &.expanded {
- padding: 20px 0;
-
- .dogear,
- .vote-btn {
- display: block;
- }
-
- .discussion-article {
- border: 1px solid #b2b2b2;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
- border-radius: 3px;
- }
- }
-
- p {
- margin-bottom: 0em;
- }
-
- .discussion-article {
- border: 1px solid #ddd;
- border-bottom-width: 0;
- background: #fff;
- min-height: 0;
- padding: 10px 10px 15px 10px;
- box-shadow: 0 1px 0 #ddd;
- @include transition(all .2s);
-
- .discussion-post {
- padding: 12px 20px 0 20px;
- @include clearfix;
-
- header {
- padding-bottom: 0;
- margin-bottom: 15px;
-
- h3 {
- font-size: 19px;
- font-weight: 700;
- margin-bottom: 0px;
- }
-
- h4 {
- font-size: 16px;
- }
- }
-
- .post-body {
- font-size: 14px;
- clear: both;
- }
- }
-
- .post-tools {
- margin-left: 20px;
-
- a {
- display: block;
- font-size: 12px;
- line-height: 30px;
-
- &.expand-post:before {
- content: '▾ ';
- }
-
- &.collapse-post:before {
- content: '▴ ';
- }
-
- &.collapse-post {
- display: none;
- }
- }
- }
-
- .responses {
- margin-top: 10px;
-
- header {
- padding-bottom: 0em;
- margin-bottom: 5px;
-
- .posted-by {
- font-size: 0.8em;
- }
- }
- .response-body {
- margin-bottom: 0.2em;
- font-size: 14px;
- }
- }
-
- .discussion-reply-new {
- .wmd-input {
- height: 120px;
- }
- }
-
- // Content that is hidden by default in the inline view
- .post-extended-content{
- display: none;
- }
-
-
- }
- }
- }
-
- .new-post-article {
- display: none;
- margin-top: 20px;
-
- .inner-wrapper {
- max-width: 1180px;
- min-width: 760px;
- margin: auto;
- }
-
- .new-post-form {
- width: 100%;
- margin-bottom: 20px;
- padding: 30px;
- border-radius: 3px;
- background: rgba(0, 0, 0, .55);
- color: #fff;
- box-shadow: none;
- @include clearfix;
- @include box-sizing(border-box);
-
- .form-row {
- margin-bottom: 20px;
- }
-
- .new-post-body .wmd-input {
- @include discussion-wmd-input;
- position: relative;
- width: 100%;
- height: 200px;
- z-index: 1;
- padding: 10px;
- box-sizing: border-box;
- border: 1px solid #333;
- border-radius: 3px 3px 0 0;
- background: #fff;
- font-family: 'Monaco', monospace;
- font-size: 13px;
- line-height: 1.6;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
- }
-
- .new-post-body .wmd-preview {
- @include discussion-wmd-preview;
- position: relative;
- width: 100%;
- //height: 50px;
- margin-top: -1px;
- padding: 25px 20px 10px 20px;
- box-sizing: border-box;
- border: 1px solid #333;
- border-radius: 0 0 3px 3px;
- background: #e6e6e6;
- color: #333;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
- }
-
- .new-post-preview-label {
- position: absolute;
- top: 4px;
- left: 4px;
- font-size: 11px;
- color: #aaa;
- text-transform: uppercase;
- }
-
- .new-post-title{
- width: 100%;
- height: 40px;
- padding: 0 10px;
- box-sizing: border-box;
- border-radius: 3px;
- border: 1px solid #333;
- font-size: 16px;
- font-weight: 700;
- font-family: 'Open Sans', sans-serif;
- color: #333;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
- }
-
- .submit {
- @include blue-button;
- float: left;
- height: 37px;
- margin-top: 10px;
- padding-bottom: 2px;
- border-color: #333;
-
- &:hover, &:focus {
- border-color: #222;
- }
- }
-
- .new-post-cancel {
- @include white-button;
- float: left;
- margin: 10px 0 0 15px;
- border-color: #444;
- }
-
- .options {
- margin-top: 5px;
-
- label {
- display: inline;
- margin-left: 8px;
- font-size: 15px;
- color: #fff;
- text-shadow: none;
- }
- }
- }
-
- .thread-title {
- display: block;
- margin-bottom: 20px;
- font-size: 21px;
- color: #333;
- font-weight: 700;
- }
- }
-
- .new-post-btn {
- @include blue-button;
- display: inline-block;
- font-size: 13px;
- margin-right: 4px;
- }
-
- .new-post-icon {
- display: block;
- float: left;
- width: 16px;
- height: 17px;
- margin: 8px 7px 0 0;
- font-size: 16px;
- vertical-align: middle;
- color: $white;
- }
-
- .moderator-actions {
- padding-left: 0 !important;
- }
-
- section.pagination {
- margin-top: 30px;
-
- nav.discussion-paginator {
- float: right;
-
- ol {
- li {
- list-style: none;
- display: inline-block;
- padding-right: 0.5em;
- a {
- @include white-button;
- }
- }
-
- li.current-page{
- height: 35px;
- padding: 0 15px;
- border: 1px solid #ccc;
- border-radius: 3px;
- font-size: 13px;
- font-weight: 700;
- line-height: 32px;
- color: #333;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
- }
- }
- }
- }
-
- .new-post-body {
- .wmd-panel {
- width: 100%;
- min-width: 500px;
- }
-
- .wmd-button-bar {
- width: 100%;
- }
-
- .wmd-input {
- height: 150px;
- width: 100%;
- background-color: #e9e9e9;
- border: 1px solid #c8c8c8;
- font-family: Monaco, 'Lucida Console', monospace;
- font-style: normal;
- font-size: 0.8em;
- line-height: 1.6em;
- @include border-radius(3px 3px 0 0);
-
- &::-webkit-input-placeholder {
- color: #888;
- }
- }
-
- .wmd-preview {
- position: relative;
- font-family: $sans-serif;
- padding: 25px 20px 10px 20px;
- margin-bottom: 5px;
- box-sizing: border-box;
- border: 1px solid #c8c8c8;
- border-top-width: 0;
- @include border-radius(0 0 3px 3px);
- overflow: hidden;
- @include transition(all, .2s, easeOut);
-
- &:before {
- content: 'PREVIEW';
- position: absolute;
- top: 3px;
- left: 5px;
- font-size: 11px;
- color: #bbb;
- }
-
- p {
- font-family: $sans-serif;
- }
- background-color: #fafafa;
- }
-
- .wmd-button-row {
- position: relative;
- margin-left: 5px;
- margin-right: 5px;
- margin-bottom: 5px;
- margin-top: 10px;
- padding: 0px;
- height: 20px;
- overflow: hidden;
- @include transition(all, .2s, easeOut);
- }
-
- .wmd-spacer {
- width: 1px;
- height: 20px;
- margin-left: 14px;
-
- position: absolute;
- background-color: Silver;
- display: inline-block;
- list-style: none;
- }
-
- .wmd-button {
- width: 20px;
- height: 20px;
- padding-left: 2px;
- padding-right: 3px;
- position: absolute;
- display: inline-block;
- list-style: none;
- cursor: pointer;
- background: none;
- }
-
- .wmd-button > span {
- display: inline-block;
- background-image: url(../images/new-post-icons-full.png);
- background-repeat: no-repeat;
- background-position: 0px 0px;
- width: 20px;
- height: 20px;
- }
-
- .wmd-spacer1 {
- left: 50px;
- }
- .wmd-spacer2 {
- left: 175px;
- }
-
- .wmd-spacer3 {
- left: 300px;
- }
-
- .wmd-prompt-background {
- background-color: Black;
- }
-
- .wmd-prompt-dialog {
- @extend .modal;
- background: #fff;
- }
-
- .wmd-prompt-dialog {
- padding: 20px;
-
- > div {
- font-size: 0.8em;
- font-family: arial, helvetica, sans-serif;
- }
-
- b {
- font-size: 16px;
- }
-
- > form > input[type="text"] {
- border-radius: 3px;
- color: #333;
- }
-
- > form > input[type="button"] {
- border: 1px solid #888;
- font-family: $sans-serif;
- font-size: 14px;
- }
-
- > form > input[type="file"] {
- margin-bottom: 18px;
- }
- }
- }
-
- .wmd-button-row {
- // this is being hidden now because the inline styles to position the icons are not being written
- display: none;
- position: relative;
- height: 12px;
- }
-
- .wmd-button {
- span {
- background-image: url("/static/images/wmd-buttons.png");
- display: inline-block;
- }
- }
-}
\ No newline at end of file
diff --git a/lms/static/sass/discussion/_discussion.scss b/lms/static/sass/discussion/_discussion.scss
index 903ba66143..db9cd944f5 100644
--- a/lms/static/sass/discussion/_discussion.scss
+++ b/lms/static/sass/discussion/_discussion.scss
@@ -1,144 +1,7 @@
-// forums - main styling
+// forums - main app styling
// ====================
-
-// mixins and extends
-@mixin blue-button {
- display: block;
- height: 35px;
- padding: 0 ($baseline*.75);
- border-radius: 3px;
- border: 1px solid #2d81ad;
- @include linear-gradient(top, #6dccf1, #38a8e5);
- font-size: 13px;
- font-weight: 700;
- line-height: 32px;
- color: $white;
- text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
-
- &:hover, &:focus {
- border-color: #297095;
- @include linear-gradient(top, #4fbbe4, #2090d0);
- }
-}
-
-@mixin white-button {
- @include linear-gradient(top, #eee, #ccc);
- display: block;
- border: 1px solid #aaa;
- border-radius: 3px;
- padding: 0 ($baseline*.75);
- height: 35px;
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
- color: $dark-gray;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
- font-weight: 700;
- font-size: 13px;
- line-height: 32px;
-
- &:hover, &:focus {
- @include linear-gradient(top, $white, #ddd);
- }
-}
-
-@mixin dark-grey-button {
- display: block;
- height: 35px;
- padding: 0 ($baseline*.75);
- border-radius: 3px;
- border: 1px solid #222;
- background: -webkit-linear-gradient(top, #777, #555);
- font-size: 13px;
- font-weight: 700;
- line-height: 32px;
- color: $white;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
-
- &:hover, &:focus {
- background: -webkit-linear-gradient(top, #888, #666);
- }
-}
-
-@mixin discussion-wmd-input {
- width: 100%;
- height: 240px;
- margin-top: 0;
- padding: ($baseline/2);
- @include box-sizing(border-box);
- border: 1px solid #aaa;
- border-radius: 3px 3px 0 0;
- background: $white;
- font-family: 'Monaco', monospace;
- font-size: 13px;
- line-height: 1.6;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-}
-
-@mixin discussion-wmd-preview-container {
- width: 100%;
- @include box-sizing(border-box);
- border: 1px solid #aaa;
- border-top: none;
- border-radius: 0 0 3px 3px;
- background: #eee;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-}
-
-@mixin discussion-new-post-wmd-preview-container {
- @include discussion-wmd-preview-container;
- border-color: #333;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
-}
-
-@mixin discussion-wmd-preview-label {
- width: 100%;
- padding-top: 3px;
- padding-left: 5px;
- color: #bbb;
- font-size: 11px;
- text-transform: uppercase;
-}
-
-@mixin discussion-wmd-preview {
- width: 100%;
- padding: 10px 20px;
- color: #333;
-}
-
-@-webkit-keyframes fadeIn {
- 0% { opacity: 0.0; }
- 100% { opacity: 1.0; }
-}
-
-// ===============
-
-// main styling
body.discussion {
- // new post creation
- .new-post-form-errors {
- display: none;
- background: $error-red;
- padding: 0;
- border: 1px solid $dark-gray;
- list-style: none;
- color: $white;
- line-height: 1.6;
- border-radius: 3px;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) inset, 0 1px 0 rgba(255, 255, 255, .2);
-
- li {
- padding: ($baseline/2) $baseline 12px 45px;
- border-bottom: 1px solid #dc4949;
- background: url(../images/white-error-icon.png) no-repeat 15px 14px;
-
- &:last-child {
- border-bottom: none;
- }
- }
- }
-
.course-tabs .right {
float: right;
@@ -155,148 +18,6 @@ body.discussion {
}
}
- .new-post-article {
- display: none;
- margin-top: $baseline;
-
- .inner-wrapper {
- max-width: 1180px;
- min-width: 760px;
- margin: auto;
- }
-
- .left-column {
- @include box-sizing(border-box);
- float: left;
- padding: ($baseline*2);
- width: 32%;
-
- .topic-dropdown-label {
- font-size: 22px;
- font-weight: 700;
- color: $white;
- text-shadow: none;
- }
-
- .form-topic-drop {
- position: relative;
-
- ul {
- list-style: none;
- margin: 0;
- padding: 0;
- }
- }
-
- .form-group-label {
- display: block;
- padding-top: ($baseline/4);
- color: $white;
- }
-
- .topic_dropdown_button {
- @include white-button;
- position: relative;
- z-index: 1000;
- margin-top: 15px;
- border-color: #444;
- height: 40px;
- line-height: 36px;
-
- .drop-arrow {
- float: right;
- color: #999;
- line-height: 37px;
- }
- }
-
- .topic_menu_wrapper {
- display: none;
- position: absolute;
- top: $baseline*2;
- left: 0;
- z-index: 9999;
- width: 100%;
- @include box-sizing(border-box);
- background: #797979;
- border: 1px solid $dark-gray;
- box-shadow: 0 2px 50px rgba(0, 0, 0, .4);
- }
-
- .topic_menu {
- max-height: 400px;
- overflow-y: scroll;
-
- a {
- display: block;
- padding: ($baseline/2) 15px;
- border-top: 1px solid #5f5f5f;
- font-size: 14px;
- font-weight: 700;
- line-height: 18px;
- color: #eee;
- @include transition(none);
-
- &:hover, &:focus {
- background-color: #666;
- }
-
- .topic-menu-span {
- color: #eee;
- }
- }
-
- li li {
- a {
- padding-left: 39px;
- background: url(../images/nested-icon.png) no-repeat 17px 10px;
- }
- }
-
- li li li {
- a {
- padding-left: 63px;
- background: url(../images/nested-icon.png) no-repeat 41px 10px;
- }
- }
- }
-
- .topic_menu_search {
- padding: $baseline/2;
- border-bottom: 1px solid black;
- }
-
- .form-topic-drop-search-input {
- width: 100%;
- height: 30px;
- padding: 0 15px;
- @include box-sizing(border-box);
- border-radius: 30px;
- border: 1px solid $dark-gray;
- box-shadow: 0 1px 3px rgba(0, 0, 0, .25) inset;
- background: -webkit-linear-gradient(top, #eee, $white);
- font-size: 11px;
- line-height: 16px;
- color: #333;
- }
- }
-
- .right-column {
- float: left;
- width: 68%;
- padding: ($baseline*2);
- @include box-sizing(border-box);
- }
-
- .wmd-button {
- background: none;
- }
-
- .wmd-button span {
- background: url(../images/new-post-icons-full.png) no-repeat;
- }
- }
-
.edit-post-form {
@include clearfix;
margin-bottom: ($baseline*2);
@@ -341,92 +62,12 @@ body.discussion {
font-size: 16px;
font-family: $sans-serif;
}
-
}
.comments .edit-post-form h1 {
@extend %t-title6;
}
- .new-post-form {
- @include clearfix;
- border-radius: 3px;
- width: 100%;
- background: $shadow-d2;
- box-shadow: 0 1px 2px $shadow-d2 inset, 0 1px 0 rgba(255, 255, 255, .5);
- color: $white;
-
- .form-row {
- margin-bottom: $baseline;
- }
-
- .new-post-body .wmd-input {
- @include discussion-wmd-input;
- @include box-sizing(border-box);
- position: relative;
- z-index: 1;
- width: 100%;
- height: 150px;
- background: $white;
- }
-
- .new-post-body .wmd-preview-container {
- @include discussion-new-post-wmd-preview-container;
- }
-
- .new-post-body .wmd-preview-label {
- @include discussion-wmd-preview-label;
- }
-
- .new-post-body .wmd-preview {
- @include discussion-wmd-preview;
- }
-
- .new-post-title {
- @include box-sizing(border-box);
- border: 1px solid $dark-gray;
- border-radius: 3px;
- padding: 0 ($baseline/2);
- width: 100%;
- height: 40px;
- box-shadow: 0 1px 3px $shadow inset;
- color: $dark-gray;
- font-weight: 700;
- }
-
- .submit {
- @include blue-button;
- float: left;
- margin-top: ($baseline/2);
- border-color: $dark-gray;
- padding-bottom: ($baseline/10);
- height: 37px;
-
- &:hover, &:focus {
- border-color: #222;
- }
- }
-
- .new-post-cancel {
- @include white-button;
- float: left;
- margin: ($baseline/2) 0 0 ($baseline*.75);
- border-color: #444;
- }
-
- .options {
- margin-top: ($baseline*2);
-
- label {
- display: inline;
- margin-left: ($baseline/2);
- color: $white;
- text-shadow: none;
- font-size: 15px;
- }
- }
- }
-
.thread-title {
display: block;
margin-bottom: $baseline;
@@ -467,9 +108,6 @@ body.discussion {
}
}
-
-
-
.wmd-panel {
min-width: 500px;
width: 100%;
@@ -776,7 +414,7 @@ body.discussion {
.discussion-article {
position: relative;
- min-height: 468px;
+ min-height: 500px;
background-image: url(../images/bg-texture.png);
a {
@@ -784,7 +422,7 @@ body.discussion {
}
h1 {
- margin-bottom: $baseline/2;
+ margin-bottom: ($baseline/4);
font-size: 28px;
font-weight: 700;
letter-spacing: 0;
@@ -793,17 +431,14 @@ body.discussion {
.posted-details {
font-size: 12px;
- font-style: italic;
color: #888;
.username {
- display: block;
- font-size: 16px;
font-weight: 700;
}
- span {
- font-style: italic;
+ .timeago, .top-post-status {
+ color: inherit;
}
}
@@ -816,43 +451,6 @@ body.discussion {
p + p {
margin-top: $baseline;
}
-
- .dogear {
- display: block;
- position: absolute;
- top: -1px;
- right: -1px;
- width: 52px;
- height: 51px;
- background: url(../images/follow-dog-ear.png) 0 -52px no-repeat;
- @include transition(none);
-
- &.is-followed {
- background-position: 0 0;
- }
- }
-
-
-
- }
-
- .discussion-post {
- padding: ($baseline*2) ($baseline*2) $baseline ($baseline*2);
- box-shadow: 0 1px 3px $shadow;
- background-color: $white;
- border-radius: 3px 3px 0 0;
-
- > header .vote-btn {
- position: relative;
- z-index: 100;
- margin-top: ($baseline/4);
- margin-left: ($baseline*2);
- }
-
- .post-tools {
- @include clearfix;
- margin-top: 15px;
- }
}
.discussion-post header,
@@ -860,9 +458,11 @@ body.discussion {
margin-bottom: $baseline;
}
-
-
.responses {
+ &:empty {
+ display: none;
+ }
+
list-style: none;
margin-top: $baseline;
padding: 0px ($baseline*2);
@@ -917,7 +517,6 @@ body.discussion {
text-transform: uppercase;
}
-
&.loading {
height: 0;
margin: 0;
@@ -930,7 +529,7 @@ body.discussion {
.discussion-response {
@include box-sizing(border-box);
border-radius: 3px 3px 0 0;
- padding: $baseline $baseline 0;
+ padding: $baseline;
background-color: $white;
}
.posted-by {
@@ -959,79 +558,6 @@ body.discussion {
}
}
- .vote-btn {
- position: relative;
- z-index: 100;
- float: right;
- display: block;
- height: 27px;
- padding: 0 8px;
- border-radius: 5px;
- border: 1px solid #b2b2b2;
- @include linear-gradient(top, $white 35%, #ebebeb);
- box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
- font-size: 12px;
- font-weight: 700;
- line-height: 25px;
- color: #333;
-
- .plus-icon {
- display: inline-block;
- width: 10px;
- height: 10px;
- margin: 8px 6px 0 0;
- background: url(../images/vote-plus-icon.png) no-repeat;
- font-size: 18px;
- text-indent: -9999px;
- color: #17b429;
- overflow: hidden;
- }
-
- &.is-cast {
- border-color: #379a42;
- @include linear-gradient(top, #50cc5e, #3db84b);
- color: $white;
- text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
- box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 2px $shadow;
-
- .plus-icon {
- background-position: 0 -10px;
- color: #336a39;
- text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
- }
- }
- }
-
- .endorse-btn {
- display: block;
- float: right;
- width: 27px;
- height: 27px;
- margin-right: ($baseline/2);
- border-radius: 27px;
- border: 1px solid #a0a0a0;
- @include linear-gradient(top, $white 35%, $gray-l4);
- box-shadow: 0 1px 1px $shadow-l1;
-
- .check-icon {
- display: block;
- width: 13px;
- height: 12px;
- margin: 8px auto;
- background: url(../images/endorse-icon.png) no-repeat;
- }
-
- &.is-endorsed {
- border: 1px solid #4697c1;
- @include linear-gradient(top, #6dccf1, #38a8e5);
- box-shadow: 0 1px 1px $shadow-l1, 0 1px 0 rgba(255, 255, 255, .4) inset;
-
- .check-icon {
- background-position: 0 -12px;
- }
- }
- }
-
blockquote {
background: $gray-l5;
border-radius: 3px;
@@ -1039,89 +565,6 @@ body.discussion {
font-size: 14px;
}
- .comments {
- margin: 0;
- border-radius: 0 0 3px 3px;
- padding: 0;
- background: $gray-l6;
- box-shadow: 0 1px 3px -1px $shadow inset;
- list-style: none;
-
- > li {
- border-top: 1px solid $gray-l4;
- padding: ($baseline/2) $baseline;
- }
-
-
- blockquote {
- background: $gray-l4;
- border-radius: 3px;
- padding: ($baseline/4) ($baseline/2);
- font-size: 14px;
- }
-
- .comment-form {
- @include clearfix;
-
- .comment-form-input {
- padding: ($baseline/4) ($baseline/2);
- background-color: $white;
- font-size: 14px;
- }
-
- .discussion-submit-comment {
- @include blue-button;
- float: left;
- margin-top: 8px;
- }
-
- .wmd-input {
- height: 40px;
- }
-
- .discussion-errors {
- margin: 0;
- }
- }
-
- .response-body {
- font-size: 13px;
- margin-bottom: ($baseline/2);
-
- p + p {
- margin-top: 12px;
- }
- }
-
- .posted-details {
- font-size: 11px;
- }
-
- .staff-label {
- margin-left: ($baseline/10);
- padding: 0 ($baseline/5);
- border-radius: 2px;
- background: #009FE2;
- font-size: 9px;
- font-weight: 700;
- font-style: normal;
- color: white;
- text-transform: uppercase;
- }
- }
-
- .community-ta-label{
- margin-left: ($baseline/10);
- padding: 0 ($baseline/5);
- border-radius: 2px;
- background: $forum-color-community-ta;
- font-size: 9px;
- font-weight: 700;
- font-style: normal;
- color: white;
- text-transform: uppercase;
- }
-
.comment-form {
padding: ($baseline/2) 0;
@@ -1153,85 +596,11 @@ body.discussion {
}
}
- .moderator-actions {
- margin: 0;
- padding: $baseline 0;
- @include clearfix;
-
- li {
- float: left;
- margin-right: ($baseline/2);
- list-style: none;
- }
-
- a {
- @include white-button;
- height: 26px;
- @include linear-gradient(top, $white 35%, #ebebeb);
- font-size: 13px;
- line-height: 24px;
- color: #737373;
- font-weight: normal;
- box-shadow: 0 1px 1px $shadow-l1;
-
- &:hover, &:focus {
- @include linear-gradient(top, $white 35%, #ddd);
- }
-
- .delete-icon {
- display: block;
- float: left;
- width: 10px;
- height: 10px;
- margin: 8px 4px 0 0;
- background: url(../images/moderator-delete-icon.png) no-repeat;
- }
-
- .edit-icon {
- display: block;
- float: left;
- width: 10px;
- height: 10px;
- margin: 7px 4px 0 0;
- background: url(../images/moderator-edit-icon.png) no-repeat;
- }
- }
- }
-
-
-
-
.main-article.new {
display: none;
padding: ($baseline*2.5);
}
- .new-post-form {
- margin-top: $baseline;
- @include clearfix;
- }
-
- .new-post-form .submit {
- @include blue-button;
- float: left;
- margin-top: ($baseline/2);
- padding-bottom: ($baseline/10);
- }
-
- .new-post-form .options {
- float: right;
- margin-top: $baseline;
- font-size: 14px;
-
- label {
- margin-left: ($baseline/5);
- }
- }
-
-
-
-
-
.discussion-reply-new {
padding: $baseline ($baseline*1.5);
@include clearfix;
@@ -1279,16 +648,6 @@ body.discussion {
// ====================
-// post actions -global
-.global-discussion-actions {
- height: 60px;
- @include linear-gradient(top, #ebebeb, #d9d9d9);
- border-radius: 0 3px 0 0;
- border-bottom: 1px solid #bcbcbc;
-}
-
-// ====================
-
// inline discussion module and profile thread styling
.discussion-module {
@extend .discussion-body;
@@ -1372,16 +731,6 @@ body.discussion {
margin-bottom: $baseline;
@include transition(all .25s linear 0s);
- .dogear {
- display: none;
- }
-
- &.expanded {
- .dogear{
- display: block;
- }
- }
-
p {
margin-bottom: 0;
}
@@ -1403,7 +752,8 @@ body.discussion {
max-height: 600px;
.group-visibility-label {
- margin: $baseline ($baseline*1.5) ($baseline*-0.5);
+ font-weight: 400;
+ margin-bottom: ($baseline*0.5);
}
.discussion-post {
@@ -1439,10 +789,10 @@ body.discussion {
}
}
- h3 {
+ h1 {
font-size: 19px;
font-weight: 700;
- margin-bottom: 0px;
+ margin-bottom: 0px !important; // Override courseware CSS
}
h4 {
@@ -1524,97 +874,6 @@ body.discussion {
margin: auto;
}
- .new-post-form {
- width: 100%;
- margin-bottom: $baseline;
- padding: 30px;
- border-radius: 3px;
- background: rgba(0, 0, 0, .55);
- color: $white;
- box-shadow: none;
- @include clearfix;
- @include box-sizing(border-box);
-
- .form-row {
- margin-bottom: $baseline;
- }
-
- .new-post-body .wmd-input {
- @include discussion-wmd-input;
- position: relative;
- width: 100%;
- height: 200px;
- z-index: 1;
- padding: $baseline/2;
- @include box-sizing(border-box);
- border: 1px solid #333;
- border-radius: 3px 3px 0 0;
- background: $white;
- font-family: 'Monaco', monospace;
- font-size: 13px;
- line-height: 1.6;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
- }
-
- .new-post-body .wmd-preview-container {
- @include discussion-new-post-wmd-preview-container;
- }
-
- .new-post-body .wmd-preview-label {
- @include discussion-wmd-preview-label;
- }
-
- .new-post-body .wmd-preview {
- @include discussion-wmd-preview;
- }
-
- .new-post-title{
- width: 100%;
- height: 40px;
- padding: 0 $baseline/2;
- @include box-sizing(border-box);
- border-radius: 3px;
- border: 1px solid #333;
- font-size: 16px;
- font-weight: 700;
- font-family: 'Open Sans', sans-serif;
- color: #333;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
- }
-
- .submit {
- @include blue-button;
- float: left;
- height: 37px;
- margin-top: $baseline/2;
- padding-bottom: 2px;
- border-color: #333;
-
- &:hover, &:focus {
- border-color: #222;
- }
- }
-
- .new-post-cancel {
- @include white-button;
- float: left;
- margin: $baseline/2 0 0 15px;
- border-color: #444;
- }
-
- .options {
- margin-top: 5px;
-
- label {
- display: inline;
- margin-left: 8px;
- font-size: 15px;
- color: $white;
- text-shadow: none;
- }
- }
- }
-
.thread-title {
display: block;
margin-bottom: $baseline;
@@ -1643,10 +902,6 @@ body.discussion {
color: $white;
}
- .moderator-actions {
- padding-left: 0 !important;
- }
-
section.pagination {
margin-top: 30px;
@@ -1678,148 +933,6 @@ body.discussion {
}
}
- .new-post-body {
- .wmd-panel {
- width: 100%;
- min-width: 500px;
- }
-
- .wmd-button-bar {
- width: 100%;
- }
-
- .wmd-input {
- height: 150px;
- width: 100%;
- background-color: #e9e9e9;
- border: 1px solid #c8c8c8;
- font-family: Monaco, 'Lucida Console', monospace;
- font-style: normal;
- font-size: 0.8em;
- line-height: 1.6em;
- border-radius: 3px 3px 0 0;
-
- &::-webkit-input-placeholder {
- color: #888;
- }
- }
-
- .wmd-button-row {
- position: relative;
- margin: ($baseline/2) ($baseline/4) ($baseline/4) ($baseline/4);
- padding: 0;
- height: 30px;
- overflow: hidden;
- @include transition(all .2s ease-out 0s);
- }
-
- .wmd-spacer {
- width: 1px;
- height: 20px;
- margin-left: 14px;
-
- position: absolute;
- background-color: Silver;
- display: inline-block;
- list-style: none;
- }
-
- .wmd-button {
- width: 20px;
- height: 20px;
- padding-left: 2px;
- padding-right: 3px;
- position: absolute;
- display: inline-block;
- list-style: none;
- cursor: pointer;
- background: none;
- }
-
- .wmd-button > span {
- display: inline-block;
- background-image: url(../images/new-post-icons-full.png);
- background-repeat: no-repeat;
- background-position: 0px 0px;
- width: 20px;
- height: 20px;
- }
-
- .wmd-spacer1 {
- left: 50px;
- }
- .wmd-spacer2 {
- left: 175px;
- }
-
- .wmd-spacer3 {
- left: 300px;
- }
-
- .wmd-prompt-background {
- background-color: Black;
- }
-
- .wmd-prompt-dialog {
- @extend .modal;
- background: $white;
- }
-
- .wmd-prompt-dialog {
- padding: $baseline;
-
- > div {
- font-size: 0.8em;
- font-family: arial, helvetica, sans-serif;
- }
-
- b {
- font-size: 16px;
- }
-
- > form > input[type="text"] {
- border-radius: 3px;
- color: #333;
- }
-
- > form > input[type="button"] {
- border: 1px solid #888;
- font-family: $sans-serif;
- font-size: 14px;
- }
-
- > form > input[type="file"] {
- margin-bottom: 18px;
- }
- }
- }
-
- .wmd-button-row {
- // this is being hidden now because the inline styles to position the icons are not being written
- position: relative;
- height: 25px;
- }
-
- .wmd-button {
- span {
- width: 20px;
- height: 20px;
- background-image: url("/static/images/wmd-buttons.png");
- display: inline-block;
- }
- }
-
- .wmd-spacer1 {
- left: 50px;
- }
-
- .wmd-spacer2 {
- left: 175px;
- }
-
- .wmd-spacer3 {
- left: 300px;
- }
.edit-post-form {
width: 100%;
margin-bottom: $baseline;
@@ -1864,102 +977,11 @@ body.discussion {
}
.discussion-user-threads {
- @extend .discussion-module
-}
+ @extend .discussion-module;
-// ====================
-
-// post actions - pinning
-.discussion-pin {
- font-size: 12px;
- float:right;
- padding-right: 5px;
- font-style: italic;
- margin-right: $baseline/2;
- opacity: 0.8;
-
- &.admin-pin {
- cursor: pointer;
-
- &:hover, &:focus {
- @include transition(opacity .2s linear 0s);
- opacity: 1.0;
- }
- }
- }
-
-.discussion-pin-inline {
- font-size: 12px;
- float:right;
- font-style: italic;
- position: relative;
- right:-20px;
- top:-13px;
- margin-right:35px;
- margin-top:13px;
- opacity: 1.0;
-}
-
-.notpinned .icon {
- display: block;
- float: left;
- margin: 3px;
- width: 10px;
- height: 14px;
- padding-right: 3px;
- color: #333;
-}
-
-.pinned .icon {
- display: block;
- float: left;
- margin: 3px;
- width: 10px;
- height: 14px;
- padding-right: 3px;
- color: $pink;
-}
-
-.pinned span {
- color: $pink;
- font-style: italic;
-}
-
-.notpinned span {
- color: #333;
- font-style: italic;
-}
-
-.pinned-false
-{
-display:none;
-}
-
-// ====================
-
-// post actions - flagging
-.discussion-flag-abuse, .discussion-delete-comment, .discussion-edit-comment {
- font-size: 12px;
- float:right;
- margin-left: ($baseline/2);
- font-style: italic;
- cursor:pointer;
- color: $dark-gray;
- opacity: 0.8;
-
- &:hover, &:focus {
- @include transition(opacity .2s linear 0s);
- opacity: 1.0;
+ .discussion-post {
+ padding-bottom: $baseline !important;
}
-
- .flag-label {
- font-style: italic;
- margin-left: ($baseline/4);
- }
-}
-
-.flagged * {
- color: $pink;
}
// ====================
diff --git a/lms/static/sass/discussion/_mixins.scss b/lms/static/sass/discussion/_mixins.scss
new file mode 100644
index 0000000000..0e463cb71f
--- /dev/null
+++ b/lms/static/sass/discussion/_mixins.scss
@@ -0,0 +1,156 @@
+// discussion - mixins and extends
+// ====================
+
+@mixin blue-button {
+ @include linear-gradient(top, #6dccf1, #38a8e5);
+ display: block;
+ border: 1px solid #2d81ad;
+ border-radius: 3px;
+ padding: 0 ($baseline*.75);
+ height: 35px;
+ color: $white;
+ text-shadow: none;
+ font-size: 13px;
+ line-height: 35px;
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
+
+ &:hover, &:focus {
+ @include linear-gradient(top, #4fbbe4, #2090d0);
+ border-color: #297095;
+ }
+}
+
+@mixin white-button {
+ @include linear-gradient(top, $white, $gray-l5);
+ display: block;
+ border: 1px solid #aaa;
+ border-radius: 3px;
+ padding: 0 ($baseline*.75);
+ height: 35px;
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
+ color: $dark-gray;
+ text-shadow: none;
+ font-size: 13px;
+ line-height: 35px;
+
+ &:hover, &:focus {
+ @include linear-gradient(top, $white, $gray-l6);
+ }
+}
+
+@mixin dark-grey-button {
+ display: block;
+ border: 1px solid #222;
+ border-radius: 3px;
+ padding: 0 ($baseline*.75);
+ height: 35px;
+ background: -webkit-linear-gradient(top, #777, #555);
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
+ color: $white;
+ text-shadow: none;
+ font-size: 13px;
+ line-height: 35px;
+
+ &:hover, &:focus {
+ background: -webkit-linear-gradient(top, #888, #666);
+ }
+}
+
+@mixin discussion-wmd-input {
+ @include box-sizing(border-box);
+ margin-top: 0;
+ border: 1px solid #aaa;
+ border-radius: 3px 3px 0 0;
+ padding: ($baseline/2);
+ width: 100%;
+ height: 240px;
+ background: $white;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
+ font-size: 13px;
+ font-family: 'Monaco', monospace;
+ line-height: 1.6;
+}
+
+@mixin discussion-wmd-preview-container {
+ @include box-sizing(border-box);
+ border: 1px solid #aaa;
+ border-top: none;
+ border-radius: 0 0 3px 3px;
+ width: 100%;
+ background: #eee;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
+}
+
+@mixin discussion-new-post-wmd-preview-container {
+ @include discussion-wmd-preview-container;
+ border-color: #333;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
+}
+
+@mixin discussion-wmd-preview-label {
+ padding-top: 3px;
+ padding-left: 5px;
+ width: 100%;
+ color: #bbb;
+ text-transform: uppercase;
+ font-size: 11px;
+}
+
+@mixin discussion-wmd-preview {
+ padding: 10px 20px;
+ width: 100%;
+ color: #333;
+}
+
+@-webkit-keyframes fadeIn {
+ 0% { opacity: 0.0; }
+ 100% { opacity: 1.0; }
+}
+
+// extends - content - text overflow by ellipsis
+%cont-truncated {
+ @include box-sizing(border-box);
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+@mixin forum-post-label($color) {
+ @extend %t-weight4;
+ @include font-size(9);
+ display: inline;
+ margin-top: ($baseline/4);
+ border: 1px solid;
+ border-radius: 3px;
+ padding: 1px 6px;
+ text-transform: uppercase;
+ white-space: nowrap;
+
+ border-color: $color;
+ color: $color;
+
+ .icon {
+ margin-right: ($baseline/5);
+ }
+
+ &:last-child {
+ margin-right: 0;
+ }
+
+ &.is-hidden {
+ display: none;
+ }
+}
+
+@mixin forum-user-label($color) {
+ @include font-size(9);
+ @extend %t-weight5;
+ vertical-align: middle;
+ margin-left: ($baseline/4);
+ border-radius: 2px;
+ padding: 0 ($baseline/5);
+ background: $color;
+ font-style: normal;
+ text-transform: uppercase;
+ color: white;
+}
diff --git a/lms/static/sass/discussion/elements/_actions.scss b/lms/static/sass/discussion/elements/_actions.scss
new file mode 100644
index 0000000000..76afecdfe2
--- /dev/null
+++ b/lms/static/sass/discussion/elements/_actions.scss
@@ -0,0 +1,313 @@
+.discussion.container, .discussion-module {
+
+ // discussion - elements - actions
+ // ====================
+
+ // UI: general action list
+ .post-actions-list,
+ .response-actions-list,
+ .comment-actions-list {
+ @extend %ui-no-list;
+ text-align: right;
+
+ .actions-item {
+ @include box-sizing(border-box);
+ display: block;
+ margin: ($baseline/4) 0;
+
+ &.is-hidden {
+ display: none;
+ }
+ }
+
+ .more-wrapper {
+ position: relative;
+ }
+ }
+
+ // ====================
+
+ // UI: general actions dropdown layout
+ .actions-dropdown {
+ @extend %ui-no-list;
+ @extend %ui-depth1;
+ display: none;
+ position: absolute;
+ top: 100%;
+ right: 0;
+ pointer-events: none;
+ min-width: ($baseline*6.5);
+
+ &.is-expanded {
+ display: block;
+ pointer-events: auto;
+ }
+
+ .actions-dropdown-list {
+ @include box-sizing(border-box);
+ box-shadow: 0 1px 1px $shadow-l1;
+ position: relative;
+ width: 100%;
+ border-radius: 3px;
+ margin: 5px 0 0 0;
+ border: 1px solid $gray-l3;
+ padding: ($baseline/2) ($baseline*0.75);
+ background: $white;
+
+ // ui triangle/nub
+ &:after,
+ &:before {
+ bottom: 100%;
+ right: 3px;
+ border: solid transparent;
+ content: " ";
+ height: 0;
+ width: 0;
+ position: absolute;
+ pointer-events: none;
+ }
+
+ &:after {
+ border-color: $transparent;
+ border-bottom-color: $white;
+ border-width: 6px;
+ margin-right: 1px;
+ }
+
+ &:before {
+ border-color: $transparent;
+ border-bottom-color: $gray-l3;
+ border-width: 7px;
+ }
+ }
+
+ .actions-item {
+ display: block;
+ margin: 0;
+
+ &.is-hidden {
+ display: none;
+ }
+ }
+ }
+
+ // ====================
+
+ // UI: general action
+ .action-button {
+ @include transition(border .5s linear 0s);
+ @include box-sizing(border-box);
+ display: inline-block;
+ border: 1px solid transparent;
+ border-radius: 5px;
+ color: $gray-l1;
+
+ .action-icon {
+ @extend %t-icon7;
+ display: inline-block;
+ height: $baseline;
+ width: $baseline;
+ border: 1px solid $gray-l3;
+ border-radius: 3px;
+ text-align: center;
+ color: $gray-l1;
+
+ .icon {
+ vertical-align: middle;
+ }
+ }
+
+ .action-label {
+ @extend %t-copy-sub2;
+ display: inline-block;
+ vertical-align: middle;
+ padding: 0 8px;
+ color: $gray-l1;
+ opacity: 0;
+ }
+
+
+ &:hover, &:focus {
+
+ .action-label {
+ opacity: 1;
+ }
+
+ .action-icon {
+ border-radius: 0 3px 3px 0;
+ }
+ }
+
+ // specific button styles
+ &.action-follow {
+
+ .action-label {
+ color: $blue-d1;
+ }
+
+ &.is-checked, &:hover, &:focus {
+
+ .action-icon {
+ background-color: $forum-color-following;
+ border: 1px solid $blue-d1;
+ color: $white;
+ }
+ }
+
+ &:hover, &:focus {
+ border-color: $forum-color-following;
+ }
+ }
+
+ &.action-vote {
+
+ .action-label {
+ opacity: 1;
+ }
+
+ &.is-checked, &:hover, &:focus {
+
+ .action-icon {
+ background-color: $green-d1;
+ border: 1px solid $green-d2;
+ color: $white;
+ }
+ }
+
+ &:hover, &:focus {
+ border-color: $green-d2;
+
+ .action-label {
+ color: $green-d2;
+ }
+ }
+ }
+
+ &.action-endorse {
+
+ &.is-checked, &:hover, &:focus {
+
+ .action-icon {
+ background-color: $blue-d1;
+ border: 1px solid $blue-d2;
+ color: $white;
+ }
+ }
+
+ &:hover, &:focus {
+ border-color: $blue-d2;
+
+ .action-label {
+ color: $blue-d2;
+ }
+ }
+ }
+
+ &.action-answer {
+
+ &.is-checked, &:hover, &:focus {
+
+ .action-icon {
+ border: 1px solid $green-d1;
+ background-color: $green-d1;
+ color: $white;
+ }
+ }
+
+ &:hover, &:focus {
+ border-color: $green-d1;
+
+ .action-label {
+ color: $green-d2;
+ }
+ }
+ }
+
+ // more drop-down menu
+ &.action-more {
+ position: relative;
+
+ &:hover, &:focus {
+ border-color: $gray;
+
+ .action-icon {
+ border: 1px solid $gray;
+ background-color: $gray;
+ color: $white;
+ }
+
+ .action-label {
+ opacity: 1;
+ color: $black;
+ }
+ }
+ }
+ }
+
+ // ====================
+
+ .actions-dropdown {
+
+ // UI: secondary action
+ .action-list-item {
+ @extend %t-copy-sub2;
+ display: block;
+ padding: ($baseline/10) 0;
+ white-space: nowrap;
+ text-align: right;
+ color: $gray-l1;
+
+ &:hover, &:focus {
+ color: $link-color;
+ }
+
+ .action-icon {
+ display: inline-block;
+ width: ($baseline/2);
+ margin-left: ($baseline/4);
+ color: inherit;
+ }
+
+ .action-label {
+ display: inline-block;
+ color: inherit;
+ }
+
+ // CASE: checked
+ &.is-checked {
+ // CASE: pin action
+ &.action-pin {
+ color: $pink;
+ }
+
+ // CASE: report action
+ &.action-report {
+ color: $pink;
+ }
+
+ // CASE: hover for any action
+ &:hover, &:focus {
+ color: $link-color;
+ }
+ }
+ }
+ }
+
+ .action-button, .action-list-item {
+ .action-label {
+ .label-checked {
+ display: none;
+ }
+ }
+
+ &.is-checked {
+ .label-unchecked {
+ display: none;
+ }
+
+ .label-checked {
+ display: inline;
+ }
+ }
+ }
+}
diff --git a/lms/static/sass/discussion/elements/_editor.scss b/lms/static/sass/discussion/elements/_editor.scss
new file mode 100644
index 0000000000..0d5a374a4d
--- /dev/null
+++ b/lms/static/sass/discussion/elements/_editor.scss
@@ -0,0 +1,168 @@
+// discussion - elements - editor
+// ====================
+
+// UI: general editor styling
+
+// TO-DO: isolate out all editing styling from _discussion.scss and clean up cases defined below once general syling exists
+
+// =========================
+
+// CASE: new post
+.forum-new-post-form {
+ .wmd-input {
+ @include discussion-wmd-input;
+ @include box-sizing(border-box);
+ position: relative;
+ z-index: 1;
+ width: 100%;
+ height: 150px;
+ background: $white;
+ }
+
+ .wmd-preview-container {
+ @include discussion-new-post-wmd-preview-container;
+ }
+
+ .wmd-preview-label {
+ @include discussion-wmd-preview-label;
+ }
+
+ .wmd-preview {
+ @include discussion-wmd-preview;
+ }
+
+ .wmd-button {
+ background: none;
+ }
+}
+
+// =========================
+
+// CASE: inline styling
+// TO-DO: additional styling cleanup here necessary, for now this case was ported over from _discussion.scss
+.discussion-module {
+
+ .wmd-panel {
+ width: 100%;
+ min-width: 500px;
+ }
+
+ .wmd-button-bar {
+ width: 100%;
+ }
+
+ .wmd-input {
+ width: 100%;
+ height: 150px;
+ border-radius: 3px 3px 0 0;
+ font-style: normal;
+ font-size: 0.8em;
+ font-family: Monaco, 'Lucida Console', monospace;
+ line-height: 1.6em;
+
+ &::-webkit-input-placeholder {
+ color: #888;
+ }
+ }
+
+ .wmd-button-row {
+ @include transition(all .2s ease-out 0s);
+ position: relative;
+ overflow: hidden;
+ margin: ($baseline/2) ($baseline/4) ($baseline/4) ($baseline/4);
+ padding: 0;
+ height: 30px;
+ }
+
+ .wmd-spacer {
+ position: absolute;
+ display: inline-block;
+ margin-left: 14px;
+ width: 1px;
+ height: 20px;
+ background-color: Silver;
+ list-style: none;
+ }
+
+ .wmd-button {
+ position: absolute;
+ display: inline-block;
+ padding-right: 3px;
+ padding-left: 2px;
+ width: 20px;
+ height: 20px;
+ background: none;
+ list-style: none;
+ cursor: pointer;
+ }
+
+ .wmd-button > span {
+ display: inline-block;
+ width: 20px;
+ height: 20px;
+ background-image: url('/static/images/wmd-buttons-transparent.png');
+ background-position: 0px 0px;
+ background-repeat: no-repeat;
+ }
+
+ .wmd-spacer1 {
+ left: 50px;
+ }
+ .wmd-spacer2 {
+ left: 175px;
+ }
+
+ .wmd-spacer3 {
+ left: 300px;
+ }
+
+ .wmd-prompt-background {
+ background-color: Black;
+ }
+
+ .wmd-prompt-dialog {
+ @extend .modal;
+ background: $white;
+ }
+
+ .wmd-prompt-dialog {
+ padding: $baseline;
+
+ > div {
+ font-size: 0.8em;
+ font-family: arial, helvetica, sans-serif;
+ }
+
+ b {
+ font-size: 16px;
+ }
+
+ > form > input[type="text"] {
+ border-radius: 3px;
+ color: #333;
+ }
+
+ > form > input[type="button"] {
+ border: 1px solid #888;
+ font-family: $sans-serif;
+ font-size: 14px;
+ }
+
+ > form > input[type="file"] {
+ margin-bottom: 18px;
+ }
+ }
+
+ .wmd-button-row {
+ // this is being hidden now because the inline styles to position the icons are not being written
+ position: relative;
+ height: 25px;
+ }
+
+ .wmd-button {
+ span {
+ background-image: url("/static/images/wmd-buttons.png");
+ display: inline-block;
+ }
+ }
+}
diff --git a/lms/static/sass/discussion/elements/_labels.scss b/lms/static/sass/discussion/elements/_labels.scss
new file mode 100644
index 0000000000..12f6a46ec5
--- /dev/null
+++ b/lms/static/sass/discussion/elements/_labels.scss
@@ -0,0 +1,37 @@
+// discussion - elements - labels
+// ====================
+
+body.discussion, .discussion-module {
+ .post-label-pinned {
+ @include forum-post-label($forum-color-pinned);
+ }
+
+ .post-label-following {
+ @include forum-post-label($forum-color-following);
+ }
+
+ .post-label-reported {
+ @include forum-post-label($forum-color-reported);
+ }
+
+ .post-label-closed {
+ @include forum-post-label($forum-color-closed);
+ }
+
+ .post-label-by-staff {
+ @include forum-post-label($forum-color-staff);
+ }
+
+ .post-label-by-community-ta {
+ @include forum-post-label($forum-color-community-ta);
+ }
+
+ .user-label-staff {
+ @include forum-user-label($forum-color-staff);
+ }
+
+ .user-label-community-ta {
+ @include forum-user-label($forum-color-community-ta);
+ }
+
+}
\ No newline at end of file
diff --git a/lms/static/sass/discussion/elements/_navigation.scss b/lms/static/sass/discussion/elements/_navigation.scss
index cdb15d324e..76b33427e9 100644
--- a/lms/static/sass/discussion/elements/_navigation.scss
+++ b/lms/static/sass/discussion/elements/_navigation.scss
@@ -1,3 +1,6 @@
+// discussion - elements - navigation
+// ====================
+
.forum-nav {
@include box-sizing(border-box);
float: left;
@@ -124,23 +127,37 @@
background-color: $gray-l5;
padding: ($baseline/4) ($baseline/2);
color: $black;
+ text-align: right;
+}
+
+.forum-nav-filter-main {
+ @include box-sizing(border-box);
+ display: inline-block;
+ width: 50%;
+ text-align: left;
+}
+
+.forum-nav-filter-cohort, .forum-nav-sort {
+ @include box-sizing(border-box);
+ display: inline-block;
+ width: 50%;
+ text-align: right;
}
%forum-nav-select {
border: none;
max-width: 100%;
background-color: transparent;
- font: inherit;
+}
+
+.forum-nav-filter-main-control {
+ @extend %forum-nav-select;
}
.forum-nav-filter-cohort-control {
@extend %forum-nav-select;
}
-.forum-nav-sort {
- float: right;
-}
-
.forum-nav-sort-control {
@extend %forum-nav-select;
}
@@ -176,14 +193,35 @@
vertical-align: middle;
}
+.forum-nav-thread-wrapper-0 {
+ @extend %forum-nav-thread-wrapper;
+ width: 7%;
+
+ .icon {
+ @include font-size(14);
+ }
+
+ .icon-comments {
+ color: $gray-l2;
+ }
+
+ .icon-ok {
+ color: $forum-color-marked-answer;
+ }
+
+ .icon-question {
+ color: $pink;
+ }
+}
+
.forum-nav-thread-wrapper-1 {
@extend %forum-nav-thread-wrapper;
- width: 70%;
+ width: 80%;
}
.forum-nav-thread-wrapper-2 {
@extend %forum-nav-thread-wrapper;
- width: 30%;
+ width: 13%;
text-align: right;
}
@@ -192,51 +230,6 @@
display: block;
}
-%forum-nav-thread-label {
- @extend %t-weight4;
- @include font-size(9);
- display: inline;
- margin-top: ($baseline/4);
- border: 1px solid;
- border-radius: 3px;
- padding: 1px 6px;
- text-transform: uppercase;
- white-space: nowrap;
-
- &:last-child {
- margin-right: 0;
- }
-
- .icon {
- margin-right: ($baseline/5);
- }
-
-}
-
-.forum-nav-thread-label-pinned {
- @extend %forum-nav-thread-label;
- border-color: $forum-color-pinned;
- color: $forum-color-pinned;
-}
-
-.forum-nav-thread-label-following {
- @extend %forum-nav-thread-label;
- border-color: $forum-color-following;
- color: $forum-color-following;
-}
-
-.forum-nav-thread-label-staff {
- @extend %forum-nav-thread-label;
- border-color: $forum-color-staff;
- color: $forum-color-staff;
-}
-
-.forum-nav-thread-label-community-ta {
- @extend %forum-nav-thread-label;
- border-color: $forum-color-community-ta;
- color: $forum-color-community-ta;
-}
-
%forum-nav-thread-wrapper-2-content {
@include font-size(11);
display: inline-block;
@@ -249,11 +242,6 @@
}
}
-.forum-nav-thread-endorsed {
- @extend %forum-nav-thread-wrapper-2-content;
- color: $green-d1;
-}
-
.forum-nav-thread-votes-count {
@extend %forum-nav-thread-wrapper-2-content;
}
diff --git a/lms/static/sass/discussion/utilities/_shame.scss b/lms/static/sass/discussion/utilities/_shame.scss
index 347ae0d683..af92ff2e5a 100644
--- a/lms/static/sass/discussion/utilities/_shame.scss
+++ b/lms/static/sass/discussion/utilities/_shame.scss
@@ -66,9 +66,16 @@
// navigation - sort and filter bar
// --------------------------------
-// Override global span rules
-.forum-nav-sort-label {
- color: inherit;
+// Override global label rules
+.forum-nav-filter-main, .forum-nav-filter-cohort, .forum-nav-sort {
+ font: inherit;
+ line-height: 1em;
+ margin-bottom: 0;
+}
+
+// Override global select rules
+.forum-nav-filter-main-control, .forum-nav-filter-cohort-control, .forum-nav-sort-control {
+ font: inherit;
}
// --------------------------------
@@ -95,3 +102,55 @@ li[class*=forum-nav-thread-label-] {
display: none !important;
}
}
+
+// -------------
+// new post form
+// -------------
+
+.forum-new-post-form {
+ // Override global label rules
+ .post-type {
+ text-shadow: none;
+ }
+
+ .post-type, .topic-filter-label {
+ margin-bottom: 0;
+ }
+
+ // Override global ul rules
+ .topic-menu {
+ padding-left: 0;
+ }
+
+ .topic-menu, .topic-submenu {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+
+ // Override global span rules
+ .post-topic-button .drop-arrow {
+ line-height: 36px;
+ }
+
+ .topic-title {
+ line-height: 14px;
+ }
+}
+
+// -------
+// Actions
+// -------
+
+.discussion.container, .discussion-module {
+
+ // Override courseware
+ .post-actions-list, .response-actions-list, .comment-actions-list {
+ @extend %t-copy-sub2;
+ padding-left: 0 !important;
+ }
+
+ // Override global span
+ .action-label span, .action-icon span {
+ color: inherit;
+ }
+}
diff --git a/lms/static/sass/discussion/utilities/_variables.scss b/lms/static/sass/discussion/utilities/_variables.scss
index 4009d74d3b..d9d296734c 100644
--- a/lms/static/sass/discussion/utilities/_variables.scss
+++ b/lms/static/sass/discussion/utilities/_variables.scss
@@ -1,5 +1,8 @@
$forum-color-active-thread: tint($blue, 85%);
$forum-color-pinned: $pink;
+$forum-color-reported: $pink;
+$forum-color-closed: $black;
$forum-color-following: $blue;
$forum-color-staff: $blue;
$forum-color-community-ta: $green-d1;
+$forum-color-marked-answer: $green-d1;
diff --git a/lms/static/sass/discussion/views/_new-post.scss b/lms/static/sass/discussion/views/_new-post.scss
new file mode 100644
index 0000000000..db80cd986b
--- /dev/null
+++ b/lms/static/sass/discussion/views/_new-post.scss
@@ -0,0 +1,258 @@
+// discussion - views - new post
+// ====================
+
+// UI: form structure
+.forum-new-post-form {
+ @include clearfix;
+ box-sizing: border-box;
+ margin: 0;
+ border-radius: 3px;
+ padding: ($baseline*2);
+ min-width: 760px;
+ max-width: 1180px;
+ background: $gray-l5;
+
+ .post-field {
+ margin-bottom: $baseline;
+
+ .field-label {
+ display: inline-block;
+ width: 50%;
+ vertical-align: top;
+ line-height: 40px;
+
+ .field-input {
+ display: inline-block;
+ width: 100%;
+ vertical-align: top;
+ }
+
+ .field-label-text {
+ display: inline-block;
+ width: 25%;
+ vertical-align: top;
+ text-transform: uppercase;
+ font-size: 12px;
+ line-height: 40px;
+ }
+
+ .field-label-text + .field-input {
+ width: 75%;
+ }
+ }
+
+ // UI: support text for input fields
+ .field-help {
+ @include box-sizing(border-box);
+ display: inline-block;
+ padding-left: $baseline;
+ width: 50%;
+ font-size: 12px;
+ }
+ }
+
+ .post-options {
+ margin-bottom: ($baseline/2);
+ }
+}
+
+// CASE: inline styling
+.discussion-module .forum-new-post-form {
+ background: $white;
+}
+
+// ====================
+
+// UI: inputs
+.forum-new-post-form {
+ .post-topic-button {
+ @include white-button;
+ @extend %cont-truncated;
+ z-index: 1000;
+ padding: 0 $baseline 0 ($baseline*.75);
+ height: 40px;
+ font-size: 14px;
+ line-height: 36px;
+
+ .drop-arrow {
+ float: right;
+ color: #999;
+ }
+ }
+
+ .post-type-input {
+ @extend %text-sr;
+ }
+
+ .post-type-label {
+ @extend %cont-truncated;
+ @include box-sizing(border-box);
+ @include white-button;
+ @include font-size(14);
+ display: inline-block;
+ padding: 0 ($baseline/2);
+ width: 48%;
+ height: 40px;
+ text-align: center;
+ color: $gray-d3;
+ font-weight: 600;
+ line-height: 36px;
+
+ .icon {
+ margin-right: 5px;
+ }
+ }
+
+ .post-type-input:checked + .post-type-label {
+ background-color: $forum-color-active-thread;
+ background-image: none;
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) inset;
+ }
+
+ .post-type-input:focus + .post-type-label {
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) inset, 0 0 2px 2px $blue;
+ }
+
+ input[type=text].field-input {
+ @include box-sizing(border-box);
+ border: 1px solid $gray-l2;
+ border-radius: 3px;
+ padding: 0 $baseline/2;
+ height: 40px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
+ color: #333;
+ font-weight: 700;
+ font-size: 16px;
+ font-family: 'Open Sans', sans-serif;
+ }
+
+ .post-option {
+ @include box-sizing(border-box);
+ display: inline-block;
+ margin-right: $baseline;
+ border: 1px solid transparent;
+ border-radius: 3px;
+ padding: ($baseline/2);
+
+ &:hover {
+ border-color: $gray-l3;
+ }
+
+ &.is-enabled {
+ border-color: $blue;
+ color: $blue;
+ }
+
+ .post-option-input {
+ margin-right: ($baseline/2);
+ }
+
+ .icon {
+ margin-right: 0.5em;
+ }
+ }
+}
+
+// ====================
+
+// UI: actions
+.forum-new-post-form {
+ .submit {
+ @include blue-button;
+ display: inline-block;
+ margin-right: ($baseline/2);
+ }
+
+ .cancel {
+ @include white-button;
+ display: inline-block;
+ }
+}
+
+// ====================
+
+// UI: errors - new post creation
+.forum-new-post-form {
+ .post-errors {
+ margin-bottom: $baseline;
+ border-radius: 3px;
+ padding: 0;
+ background: $error-red;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) inset, 0 1px 0 rgba(255, 255, 255, .2);
+ color: $white;
+ list-style: none;
+
+ .post-error {
+ padding: ($baseline/2) $baseline 12px 45px;
+ border-bottom: 1px solid $red;
+ background: url(../images/white-error-icon.png) no-repeat 15px 14px;
+
+ &:last-child {
+ border-bottom: none;
+ }
+ }
+ }
+}
+
+// ====================
+
+// UI: topic menu
+
+// TO-DO: refactor to use _navigation.scss as general topic selector
+.forum-new-post-form .post-topic {
+ position: relative;
+
+ .topic-menu-wrapper {
+ @include box-sizing(border-box);
+ position: absolute;
+ top: 40px;
+ left: 0;
+ z-index: 9999;
+ border: 1px solid $gray-l3;
+ width: 100%;
+ background: $white;
+ box-shadow: 0 2px 1px $shadow;
+ }
+
+ .topic-filter-label {
+ border-bottom: 1px solid $gray-l2;
+ padding: ($baseline/4);
+ }
+
+ .topic-filter-input {
+ @include box-sizing(border-box);
+ border: 1px solid $gray-l3;
+ padding: 0 15px;
+ width: 100%;
+ height: 30px;
+ color: #333;
+ font-size: 11px;
+ line-height: 16px;
+ }
+
+ .topic-menu {
+ overflow-y: scroll;
+ max-height: 400px;
+ list-style: none;
+ }
+
+ .topic-submenu {
+ padding-left: $baseline;
+ list-style: none;
+ }
+
+ .topic-title {
+ display: block;
+ border-bottom: 1px solid $gray-l3;
+ padding: ($baseline/2);
+ font-size: 14px;
+ }
+
+ a.topic-title {
+ @include transition(none);
+
+ &:hover, &:focus {
+ background-color: $gray-l4;
+ }
+ }
+}
diff --git a/lms/static/sass/discussion/views/_response.scss b/lms/static/sass/discussion/views/_response.scss
new file mode 100644
index 0000000000..72ea60c55f
--- /dev/null
+++ b/lms/static/sass/discussion/views/_response.scss
@@ -0,0 +1,9 @@
+.forum-response .action-show-comments {
+ @include box-sizing(border-box);
+ @include font-size(13);
+ display: block;
+ padding: ($baseline/2) $baseline;
+ width: 100%;
+ background: $gray-l6;
+ box-shadow: 0 1px 3px -1px $shadow inset;
+}
diff --git a/lms/static/sass/discussion/views/_thread.scss b/lms/static/sass/discussion/views/_thread.scss
new file mode 100644
index 0000000000..71a7da7a41
--- /dev/null
+++ b/lms/static/sass/discussion/views/_thread.scss
@@ -0,0 +1,126 @@
+// discussion - thread layout
+// ====================
+
+// general thread layout
+body.discussion, .discussion-module {
+
+ // post layout
+ .discussion-post {
+ padding: ($baseline*2) ($baseline*2) $baseline ($baseline*2);
+ border-radius: 3px 3px 0 0;
+ background-color: $white;
+
+ .post-header-content {
+ display: inline-block;
+ width: flex-grid(9,12);
+ }
+
+ .post-header-actions {
+ display: inline-block;
+ float: right;
+ vertical-align: middle;
+ width: flex-grid(3,12);
+ }
+ }
+
+ // response layout
+ .discussion-response {
+ min-height: ($baseline*7.5);
+
+ .username {
+ @include font-size(14);
+ @extend %t-weight5;
+ }
+
+ .response-header-content {
+ display: inline-block;
+ vertical-align: top;
+ width: flex-grid(9,12);
+ }
+
+ .response-header-actions {
+ width: flex-grid(3,12);
+ float: right;
+ }
+ }
+
+ // comments layout
+ .comments {
+ @extend %ui-no-list;
+ border-radius: 0 0 3px 3px;
+ background: $gray-l6;
+ box-shadow: 0 1px 3px -1px $shadow inset;
+
+ > li {
+ border-top: 1px solid $gray-l4;
+ padding: ($baseline/2) $baseline;
+ }
+
+
+ blockquote {
+ background: $gray-l4;
+ border-radius: 3px;
+ padding: ($baseline/4) ($baseline/2);
+ font-size: 14px;
+ }
+
+ .comment-form {
+ @include clearfix;
+
+ .comment-form-input {
+ padding: ($baseline/4) ($baseline/2);
+ background-color: $white;
+ font-size: 14px;
+ }
+
+ .discussion-submit-comment {
+ @include blue-button;
+ float: left;
+ margin-top: 8px;
+ }
+
+ .wmd-input {
+ height: 40px;
+ }
+
+ .discussion-errors {
+ margin: 0;
+ }
+ }
+
+ .response-body {
+ display: inline-block;
+ margin-bottom: ($baseline/2);
+ width: flex-grid(10,12);
+ font-size: 13px;
+
+ p + p {
+ margin-top: 12px;
+ }
+ }
+
+ .comment-actions-list {
+ display: inline-block;
+ width: flex-grid(2,12);
+ vertical-align: top;
+ }
+
+ //TO-DO : clean up posted-details styling, currently reused by responses and comments
+ .posted-details {
+ margin-top: 0;
+ }
+ }
+}
+
+.forum-thread-main-wrapper {
+ border-bottom: 1px solid $white; // Prevent collapsing margins
+ border-radius: 3px 3px 0 0;
+ background-color: $white;
+}
+
+body.discussion, .discussion-thread.expanded {
+ .forum-thread-main-wrapper {
+ box-shadow: 0 1px 3px $shadow;
+ }
+}
+
diff --git a/lms/static/sass/elements/_controls.scss b/lms/static/sass/elements/_controls.scss
index 776c2e3ac2..f094f78df1 100644
--- a/lms/static/sass/elements/_controls.scss
+++ b/lms/static/sass/elements/_controls.scss
@@ -237,6 +237,54 @@
}
}
+// blue secondary button outline style
+%btn-secondary-blue-outline {
+ @extend %t-action2;
+ @extend %btn;
+ @extend %btn-edged;
+ box-shadow: none;
+ border: 1px solid $m-blue-d3;
+ padding: ($baseline/2) $baseline;
+ background: transparent;
+ color: $m-blue-d3;
+
+ &:hover, &:active, &:focus {
+ box-shadow: 0 2px 1px 0 $m-blue-d4;
+ background: $m-blue-d1;
+ color: $white;
+ }
+
+ &.current, &.active {
+ box-shadow: inset 0 2px 1px 1px $m-blue-d2;
+ background: $m-blue;
+ color: $m-blue-d2;
+
+ &:hover, &:active, &:focus {
+ box-shadow: inset 0 2px 1px 1px $m-blue-d3;
+ color: $m-blue-d3;
+ }
+ }
+
+ &.disabled, &[disabled] {
+ box-shadow: none;
+ }
+}
+
+// grey secondary button outline style
+%btn-secondary-grey-outline {
+ @extend %btn-secondary-blue-outline;
+ border: 1px solid $gray-l4;
+
+ &:hover, &:active, &:focus {
+ box-shadow: none;
+ border: 1px solid $m-blue-d3;
+ }
+
+ &.disabled, &[disabled] {
+ box-shadow: none;
+ }
+}
+
// ====================
// application: canned actions
diff --git a/lms/static/sass/multicourse/_account.scss b/lms/static/sass/multicourse/_account.scss
index 26cafdc432..00b19e636d 100644
--- a/lms/static/sass/multicourse/_account.scss
+++ b/lms/static/sass/multicourse/_account.scss
@@ -230,6 +230,21 @@
margin: 0 0 ($baseline/4) 0;
}
}
+
+ .cta-login {
+
+ h3.title,
+ .instructions {
+ display: inline-block;
+ margin-bottom: 0;
+ }
+
+ .cta-login-action {
+ @extend %btn-secondary-grey-outline;
+ padding: ($baseline/10) ($baseline*.75);
+ margin-left: ($baseline/4);
+ }
+ }
}
// forms
@@ -275,6 +290,17 @@
}
}
+ .group-form-personalinformation {
+
+ .field-education-level,
+ .field-gender,
+ .field-yob {
+ display: inline-block;
+ vertical-align: top;
+ margin-bottom: 0;
+ }
+ }
+
// individual fields
.field {
margin: 0 0 $baseline 0;
@@ -304,6 +330,16 @@
font-size: em(13);
}
+ &.password {
+ position: relative;
+
+ .tip {
+ position: absolute;
+ top: 0;
+ right: 0;
+ }
+ }
+
input, textarea {
width: 100%;
margin: 0;
@@ -432,9 +468,7 @@
}
.action-primary {
- float: left;
width: flex-grid(8,8);
- margin-right: flex-gutter(0);
}
.action-secondary {
@@ -452,16 +486,71 @@
}
// forms - third-party auth
- .form-third-party-auth {
+
+ // UI: deco - divider
+ .deco-divider {
+ position: relative;
+ display: block;
+ margin: ($baseline*1.5) 0;
+ border-top: ($baseline/5) solid $m-gray-l4;
+
+ .copy {
+ @extend %t-copy-lead1;
+ @extend %t-weight4;
+ position: absolute;
+ top: -($baseline);
+ left: 43%;
+ padding: ($baseline/4) ($baseline*1.5);
+ background: white;
+ text-align: center;
+ color: $m-gray-l2;
+ }
+ }
+
+ // downplay required note
+ .instructions .note {
+ @extend %t-copy-sub2;
+ display: block;
+ font-weight: normal;
+ color: $gray;
+ }
+
+ .form-actions.form-third-party-auth {
+ width: flex-grid(8,8);
margin-bottom: $baseline;
- button {
- margin-right: $baseline;
+ button[type="submit"] {
+ @extend %btn-secondary-blue-outline;
+ width: flex-grid(4,8);
+ margin-right: ($baseline/2);
.icon {
color: inherit;
margin-right: $baseline/2;
}
+
+ &:last-child {
+ margin-right: 0;
+ }
+
+ &.button-Google:hover {
+ box-shadow: 0 2px 1px 0 #8D3024;
+ background-color: #dd4b39;
+ border: 1px solid #A5382B;
+ }
+
+ &.button-Facebook:hover {
+ box-shadow: 0 2px 1px 0 #30487C;
+ background-color: #3b5998;
+ border: 1px solid #263A62;
+ }
+
+ &.button-LinkedIn:hover {
+ box-shadow: 0 2px 1px 0 #005D8E;
+ background-color: #0077b5;
+ border: 1px solid #06527D;
+ }
+
}
}
@@ -536,7 +625,6 @@
.introduction {
header {
height: 120px;
- border-bottom: 1px solid $m-gray;
background: transparent $login-banner-image 0 0 no-repeat;
}
}
@@ -548,7 +636,6 @@
.introduction {
header {
height: 120px;
- border-bottom: 1px solid $m-gray;
background: transparent $register-banner-image 0 0 no-repeat;
}
}
diff --git a/lms/static/sass/multicourse/_dashboard.scss b/lms/static/sass/multicourse/_dashboard.scss
index 6f5f4c1e71..a2a2f1a90b 100644
--- a/lms/static/sass/multicourse/_dashboard.scss
+++ b/lms/static/sass/multicourse/_dashboard.scss
@@ -110,17 +110,40 @@
.third-party-auth {
color: inherit;
font-weight: inherit;
+ }
- .control {
- float: right;
- }
+ .auth-provider {
+ width: flex-grid(12);
+ display: block;
+ margin-top: ($baseline/4);
- .icon {
- margin-top: 4px;
+ .status {
+ width: flex-grid(1);
+ display: inline-block;
+ color: $gray-l2;
+
+ .icon-link {
+ color: $base-font-color;
+ }
+
+ .copy {
+ @extend %text-sr;
+ }
}
.provider {
- display: inline;
+ width: flex-grid(9);
+ display: inline-block;
+ }
+
+ .control {
+ width: flex-grid(2);
+ display: inline-block;
+ text-align: right;
+
+ a:link, a:visited {
+ @extend %t-copy-sub2;
+ }
}
}
}
diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html
index 4f086d901c..8099775f95 100644
--- a/lms/templates/dashboard.html
+++ b/lms/templates/dashboard.html
@@ -198,7 +198,7 @@
% if duplicate_provider:
## Translators: this message is displayed when a user tries to link their account with a third-party authentication provider (for example, Google or LinkedIn) with a given edX account, but their third-party account is already associated with another edX account. provider_name is the name of the third-party authentication provider, and platform_name is the name of the edX deployment.
- ${_('The selected {provider_name} account is already linked to another {platform_name} account. Please {link_start}log out{link_end}, then log in with your {provider_name} account.').format(link_end='', link_start='' % logout_url, provider_name='%s' % duplicate_provider.NAME, platform_name=platform_name)}
+
% endif
@@ -226,22 +226,23 @@
% if settings.FEATURES.get('ENABLE_THIRD_PARTY_AUTH'):
-
## Translators: this section lists all the third-party authentication providers (for example, Google and LinkedIn) the user can link with or unlink from their edX account.
- ${_("Account Links")}
+ ${_("Connected Accounts")}
% for state in provider_user_states:
-
+ \
%if is_course_cohorted and is_moderator:
-
+## Lack of indentation is intentional to avoid whitespace between this and siblings
+
+ \
%endif
-
-
+## Lack of indentation is intentional to avoid whitespace between this and siblings
+
+
diff --git a/lms/templates/discussion/_underscore_templates.html b/lms/templates/discussion/_underscore_templates.html
index d6dc58ffca..14727e18f5 100644
--- a/lms/templates/discussion/_underscore_templates.html
+++ b/lms/templates/discussion/_underscore_templates.html
@@ -1,32 +1,46 @@
<%! from django.utils.translation import ugettext as _ %>
<%! from django.template.defaultfilters import escapejs %>
<%! from django_comment_client.permissions import has_permission %>
-
+## IMPORTANT: In order to keep js tests valid and relevant, please be sure to update the appropriate HTML in
+## common/static/coffee/spec/discussion_spec_helper.coffee is changed and regenerated, whenever this one changes.
@@ -37,40 +51,43 @@
+ ## This part is incredibly gross but necessary to combine i18n in
+ ## mako with logic in underscore.
+ ## Translators: post_type describes the kind of post this is
+ ## (e.g. "question" or "discussion"); time_ago is how much time
+ ## has passed since the post was created (e.g. "4 hours ago")
+ ${_("{post_type} posted {time_ago} by {author}").format(
+ post_type="<%- thread_type %>",
+ time_ago="<%- created_at %>",
+ author="<%= author_display %>"
+ )}
+