Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DoneXBlock
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
DoneXBlock
Commits
cf303391
Commit
cf303391
authored
Mar 25, 2015
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Studio view. Untested.
parent
fd333a56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
done/done.py
+4
-0
done/static/html/studioview.html
+8
-0
No files found.
done/done.py
View file @
cf303391
...
...
@@ -67,6 +67,10 @@ class DoneXBlock(XBlock):
'align'
:
self
.
align
.
lower
()})
return
frag
def
studio_view
(
self
,
_context
=
None
):
# pylint: disable=unused-argument
frag
=
Fragment
(
pkg_resources
.
resource_string
(
"static/html/studioview.html"
))
return
frag
@staticmethod
def
workbench_scenarios
():
"""A canned scenario for display in the workbench."""
...
...
done/static/html/studioview.html
0 → 100644
View file @
cf303391
<div>
<p>
This is a very simple component with no configuration
options. Nothing to see here... move along.
</p>
<p>
<small>
(If you're a real power-user, in OLX, we do allow you to
add an align tag, which can left-, center-, or right-justify the
XBlock)
</small>
</p>
</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