Commit 03d93a2e by alisan617 Committed by Brian Jacobel

copy edits and profile page title

parent 2f78b0ec
...@@ -184,7 +184,6 @@ ...@@ -184,7 +184,6 @@
if (!params.error) { if (!params.error) {
params.error = function() { params.error = function() {
self.discussionAlert( self.discussionAlert(
gettext('Error'),
gettext('Your request could not be processed. Refresh the page and try again.') gettext('Your request could not be processed. Refresh the page and try again.')
); );
}; };
......
...@@ -181,8 +181,7 @@ ...@@ -181,8 +181,7 @@
this.loadDiscussions(this.$el, function() { this.loadDiscussions(this.$el, function() {
self.hideDiscussion(); self.hideDiscussion();
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'), gettext('This discussion could not be loaded. Refresh the page and try again.')
gettext('This discussion could not be loaded. Refresh the page to try again.')
); );
}); });
} }
......
...@@ -309,8 +309,7 @@ ...@@ -309,8 +309,7 @@
error = function() { error = function() {
self.renderThreads(); self.renderThreads();
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'), gettext('Additional posts could not be loaded. Refresh the page and try again.')
gettext('Additional posts could not be loaded. Refresh the page to try again.')
); );
}; };
return this.collection.retrieveAnotherPage(this.mode, options, { return this.collection.retrieveAnotherPage(this.mode, options, {
......
...@@ -261,18 +261,15 @@ ...@@ -261,18 +261,15 @@
} }
if (xhr.status === 404) { if (xhr.status === 404) {
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('The post you selected has been deleted.') gettext('The post you selected has been deleted.')
); );
} else if (firstLoad) { } else if (firstLoad) {
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'), gettext('Responses could not be loaded. Refresh the page and try again.')
gettext('Responses could not be loaded. Refresh the page to try again.')
); );
} else { } else {
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'), gettext('Additional responses could not be loaded. Refresh the page and try again.')
gettext('Additional responses could not be loaded. Refresh the page to try again.')
); );
} }
} }
......
...@@ -114,8 +114,7 @@ ...@@ -114,8 +114,7 @@
}, },
error: function() { error: function() {
return DiscussionUtil.discussionAlert( return DiscussionUtil.discussionAlert(
gettext('Error'), gettext('This comment could not be deleted. Refresh the page and try again.')
gettext('This comment could not be deleted. Refresh the page to try again.')
); );
} }
}); });
......
...@@ -57,6 +57,7 @@ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_str ...@@ -57,6 +57,7 @@ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_str
<div class="page-header-main"> <div class="page-header-main">
<div class="sr-is-focusable" tabindex="-1"></div> <div class="sr-is-focusable" tabindex="-1"></div>
<div> <div>
<h2 class="discussion-profile-title">${_("Discussion")}</h2>
<%def name="span(num)"><span class="discussion-count">${num}</span></%def> <%def name="span(num)"><span class="discussion-count">${num}</span></%def>
<span class="user-name"><a href="${learner_profile_page_url}">${django_user.username}</a></span> <span class="user-name"><a href="${learner_profile_page_url}">${django_user.username}</a></span>
<span class="discussion-profile-info"> <span class="discussion-profile-info">
......
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
.discussion-user-profile-board { .discussion-user-profile-board {
.discussion-profile-title {
margin-bottom: $baseline / 5;
font-size: $forum-x-large-font-size;
}
.discussion-profile-count { .discussion-profile-count {
margin-top: $baseline / 4; margin-top: $baseline / 4;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment