Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-poll
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
xblock-poll
Commits
87aa8a3e
Commit
87aa8a3e
authored
Jan 23, 2015
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appearance tweaks, per QA Feedback.
parent
cb450d50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
poll/public/css/poll.css
+1
-1
poll/public/handlebars/poll_results.handlebars
+2
-2
poll/public/handlebars/survey_results.handlebars
+1
-1
poll/public/js/poll_edit.js
+4
-0
No files found.
poll/public/css/poll.css
View file @
87aa8a3e
...
...
@@ -145,7 +145,7 @@ li.poll-result .poll-image {
.survey-table
thead
tr
th
{
font-weight
:
bold
;
font-size
:
.
8
rem
;
font-size
:
.
9
rem
;
}
.survey-table
.survey-row
{
...
...
poll/public/handlebars/poll_results.handlebars
View file @
87aa8a3e
<script
id=
"poll-results-template"
type=
"text/html"
>
<
h
2
class
=
"poll-header"
>
{{
display_name
}}
<
/h2
>
<
h
3
class
=
"poll-header"
>
{{
display_name
}}
<
/h3
>
<
div
class
=
"poll-question-container"
>
{{{
question
}}}
<
/div
>
<
ul
class
=
"poll-answers-results"
>
{{#
each
tally
}}
...
...
@@ -35,7 +35,7 @@
<
div
class
=
"poll-footnote"
>
Results
gathered
from
{{
total
}}
respondent
{{#if
plural
}}
s
{{/if}}
.
<
/div
>
{{#if
feedback
}}
<
hr
/>
<
h
2
class
=
"poll-header"
>
Feedback
<
/h2
>
<
h
3
class
=
"poll-header"
>
Feedback
<
/h3
>
<
div
class
=
"poll-feedback"
>
{{{
feedback
}}}
<
/div
>
...
...
poll/public/handlebars/survey_results.handlebars
View file @
87aa8a3e
...
...
@@ -29,7 +29,7 @@
<
div
class
=
"poll-footnote"
>
Results
gathered
from
{{
total
}}
respondent
{{#if
plural
}}
s
{{/if}}
.
<
/div
>
{{#if
feedback
}}
<
hr
/>
<
h
2
class
=
"poll-header"
>
Feedback
<
/h2
>
<
h
3
class
=
"poll-header"
>
Feedback
<
/h3
>
<
div
class
=
"poll-feedback"
>
{{{
feedback
}}}
<
/div
>
...
...
poll/public/js/poll_edit.js
View file @
87aa8a3e
...
...
@@ -26,6 +26,10 @@ function PollEditUtil(runtime, element, pollType) {
// collisions in the real world.
var
bottom
=
$
(
button_mapping
[
context_key
][
'bottomMarker'
]);
var
new_item_dict
=
self
.
extend
({},
button_mapping
[
context_key
][
'template'
]);
// We have to insert this key now rather than keep it in the template
// so that it's generated with the current time. If we constructed it as part
// of the template, all the keys would be the same, since the time would be calculated
// once.
new_item_dict
[
'key'
]
=
Date
.
now
();
var
new_item
=
$
(
self
.
answerTemplate
({
'items'
:
[
new_item_dict
]}));
bottom
.
before
(
new_item
);
...
...
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