Commit fb66d298 by alisan617 Committed by GitHub

Merge pull request #14448 from edx/alisan/discussion-luv-TNL-6173-6176

Discussion loading indicator and user role style change, show hide button focus, and copy change to discussion filter
parents a9031061 68a29ad0
...@@ -127,7 +127,8 @@ ...@@ -127,7 +127,8 @@
DiscussionUtil.showLoadingIndicator = function(element, takeFocus) { DiscussionUtil.showLoadingIndicator = function(element, takeFocus) {
var animElem = edx.HtmlUtils.joinHtml( var animElem = edx.HtmlUtils.joinHtml(
edx.HtmlUtils.HTML("<div class='loading-animation' tabindex='0'><span class='sr'>"), edx.HtmlUtils.HTML("<div class='loading-animation' tabindex='0'>"),
edx.HtmlUtils.HTML("<span class='icon fa fa-spinner' aria-hidden='true'></span><span class='sr'>"),
gettext('Loading content'), gettext('Loading content'),
edx.HtmlUtils.HTML('</span></div>') edx.HtmlUtils.HTML('</span></div>')
); );
......
...@@ -193,6 +193,7 @@ ...@@ -193,6 +193,7 @@
}); });
} }
} }
this.toggleDiscussionBtn.focus();
}, },
hideDiscussion: function() { hideDiscussion: function() {
......
<% if (username) { %> <% if (username) { %>
<a href="<%- user_url %>" class="username"><%- username %></a> <a href="<%- user_url %>" class="username"><%- username %></a>
<% if (is_community_ta) { %> <% if (is_community_ta) { %>
<span class="user-label-community-ta"><%- gettext("Community TA") %></span> <span class="user-label-community-ta"><%- gettext("(Community TA)") %></span>
<% } else if (is_staff) { %> <% } else if (is_staff) { %>
<span class="user-label-staff"><%- gettext("Staff") %></span> <span class="user-label-staff"><%- gettext("(Staff)") %></span>
<% } %> <% } %>
<% } else { %> <% } else { %>
<%- gettext('anonymous') %> <%- gettext('anonymous') %>
......
...@@ -183,12 +183,9 @@ span.edx { ...@@ -183,12 +183,9 @@ span.edx {
} }
.loading-animation { .loading-animation {
position: absolute; @include animation(fa-spin 2s infinite linear);
left: 50%; text-align: center;
width: 20px; width: 100%;
height: 20px;
margin-left: -($baseline/2);
background: url('#{$static-path}/images/spinner.gif') no-repeat;
} }
mark { mark {
......
...@@ -86,9 +86,6 @@ ...@@ -86,9 +86,6 @@
margin-bottom: $baseline; margin-bottom: $baseline;
} }
.loading-animation {
background-image: url('#{$static-path}/images/spinner.gif');
}
} }
.discussion-show { .discussion-show {
......
...@@ -87,16 +87,3 @@ ...@@ -87,16 +87,3 @@
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@mixin forum-user-label($color) {
@include margin-left($baseline/4);
@extend %t-weight5;
font-size: $forum-small-font-size;
vertical-align: middle;
border-radius: $forum-border-radius;
padding: 0 ($baseline/5);
background: $color;
font-style: normal;
color: white;
white-space: nowrap;
}
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
color: $gray-l1; color: $gray-l1;
.icon { .icon {
@include margin-right(0);
vertical-align: middle; vertical-align: middle;
} }
} }
......
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
} }
} }
.user-label-staff { .user-label-staff,
@include forum-user-label($forum-color-staff);
}
.user-label-community-ta { .user-label-community-ta {
@include forum-user-label($forum-color-community-ta); color: $forum-color-copy-light;
font-size: $forum-small-font-size;
white-space: nowrap;
} }
} }
// Make post labels tighter when shown inside the left nav // Make post labels tighter when shown inside the left nav
......
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
<span class="sr">${_("Filter:")}</span> <span class="sr">${_("Filter:")}</span>
<select class="forum-nav-filter-main-control"> <select class="forum-nav-filter-main-control">
## Translators: This is a menu option for showing all forum threads unfiltered ## Translators: This is a menu option for showing all forum threads unfiltered
<option value="all">${_("Show all")}</option> <option value="all">${_("Show all posts")}</option>
## Translators: This is a menu option for showing only unread forum threads ## Translators: This is a menu option for showing only unread forum threads
<option value="unread">${_("Unread")}</option> <option value="unread">${_("Unread posts")}</option>
## Translators: This is a menu option for showing only unanswered forum ## Translators: This is a menu option for showing only unanswered forum
## question threads ## question threads
<option value="unanswered">${_("Unanswered")}</option> <option value="unanswered">${_("Unanswered posts")}</option>
%if flag_moderator: %if flag_moderator:
## Translators: This is a menu option for showing only forum threads flagged ## Translators: This is a menu option for showing only forum threads flagged
## for abuse ## for abuse
......
...@@ -14,6 +14,6 @@ ...@@ -14,6 +14,6 @@
<div class="finish-auth-inner"> <div class="finish-auth-inner">
<h1>${_('Please wait')}</h1> <h1>${_('Please wait')}</h1>
<div class="loading-animation"></div> <div class="loading-animation"><span class='icon fa fa-spinner' aria-hidden='true'></span></div>
</div> </div>
</div> </div>
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