Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crowdsourcehinter
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
OpenEdx
crowdsourcehinter
Commits
18c01c12
Commit
18c01c12
authored
Nov 10, 2014
by
Sola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shifts to templates, incomplete
parent
4ad9860b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
crowdsourcehinter/static/css/crowdsourcehinter.css
+1
-1
crowdsourcehinter/static/html/crowdsourcehinter.html
+3
-3
crowdsourcehinter/static/js/src/crowdsourcehinter.js
+3
-2
No files found.
crowdsourcehinter/static/css/crowdsourcehinter.css
View file @
18c01c12
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
}
}
div
[
data-rate
=
"flag"
]
{
div
[
data-rate
=
"flag"
]
{
align-self
:
flex-end
;
float
:
right
;
}
}
div
[
data-rate
=
"upvote"
]
{
div
[
data-rate
=
"upvote"
]
{
...
...
crowdsourcehinter/static/html/crowdsourcehinter.html
View file @
18c01c12
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<
div
role
=
"button"
class
=
"csh_rate_hint"
data
-
rate
=
"upvote"
data
-
icon
=
"arrow-u"
aria
-
label
=
"upvote"
>
<
div
role
=
"button"
class
=
"csh_rate_hint"
data
-
rate
=
"upvote"
data
-
icon
=
"arrow-u"
aria
-
label
=
"upvote"
>
<
b
>
↑
<
/b
>
<
b
>
↑
<
/b
>
<
/div
>
<
/div
>
<
div
role
=
"button"
class
=
"csh_rate_hint"
data
-
rate
=
"flag"
data
-
icon
=
"flag"
aria
-
label
=
"flag"
>
<
b
>!<
/b
>
<
/div
>
<
div
class
=
"csh_rating"
>
{{
rating
}}
<
/div
>
<
div
class
=
"csh_rating"
>
{{
rating
}}
<
/div
>
<
div
class
=
"csh_hint"
>
{{
hint
}}
<
/div
>
<
div
class
=
"csh_hint"
>
{{
hint
}}
<
/div
>
<
div
role
=
"button"
class
=
"csh_rate_hint"
data
-
rate
=
"downvote"
aria
-
label
=
"downvote"
>
<
div
role
=
"button"
class
=
"csh_rate_hint"
data
-
rate
=
"downvote"
aria
-
label
=
"downvote"
>
<
b
>
↓
<
/b
>
<
b
>
↓
<
/b
>
<
/div
>
<
/div
>
<
div
role
=
"button"
class
=
"csh_rate_hint"
data
-
rate
=
"flag"
data
-
icon
=
"flag"
aria
-
label
=
"flag"
>
<
b
>
"Report this hint"
<
/b
>
<
/div
>
<
/div
>
<
/div
>
</script>
</script>
...
...
crowdsourcehinter/static/js/src/crowdsourcehinter.js
View file @
18c01c12
...
@@ -82,10 +82,11 @@ function CrowdsourceHinter(runtime, element){
...
@@ -82,10 +82,11 @@ function CrowdsourceHinter(runtime, element){
$(this).append(Mustache.render(template, data));*/
$(this).append(Mustache.render(template, data));*/
$
(
this
).
append
(
unescape
(
"<div class=
\"
csh_hint_value
\"
value =
\"
"
+
result
.
hint
+
"
\"
>"
+
$
(
this
).
append
(
unescape
(
"<div class=
\"
csh_hint_value
\"
value =
\"
"
+
result
.
hint
+
"
\"
>"
+
"<div role=
\"
button
\"
class=
\"
csh_rate_hint
\"
data-rate=
\"
upvote
\"
data-icon=
\"
arrow-u
\"
aria-label=
\"
upvote
\"
><b>↑</b></div>"
+
"<div role=
\"
button
\"
class=
\"
csh_rate_hint
\"
data-rate=
\"
upvote
\"
data-icon=
\"
arrow-u
\"
aria-label=
\"
upvote
\"
><b>↑</b></div>"
+
"<div role=
\"
button
\"
class=
\"
csh_rate_hint
\"
data-rate=
\"
flag
\"
data-icon=
\"
flag
\"
aria-label=
\"
flag
\"
><b>!</b></div>"
+
"<div class =
\"
csh_rating
\"
>"
+
result
.
rating
+
"</div>"
+
"<div class =
\"
csh_rating
\"
>"
+
result
.
rating
+
"</div>"
+
"<div class=
\"
csh_hint
\"
>"
+
""
+
result
.
hint
+
"</div>"
+
"<div class=
\"
csh_hint
\"
>"
+
""
+
result
.
hint
+
"</div>"
+
"<div role=
\"
button
\"
class=
\"
csh_rate_hint
\"
data-rate=
\"
downvote
\"
aria-label=
\"
downvote
\"
><b>↓</b></div> </div>"
));
"<div role=
\"
button
\"
class=
\"
csh_rate_hint
\"
data-rate=
\"
downvote
\"
aria-label=
\"
downvote
\"
><b>↓</b></div>"
+
"<div role=
\"
button
\"
class=
\"
csh_rate_hint
\"
data-rate=
\"
flag
\"
data-icon=
\"
flag
\"
aria-label=
\"
flag
\"
>"
+
"<b>Report this hint</b></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