Skip to content

Commit d4e0bda

Browse files
committed
* Sections can be hidden (but sitemap doesn't show it)
* Remove (or center) the lock/unlock icon for the root section
1 parent 3bfb408 commit d4e0bda

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/assets/javascripts/cms/new-sitemap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $(function() {
9191
$('.nav-stacked a')[0].click();
9292
});
9393

94-
// Make sections collapsible/expandable
94+
// Change the folder icon when they are opened/closed.
9595
$(function() {
9696
$('a[data-toggle="collapse"]').click(function() {
9797
if ($(this).siblings('ul').hasClass('in') == true) {
@@ -102,7 +102,7 @@ $(function() {
102102
});
103103
});
104104

105-
// Make Sitemap filters work.
105+
// Make Sitemap filters show specific content types.
106106
$(function() {
107107
$('#sitemap li[data-nodetype]').hide();
108108
$('#filtershow').change(function() {

app/views/cms/section_nodes/_section.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<%= content_tag("a", href: "#", class: 'selectable', data: data) do %>
1616
<%= icon(icon_name) %> <%= section.name %>
1717
<span class="span1">
18-
<%= content_tag "i", "", class: access_status(section, @public_sections) %>
18+
<%= content_tag "span", "H", class: "status phidden" if section.hidden? %>
19+
<%= content_tag "i", "", class: access_status(section, @public_sections) unless section.root? %>
1920
</span>
2021
<% end %>
2122
<ul id="section<%= section.id %>" class="nav nav-list <%= collapse %>">

todo_ui_Revamp.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ Tasks:
22

33
## UI Merge
44

5-
* Sections can be hidden (but sitemap doesn't show it)
65
* Select something else after deleting.
76
* Handle non-editable sections (from security)
8-
* Remove (or center) the lock/unlock icon for the root section
97
* Keep open/closed/last selected state of sitemap
108
* Audit/Delete/merge js/cms/sitemap.js.erb
119
* Move/drag/drop sections

0 commit comments

Comments
 (0)