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
edba0978
Commit
edba0978
authored
Feb 25, 2013
by
Julian Arni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Included styling and template
parent
0a47f27f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
1 deletions
+66
-1
common/lib/xmodule/xmodule/css/foldit/leaderboard.scss
+20
-0
common/lib/xmodule/xmodule/foldit_module.py
+1
-1
lms/templates/folditbasic.html
+29
-0
lms/templates/folditchallenge.html
+16
-0
No files found.
common/lib/xmodule/xmodule/css/foldit/leaderboard.scss
0 → 100644
View file @
edba0978
$leaderboard
:
#F4F4F4
;
section
.foldit
{
div
.folditchallenge
{
table
{
border
:
1px
solid
lighten
(
$leaderboard
,
10%
);
border-collapse
:
collapse
;
margin-top
:
20px
;
}
th
{
background
:
$leaderboard
;
color
:
darken
(
$leaderboard
,
25%
);
}
td
{
background
:
lighten
(
$leaderboard
,
3%
);
border-bottom
:
1px
solid
#fff
;
padding
:
8px
;
}
}
}
common/lib/xmodule/xmodule/foldit_module.py
View file @
edba0978
...
...
@@ -12,7 +12,7 @@ log = logging.getLogger(__name__)
class
FolditModule
(
XModule
):
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/foldit/leadeboard.scss'
)]}
css
=
{
'scss'
:
[
resource_string
(
__name__
,
'css/foldit/leade
r
board.scss'
)]}
def
__init__
(
self
,
system
,
location
,
definition
,
descriptor
,
instance_state
=
None
,
shared_state
=
None
,
**
kwargs
):
...
...
lms/templates/folditbasic.html
0 → 100644
View file @
edba0978
<div
class=
"folditbasic"
>
<p><strong>
Due:
</strong>
${due}
<p>
<strong>
Status:
</strong>
% if success:
You have successfully gotten to level ${goal_level}.
% else:
You have not yet gotten to level ${goal_level}.
% endif
</p>
<h3>
Completed puzzles
</h3>
<table>
<tr>
<th>
Level
</th>
<th>
Submitted
</th>
</tr>
% for puzzle in completed:
<tr>
<td>
${'{0}-{1}'.format(puzzle['set'], puzzle['subset'])}
</td>
<td>
${puzzle['created'].strftime('%Y-%m-%d %H:%M')}
</td>
</tr>
% endfor
</table>
</br>
</div>
lms/templates/folditchallenge.html
0 → 100644
View file @
edba0978
<div
class=
"folditchallenge"
>
<h3>
Puzzle Leaderboard
</h3>
<table>
<tr>
<th>
User
</th>
<th>
Score
</th>
</tr>
% for pair in top_scores:
<tr>
<td>
${pair[0]}
</td>
<td>
${pair[1]}
</td>
</tr>
% endfor
</table>
</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