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
75447eb8
Commit
75447eb8
authored
Jan 08, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - problem speed editor: revised html and DOM for problem sub menu
parent
ae4e7815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
14 deletions
+32
-14
cms/templates/unit.html
+32
-14
No files found.
cms/templates/unit.html
View file @
75447eb8
...
...
@@ -12,8 +12,15 @@
state
:
'${unit_state}'
})
});
(
function
()
{
$
(
'.new-component-template'
).
each
(
function
(){
$emptyEditor
=
$
(
this
).
find
(
'.empty'
);
$
(
this
).
prepend
(
$emptyEditor
);
});
})();
function
setEditorTab
(
e
)
{
e
.
preventDefault
();
$
(
'.editor-tabs .current'
).
removeClass
(
'current'
);
...
...
@@ -153,18 +160,29 @@
<div
class=
"new-component-templates new-component-${type}"
>
<ul
class=
"new-component-template"
>
% for name, location, has_markdown, is_empty in templates:
<li>
<a
href=
"#"
data-location=
"${location}"
>
<span
class=
"name"
>
${name}
% if has_markdown:
MD
% endif
% if is_empty:
<i>
rasa
</i>
% endif
</span>
</a>
</li>
% if is_empty:
<li
class=
"editor-md empty"
>
<a
href=
"#"
data-location=
"${location}"
>
<span
class=
"name"
>
${name}
</span>
</a>
</li>
% elif has_markdown:
<li
class=
"editor-md"
>
<a
href=
"#"
data-location=
"${location}"
>
<span
class=
"name"
>
${name}
</span>
</a>
</li>
% else:
<li
class=
"editor-manual"
>
<a
href=
"#"
data-location=
"${location}"
>
<span
class=
"name"
>
${name}
</span>
</a>
</li>
% endif
%endfor
</ul>
<a
href=
"#"
class=
"cancel-button"
>
Cancel
</a>
...
...
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