Commit 03d93a2e by alisan617 Committed by Brian Jacobel

copy edits and profile page title

parent 2f78b0ec
......@@ -184,7 +184,6 @@
if (!params.error) {
params.error = function() {
self.discussionAlert(
gettext('Error'),
gettext('Your request could not be processed. Refresh the page and try again.')
);
};
......
......@@ -181,8 +181,7 @@
this.loadDiscussions(this.$el, function() {
self.hideDiscussion();
DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('This discussion could not be loaded. Refresh the page to try again.')
gettext('This discussion could not be loaded. Refresh the page and try again.')
);
});
}
......
......@@ -309,8 +309,7 @@
error = function() {
self.renderThreads();
DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('Additional posts could not be loaded. Refresh the page to try again.')
gettext('Additional posts could not be loaded. Refresh the page and try again.')
);
};
return this.collection.retrieveAnotherPage(this.mode, options, {
......
......@@ -261,18 +261,15 @@
}
if (xhr.status === 404) {
DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('The post you selected has been deleted.')
);
} else if (firstLoad) {
DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('Responses could not be loaded. Refresh the page to try again.')
gettext('Responses could not be loaded. Refresh the page and try again.')
);
} else {
DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('Additional responses could not be loaded. Refresh the page to try again.')
gettext('Additional responses could not be loaded. Refresh the page and try again.')
);
}
}
......
......@@ -114,8 +114,7 @@
},
error: function() {
return DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('This comment could not be deleted. Refresh the page to try again.')
gettext('This comment could not be deleted. Refresh the page and try again.')
);
}
});
......
......@@ -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="sr-is-focusable" tabindex="-1"></div>
<div>
<h2 class="discussion-profile-title">${_("Discussion")}</h2>
<%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="discussion-profile-info">
......
......@@ -3,6 +3,11 @@
.discussion-user-profile-board {
.discussion-profile-title {
margin-bottom: $baseline / 5;
font-size: $forum-x-large-font-size;
}
.discussion-profile-count {
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