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
6be9463e
Commit
6be9463e
authored
May 27, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
a195c4f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
18 deletions
+12
-18
cms/templates/base.html
+0
-4
common/lib/xmodule/xmodule/templates/word_cloud/default.yaml
+0
-4
common/lib/xmodule/xmodule/word_cloud_module.py
+12
-10
No files found.
cms/templates/base.html
View file @
6be9463e
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
<
%
static:css
group=
'base-style'
/>
<
%
static:css
group=
'base-style'
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/markitup/skins/simple/style.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/markitup/skins/simple/style.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/markitup/sets/wiki/style.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/markitup/sets/wiki/style.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('css/vendor/symbolset.ss-symbolicons-block.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('css/vendor/symbolset.ss-standard.css')}"
/>
<
%
include
file=
"widgets/segment-io.html"
/>
<
%
include
file=
"widgets/segment-io.html"
/>
...
@@ -43,8 +41,6 @@
...
@@ -43,8 +41,6 @@
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/backbone-min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/backbone-min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/markitup/jquery.markitup.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/markitup/jquery.markitup.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/markitup/sets/wiki/set.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/markitup/sets/wiki/set.js')}"
></script>
<script
src=
"${static.url('js/vendor/symbolset.ss-standard.js')}"
></script>
<script
src=
"${static.url('js/vendor/symbolset.ss-symbolicons.js')}"
></script>
<
%
static:js
group=
'main'
/>
<
%
static:js
group=
'main'
/>
<
%
static:js
group=
'module-js'
/>
<
%
static:js
group=
'module-js'
/>
...
...
common/lib/xmodule/xmodule/templates/word_cloud/default.yaml
View file @
6be9463e
---
---
metadata
:
metadata
:
display_name
:
Word cloud
display_name
:
Word cloud
version
:
1
num_inputs
:
5
num_top_words
:
250
display_student_percents
:
True
data
:
{}
data
:
{}
children
:
[]
children
:
[]
common/lib/xmodule/xmodule/word_cloud_module.py
View file @
6be9463e
...
@@ -14,7 +14,8 @@ from xmodule.raw_module import RawDescriptor
...
@@ -14,7 +14,8 @@ from xmodule.raw_module import RawDescriptor
from
xmodule.editing_module
import
MetadataOnlyEditingDescriptor
from
xmodule.editing_module
import
MetadataOnlyEditingDescriptor
from
xmodule.x_module
import
XModule
from
xmodule.x_module
import
XModule
from
xblock.core
import
Scope
,
String
,
Object
,
Boolean
,
List
,
Integer
from
xblock.core
import
Scope
,
Object
,
Boolean
,
List
from
fields
import
StringyBoolean
,
StringyInteger
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
@@ -31,21 +32,22 @@ def pretty_bool(value):
...
@@ -31,21 +32,22 @@ def pretty_bool(value):
class
WordCloudFields
(
object
):
class
WordCloudFields
(
object
):
"""XFields for word cloud."""
"""XFields for word cloud."""
display_name
=
String
(
num_inputs
=
StringyInteger
(
help
=
"Display name for this module"
,
display_name
=
"Inputs"
,
scope
=
Scope
.
settings
)
num_inputs
=
Integer
(
help
=
"Number of inputs."
,
help
=
"Number of inputs."
,
scope
=
Scope
.
settings
,
scope
=
Scope
.
settings
,
default
=
5
default
=
5
,
values
=
{
"min"
:
1
}
)
)
num_top_words
=
Integer
(
num_top_words
=
StringyInteger
(
display_name
=
"Maximum Words"
,
help
=
"Number of max words, which will be displayed."
,
help
=
"Number of max words, which will be displayed."
,
scope
=
Scope
.
settings
,
scope
=
Scope
.
settings
,
default
=
250
default
=
250
,
values
=
{
"min"
:
1
}
)
)
display_student_percents
=
Boolean
(
display_student_percents
=
StringyBoolean
(
display_name
=
"Show Usage"
,
help
=
"Display usage percents for each word?"
,
help
=
"Display usage percents for each word?"
,
scope
=
Scope
.
settings
,
scope
=
Scope
.
settings
,
default
=
True
default
=
True
...
...
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