Commit 2f6b1f9b by Ayub-Khan

-new code according to document.

parent a6fd6ca5
...@@ -9,9 +9,8 @@ else: ...@@ -9,9 +9,8 @@ else:
</%def> </%def>
<%! <%!
from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name
from django.utils.translation import ugettext as _
from openedx.core.lib.js_utils import escape_json_dumps from openedx.core.lib.js_utils import escape_json_dumps
from markupsafe import Markup as HTML, escape as HTML_ESCAPE from util.markup import HTML, ugettext as _
%> %>
<%block name="title">${xblock.display_name_with_default} ${xblock_type_display_name(xblock) | h}</%block> <%block name="title">${xblock.display_name_with_default} ${xblock_type_display_name(xblock) | h}</%block>
<%block name="bodyclass">is-signedin course container view-container</%block> <%block name="bodyclass">is-signedin course container view-container</%block>
...@@ -111,10 +110,16 @@ from markupsafe import Markup as HTML, escape as HTML_ESCAPE ...@@ -111,10 +110,16 @@ from markupsafe import Markup as HTML, escape as HTML_ESCAPE
% if xblock.category == 'split_test': % if xblock.category == 'split_test':
<div class="bit"> <div class="bit">
<h3 class="title-3">${_("Adding components")}</h3> <h3 class="title-3">${_("Adding components")}</h3>
<p>${_(HTML_ESCAPE("Select a component type under {em_start}Add New Component{em_end}. Then select a template.")).format(em_start=HTML('<strong>'), em_end=HTML("</strong>"))}</p> <p>${_("Select a component type under {strong_start}Add New Component{strong_end}. Then select a template.").format(
strong_start=HTML('<strong>'),
strong_end=HTML("</strong>"),
)}</p>
<p>${_("The new component is added at the bottom of the page or group. You can then edit and move the component.")}</p> <p>${_("The new component is added at the bottom of the page or group. You can then edit and move the component.")}</p>
<h3 class="title-3">${_("Editing components")}</h3> <h3 class="title-3">${_("Editing components")}</h3>
<p>${_(HTML_ESCAPE("Click the {em_start}Edit{em_end} icon in a component to edit its content.")).format(em_start=HTML('<strong>'), em_end=HTML("</strong>"))}</p> <p>${_("Click the {strong_start}Edit{strong_end} icon in a component to edit its content.").format(
strong_start=HTML('<strong>'),
strong_end=HTML("</strong>"),
)}</p>
<h3 class="title-3">${_("Reorganizing components")}</h3> <h3 class="title-3">${_("Reorganizing components")}</h3>
<p>${_("Drag components to new locations within this component.")}</p> <p>${_("Drag components to new locations within this component.")}</p>
<p>${_("For content experiments, you can drag components to other groups.")}</p> <p>${_("For content experiments, you can drag components to other groups.")}</p>
......
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