diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2025-02-05 23:04:13 +0100 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2025-02-05 23:04:13 +0100 |
| commit | 8199b48ae5d31b008f10dff173352bd8ba2d8890 (patch) | |
| tree | 2b8b8b61ba2b136193fbcda37113347539294a59 /public | |
| parent | d72edba966ba2b55697685f3711dbfcb38d9fbc8 (diff) | |
Enhance admin view by sitemap
Diffstat (limited to 'public')
| -rw-r--r-- | public/javascripts/admin_interface.js | 17 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 4 |
2 files changed, 20 insertions, 1 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index f8148e2..ea3ab3d 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -16,7 +16,7 @@ $(document).ready(function () { | |||
| 16 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", | 16 | theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code", |
| 17 | theme_advanced_buttons2 : "", | 17 | theme_advanced_buttons2 : "", |
| 18 | theme_advanced_buttons3 : "", | 18 | theme_advanced_buttons3 : "", |
| 19 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial]", | 19 | extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial|conditions]", |
| 20 | relative_urls : false, | 20 | relative_urls : false, |
| 21 | entity_encoding : "raw", | 21 | entity_encoding : "raw", |
| 22 | oninit : cccms.setup_autosave() | 22 | oninit : cccms.setup_autosave() |
| @@ -44,21 +44,36 @@ $(document).ready(function () { | |||
| 44 | 44 | ||
| 45 | if ($('#recent_changes_toggle').length != 0) { | 45 | if ($('#recent_changes_toggle').length != 0) { |
| 46 | $('#current_drafts_table').hide(); | 46 | $('#current_drafts_table').hide(); |
| 47 | $('#admin_sitemap_table').hide(); | ||
| 47 | $('#recent_changes_toggle').attr("class", "selected"); | 48 | $('#recent_changes_toggle').attr("class", "selected"); |
| 48 | 49 | ||
| 49 | $('#recent_changes_toggle').bind("click", function(){ | 50 | $('#recent_changes_toggle').bind("click", function(){ |
| 50 | $('#recent_changes_toggle').attr("class", "selected"); | 51 | $('#recent_changes_toggle').attr("class", "selected"); |
| 51 | $('#current_drafts_toggle').attr("class", "unselected"); | 52 | $('#current_drafts_toggle').attr("class", "unselected"); |
| 53 | $('#admin_sitemap_toggle').attr("class", "unselected"); | ||
| 52 | $('#recent_changes_table').show(); | 54 | $('#recent_changes_table').show(); |
| 53 | $('#current_drafts_table').hide(); | 55 | $('#current_drafts_table').hide(); |
| 56 | $('#admin_sitemap_table').hide(); | ||
| 54 | return false; | 57 | return false; |
| 55 | }); | 58 | }); |
| 56 | 59 | ||
| 57 | $('#current_drafts_toggle').bind("click", function(){ | 60 | $('#current_drafts_toggle').bind("click", function(){ |
| 58 | $('#recent_changes_toggle').attr("class", "unselected"); | 61 | $('#recent_changes_toggle').attr("class", "unselected"); |
| 59 | $('#current_drafts_toggle').attr("class", "selected"); | 62 | $('#current_drafts_toggle').attr("class", "selected"); |
| 63 | $('#admin_sitemap_toggle').attr("class", "unselected"); | ||
| 60 | $('#current_drafts_table').show(); | 64 | $('#current_drafts_table').show(); |
| 61 | $('#recent_changes_table').hide(); | 65 | $('#recent_changes_table').hide(); |
| 66 | $('#admin_sitemap_table').hide(); | ||
| 67 | return false; | ||
| 68 | }); | ||
| 69 | |||
| 70 | $('#admin_sitemap_toggle').bind("click", function(){ | ||
| 71 | $('#recent_changes_toggle').attr("class", "unselected"); | ||
| 72 | $('#current_drafts_toggle').attr("class", "unselected"); | ||
| 73 | $('#admin_sitemap_toggle').attr("class", "selected"); | ||
| 74 | $('#current_drafts_table').hide(); | ||
| 75 | $('#recent_changes_table').hide(); | ||
| 76 | $('#admin_sitemap_table').show(); | ||
| 62 | return false; | 77 | return false; |
| 63 | }); | 78 | }); |
| 64 | } | 79 | } |
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index f95fa18..fbb8a3f 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -170,6 +170,10 @@ table.node_table .actions { | |||
| 170 | text-transform: lowercase; | 170 | text-transform: lowercase; |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | #admin_sitemap_table .node_id:before { | ||
| 174 | content: "• "; | ||
| 175 | } | ||
| 176 | |||
| 173 | /* Revisions */ | 177 | /* Revisions */ |
| 174 | 178 | ||
| 175 | table#revisions { | 179 | table#revisions { |
