Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
68a29ad0
Commit
68a29ad0
authored
Feb 01, 2017
by
alisan617
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change loading animation to FA user role style change
parent
d1012a77
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
34 deletions
+18
-34
common/static/common/js/discussion/utils.js
+2
-1
common/static/common/js/discussion/views/discussion_inline_view.js
+1
-0
common/static/common/templates/discussion/post-user-display.underscore
+2
-2
lms/static/sass/base/_base.scss
+3
-6
lms/static/sass/discussion/_discussion.scss
+0
-3
lms/static/sass/discussion/_mixins.scss
+0
-13
lms/static/sass/discussion/elements/_actions.scss
+1
-0
lms/static/sass/discussion/elements/_labels.scss
+5
-5
lms/templates/discussion/_thread_list_template.html
+3
-3
lms/templates/student_account/finish_auth.html
+1
-1
No files found.
common/static/common/js/discussion/utils.js
View file @
68a29ad0
...
...
@@ -127,7 +127,8 @@
DiscussionUtil
.
showLoadingIndicator
=
function
(
element
,
takeFocus
)
{
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'
),
edx
.
HtmlUtils
.
HTML
(
'</span></div>'
)
);
...
...
common/static/common/js/discussion/views/discussion_inline_view.js
View file @
68a29ad0
...
...
@@ -193,6 +193,7 @@
});
}
}
this
.
toggleDiscussionBtn
.
focus
();
},
hideDiscussion
:
function
()
{
...
...
common/static/common/templates/discussion/post-user-display.underscore
View file @
68a29ad0
<% if (username) { %>
<a href="<%- user_url %>" class="username"><%- username %></a>
<% 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) { %>
<span class="user-label-staff"><%- gettext("
Staff
") %></span>
<span class="user-label-staff"><%- gettext("
(Staff)
") %></span>
<% } %>
<% } else { %>
<%- gettext('anonymous') %>
...
...
lms/static/sass/base/_base.scss
View file @
68a29ad0
...
...
@@ -183,12 +183,9 @@ span.edx {
}
.loading-animation
{
position
:
absolute
;
left
:
50%
;
width
:
20px
;
height
:
20px
;
margin-left
:
-
(
$baseline
/
2
);
background
:
url('
#{
$static-path
}
/images/spinner.gif')
no-repeat
;
@include
animation
(
fa-spin
2s
infinite
linear
);
text-align
:
center
;
width
:
100%
;
}
mark
{
...
...
lms/static/sass/discussion/_discussion.scss
View file @
68a29ad0
...
...
@@ -86,9 +86,6 @@
margin-bottom
:
$baseline
;
}
.loading-animation
{
background-image
:
url('
#{
$static-path
}
/images/spinner.gif')
;
}
}
.discussion-show
{
...
...
lms/static/sass/discussion/_mixins.scss
View file @
68a29ad0
...
...
@@ -87,16 +87,3 @@
white-space
:
nowrap
;
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
;
}
lms/static/sass/discussion/elements/_actions.scss
View file @
68a29ad0
...
...
@@ -135,6 +135,7 @@
color
:
$gray-l1
;
.icon
{
@include
margin-right
(
0
);
vertical-align
:
middle
;
}
}
...
...
lms/static/sass/discussion/elements/_labels.scss
View file @
68a29ad0
...
...
@@ -42,13 +42,13 @@
}
}
.user-label-staff
{
@include
forum-user-label
(
$forum-color-staff
);
}
.user-label-staff
,
.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
...
...
lms/templates/discussion/_thread_list_template.html
View file @
68a29ad0
...
...
@@ -8,12 +8,12 @@
<
span
class
=
"sr"
>
$
{
_
(
"Filter:"
)}
<
/span
>
<
select
class
=
"forum-nav-filter-main-control"
>
##
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
<
option
value
=
"unread"
>
$
{
_
(
"Unread"
)}
<
/option
>
<
option
value
=
"unread"
>
$
{
_
(
"Unread
posts
"
)}
<
/option
>
##
Translators
:
This
is
a
menu
option
for
showing
only
unanswered
forum
##
question
threads
<
option
value
=
"unanswered"
>
$
{
_
(
"Unanswered"
)}
<
/option
>
<
option
value
=
"unanswered"
>
$
{
_
(
"Unanswered
posts
"
)}
<
/option
>
%
if
flag_moderator
:
##
Translators
:
This
is
a
menu
option
for
showing
only
forum
threads
flagged
##
for
abuse
...
...
lms/templates/student_account/finish_auth.html
View file @
68a29ad0
...
...
@@ -14,6 +14,6 @@
<div
class=
"finish-auth-inner"
>
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment