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
158c000a
Commit
158c000a
authored
Oct 15, 2012
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #918 from MITx/feature/tomg/cas-tree-tweaks
Tweaks to the unit location pane
parents
3d67c960
83b32987
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
cms/static/coffee/src/views/unit.coffee
+1
-0
cms/templates/unit.html
+1
-3
cms/templates/widgets/units.html
+1
-1
No files found.
cms/static/coffee/src/views/unit.coffee
View file @
158c000a
...
...
@@ -185,6 +185,7 @@ class CMS.Views.UnitEdit.NameEdit extends Backbone.View
# Treat the metadata dictionary as immutable
metadata
=
$
.
extend
({},
@
model
.
get
(
'metadata'
))
metadata
.
display_name
=
@
$
(
'.unit-display-name-input'
).
val
()
$
(
'.unit-location .editing .unit-name'
).
html
(
metadata
.
display_name
)
@
model
.
set
(
'metadata'
,
metadata
)
class
CMS
.
Views
.
UnitEdit
.
LocationState
extends
Backbone
.
View
...
...
cms/templates/unit.html
View file @
158c000a
...
...
@@ -108,9 +108,7 @@
<span
class=
"folder-icon"
></span>
<span
class=
"subsection-name"
><span
class=
"subsection-name-value"
>
${subsection.display_name}
</span></span>
</a>
<ol>
${units.enum_units(subsection, actions=False, selected=unit.location)}
</ol>
${units.enum_units(subsection, actions=False, selected=unit.location)}
</li>
</ol>
</li>
...
...
cms/templates/widgets/units.html
View file @
158c000a
...
...
@@ -18,7 +18,7 @@ This def will enumerate through a passed in subsection and list all of the units
<div
class=
"section-item ${selected_class}"
>
<a
href=
"${reverse('edit_unit', args=[unit.location])}"
class=
"${unit_state}-item"
>
<span
class=
"${unit.category}-icon"
></span>
${unit.display_name}
<span
class=
"unit-name"
>
${unit.display_name}
</span>
</a>
% if actions:
<div
class=
"item-actions"
>
...
...
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