Commit 4d6cf7a8 by Sola Committed by Piotr Mitros

renamed all "crowdxblock" to "crowdsourcehinter"

parent 28410da2
from .crowdsourcehinter import CrowdsourceHinter
...@@ -13,7 +13,7 @@ from xblock.fragment import Fragment ...@@ -13,7 +13,7 @@ from xblock.fragment import Fragment
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
class CrowdXBlock(XBlock): class CrowdsourceHinter(XBlock):
""" """
This is the Crowd Sourced Hinter XBlock. This Xblock seeks to provide students with hints This is the Crowd Sourced Hinter XBlock. This Xblock seeks to provide students with hints
that specifically address their mistake. Additionally, the hints that this Xblock shows that specifically address their mistake. Additionally, the hints that this Xblock shows
...@@ -53,11 +53,11 @@ class CrowdXBlock(XBlock): ...@@ -53,11 +53,11 @@ class CrowdXBlock(XBlock):
This view renders the hint view to the students. The HTML has the hints templated This view renders the hint view to the students. The HTML has the hints templated
in, and most of the remaining functionality is in the JavaScript. in, and most of the remaining functionality is in the JavaScript.
""" """
html = self.resource_string("static/html/crowdxblock.html") html = self.resource_string("static/html/crowdsourcehinter.html")
frag = Fragment(html.format(self=self)) frag = Fragment(html.format(self=self))
frag.add_css(self.resource_string("static/css/crowdxblock.css")) frag.add_css(self.resource_string("static/css/crowdsourcehinter.css"))
frag.add_javascript(self.resource_string("static/js/src/crowdxblock.js")) frag.add_javascript(self.resource_string("static/js/src/crowdsourcehinter.js"))
frag.initialize_js('CrowdXBlock') frag.initialize_js('CrowdsourceHinter')
return frag return frag
def studio_view(self, context=None): def studio_view(self, context=None):
...@@ -66,12 +66,12 @@ class CrowdXBlock(XBlock): ...@@ -66,12 +66,12 @@ class CrowdXBlock(XBlock):
one to define, for example, which problem the hinter is for. It is unfinished and does not currently one to define, for example, which problem the hinter is for. It is unfinished and does not currently
work. work.
""" """
html = self.resource_string("static/html/crowdxblockstudio.html") html = self.resource_string("static/html/crowdsourcehinterstudio.html")
frag = Fragment(html.format(self=self)) frag = Fragment(html.format(self=self))
frag.add_javascript_url('//cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js') frag.add_javascript_url('//cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js')
frag.add_css(self.resource_string("static/css/crowdxblock.css")) frag.add_css(self.resource_string("static/css/crowdsourcehinter.css"))
frag.add_javascript(self.resource_string("static/js/src/crowdxblock.js")) frag.add_javascript(self.resource_string("static/js/src/crowdsourcehinter.js"))
frag.initialize_js('CrowdXBlock') frag.initialize_js('CrowdsourceHinter')
return frag return frag
def resource_string(self, path): def resource_string(self, path):
...@@ -465,9 +465,9 @@ class CrowdXBlock(XBlock): ...@@ -465,9 +465,9 @@ class CrowdXBlock(XBlock):
def workbench_scenarios(): def workbench_scenarios():
"""A canned scenario for display in the workbench.""" """A canned scenario for display in the workbench."""
return [ return [
("CrowdXBlock", ("CrowdsourceHinter",
"""<vertical_demo> """<vertical_demo>
<crowdxblock/> <crowdsourcehinter/>
</vertical_demo> </vertical_demo>
"""), """),
] ]
/* CSS for CrowdXBlock */ /* CSS for CrowdsourceHinter */
.crowdxblock_block .count { .crowdsourcehinter_block .count {
font-weight: bold; font-weight: bold;
} }
.crowdxblock_block .feedback { .crowdsourcehinter_block .feedback {
border-style: solid; border-style: solid;
border-width: thin; border-width: thin;
border-color: rgb(200,200,200); border-color: rgb(200,200,200);
} }
.crowdxblock_block .vote { .crowdsourcehinter_block .vote {
padding-top: 0px !important; padding-top: 0px !important;
padding-bottom: 0px !important; padding-bottom: 0px !important;
} }
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
flex-direction: row; flex-direction: row;
} }
.crowdxblock_block .HintsToUse { .crowdsourcehinter_block .HintsToUse {
background-color: #FF8; background-color: #FF8;
} }
......
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
</div> </div>
</div> </div>
</script> </script>
<div class="crowdxblock_block"> <!--most stuff just for testing purposes--> <div class="crowdsourcehinter_block"> <!--most stuff just for testing purposes-->
<p> <span class='HintsToUse'></span> <p> <span class='HintsToUse'></span>
</p> </p>
</div> </div>
<div class="crowdxblock_block"> <div class="crowdsourcehinter_block">
<section class="correct"></section> <section class="correct"></section>
<p> <p>
......
<div class="crowdxblock_block"> <div class="crowdsourcehinter_block">
<p id="hint_purge"> <p id="hint_purge">
The following hints have been reported by students. Select "dismiss" to return the hint for usage in the course, and select "remove" to remove it permanently from the course. The following hints have been reported by students. Select "dismiss" to return the hint for usage in the course, and select "remove" to remove it permanently from the course.
</p> </p>
......
function CrowdXBlock(runtime, element){ function CrowdsourceHinter(runtime, element){
//use executionFunctions to prevent old initializations of hinter from working after switching units //use executionFunctions to prevent old initializations of hinter from working after switching units
var executeFunctions = true; var executeFunctions = true;
if(executeFunctions){ if(executeFunctions){
......
Metadata-Version: 1.0 Metadata-Version: 1.0
Name: crowdxblock-xblock Name: crowdsourcehinter-xblock
Version: 0.1 Version: 0.1
Summary: crowdxblock XBlock Summary: crowdsourcehinter XBlock
Home-page: UNKNOWN Home-page: UNKNOWN
Author: UNKNOWN Author: UNKNOWN
Author-email: UNKNOWN Author-email: UNKNOWN
......
setup.py
crowdsourcehinter/__init__.py
crowdsourcehinter/crowdsourcehinter.py
crowdsourcehinter/static/README.txt
crowdsourcehinter/static/css/crowdsourcehinter.css
crowdsourcehinter/static/css/crowdsourcehinter.css~
crowdsourcehinter/static/css/crowdxblock.css~
crowdsourcehinter/static/html/crowdsourcehinter.html
crowdsourcehinter/static/html/crowdsourcehinter.html~
crowdsourcehinter/static/html/crowdsourcehinterstudio.html
crowdsourcehinter/static/html/crowdsourcehinterstudio.html~
crowdsourcehinter/static/html/crowdxblock.html~
crowdsourcehinter/static/js/src/crowdsourcehinter.js
crowdsourcehinter/static/js/src/crowdsourcehinter.js~
crowdsourcehinter/static/js/src/crowdxblock.js~
crowdsourcehinter_xblock.egg-info/PKG-INFO
crowdsourcehinter_xblock.egg-info/PKG-INFO~
crowdsourcehinter_xblock.egg-info/SOURCES.txt
crowdsourcehinter_xblock.egg-info/SOURCES.txt~
crowdsourcehinter_xblock.egg-info/dependency_links.txt
crowdsourcehinter_xblock.egg-info/entry_points.txt
crowdsourcehinter_xblock.egg-info/entry_points.txt~
crowdsourcehinter_xblock.egg-info/requires.txt
crowdsourcehinter_xblock.egg-info/top_level.txt
crowdsourcehinter_xblock.egg-info/top_level.txt~
\ No newline at end of file
[xblock.v1] [xblock.v1]
crowdxblock = crowdxblock:CrowdXBlock crowdsourcehinter = crowdsourcehinter:CrowdsourceHinter
from .crowdxblock import CrowdXBlock
\ No newline at end of file
mustache.js @ 32db14a4
Subproject commit 32db14a490ae19455d4367c35f412bd0ecdba17c
setup.py
crowdxblock/__init__.py
crowdxblock/crowdxblock.py
crowdxblock/static/README.txt
crowdxblock/static/css/crowdxblock.css
crowdxblock/static/css/crowdxblock.css~
crowdxblock/static/html/crowdxblock.html
crowdxblock/static/html/crowdxblock.html~
crowdxblock/static/html/crowdxblockstudio.html
crowdxblock/static/js/src/crowdxblock.js
crowdxblock/static/js/src/crowdxblock.js~
crowdxblock_xblock.egg-info/PKG-INFO
crowdxblock_xblock.egg-info/SOURCES.txt
crowdxblock_xblock.egg-info/dependency_links.txt
crowdxblock_xblock.egg-info/entry_points.txt
crowdxblock_xblock.egg-info/requires.txt
crowdxblock_xblock.egg-info/top_level.txt
\ No newline at end of file
"""Setup for crowdxblock XBlock.""" """Setup for Crowdsource Hinter XBlock."""
import os import os
from setuptools import setup from setuptools import setup
...@@ -21,19 +21,19 @@ def package_data(pkg, roots): ...@@ -21,19 +21,19 @@ def package_data(pkg, roots):
setup( setup(
name='crowdxblock-xblock', name='crowdsourcehinter-xblock',
version='0.1', version='0.1',
description='crowdxblock XBlock', # TODO: write a better description. description='crowdsourcehinter XBlock', # TODO: write a better description.
packages=[ packages=[
'crowdxblock', 'crowdsourcehinter',
], ],
install_requires=[ install_requires=[
'XBlock', 'XBlock',
], ],
entry_points={ entry_points={
'xblock.v1': [ 'xblock.v1': [
'crowdxblock = crowdxblock:CrowdXBlock', 'crowdsourcehinter = crowdsourcehinter:CrowdsourceHinter',
] ]
}, },
package_data=package_data("crowdxblock", ["static", "public"]), package_data=package_data("crowdsourcehinter", ["static", "public"]),
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment