Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
121 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,59 @@ | ||
</body> | ||
<script> | ||
// Wrap form element with fluid-container if missing | ||
$(function() { | ||
if ( $('main.container-fluid').length==0 ) { | ||
$('form').wrap('<main class="container-fluid"></main>'); | ||
} | ||
}); | ||
// Wrap form element with fluid-container if missing | ||
$(function() { | ||
if ( $('main.container-fluid').length==0 ) { | ||
$('form').wrap('<main class="container-fluid"></main>'); | ||
} | ||
}); | ||
$('i[title*="UserFolder"]').replaceWith('<i data-title="Access Control List" class="fa fa-users"></i>'); | ||
$('i[title*="PluggableAuthService"]').replaceWith('<i data-title="Pluggable Auth Service" class="fa fa-users"></i>'); | ||
$('i[title*="User"]').replaceWith('<i data-title="User" class="far fa-user"></i>'); | ||
$('i[title*="TemporaryFolder"]').replaceWith('<i data-title="Folder" class="far fa-folder"></i>'); | ||
$('i[title*="Filesystem Directory View"]').replaceWith('<i data-title="Filesystem Directory View" class="far fa-folder-open"></i>'); | ||
$('i[title*="Folder"]').replaceWith('<i data-title="Folder" class="far fa-folder"></i>'); | ||
$('i[title*="Error"]').replaceWith('<i data-title="Error" class="fa fa-exclamation"></i>'); | ||
$('i[title*="Script"]').replaceWith('<i data-title="Script (Python)" class="fa fa-terminal"></i>'); | ||
$('i[title*="ExternalMethod"]').replaceWith('<i data-title="External Python Method" class="fa fa-external-link-square"></i>'); | ||
$('i[title*="DTML"]').replaceWith('<i data-title="DTML" class="far fa-file"></i>'); | ||
$('i[title*="Template"]').replaceWith('<i data-title="Template" class="far fa-file-code"></i>'); | ||
$('i[title*="File"]').replaceWith('<i data-title="File Object" class="far fa-file"></i>'); | ||
$('i[title*="Mail"]').replaceWith('<i data-title="Mail Folder" class="far fa-envelope"></i>'); | ||
$('i[title*="Image"]').replaceWith('<i data-title="Image" class="far fa-file-image"></i>'); | ||
$('i[title*="Control"]').replaceWith('<i data-title="Control Panel" class="fa fa-cogs"></i>'); | ||
$('i[title*="Database"]').replaceWith('<i data-title="Database" class="far fa-database"></i>'); | ||
$('i[title*="ZSQLiteDA"]').replaceWith('<i data-title="Database" class="far fa-database"></i>'); | ||
$('i[title*="ZMySQLDA"]').replaceWith('<i data-title="MySQL-Database Adapter" class="far fa-database"></i>'); | ||
$('i[title*="Product"]').replaceWith('<i data-title="Installed Product" class="fa fa-gift"></i>'); | ||
$('i[title*="ZSQL"]').replaceWith('<i data-title="ZSQL-Method" class="far fa-puzzle-piece"></i>'); | ||
$('i[title*="/p_/pl"]').replaceWith('<i data-title="Expand..." class="far fa-plus-square"></i>'); | ||
$('i[title*="/p_/mi"]').replaceWith('<i data-title="Collapse..." class="far fa-minus-square"></i>'); | ||
$('i[title*="/p_/davlocked"]').replaceWith('<i data-title="WebDAV" class="fa fa-retweet"></i>'); | ||
$('i[title*="DebugManager"]').replaceWith('<i data-title="Debug Manager" class="far fa-bug"></i>'); | ||
$('i[title*="SiteErrorLog"]').replaceWith('<i data-title="Site Error Log" class="far fa-bug"></i>'); | ||
$('i[title*="ZMS"]').replaceWith('<i data-title="ZMS Root" class="fas fa-home"></i>'); | ||
$('i[title*="ZMSObject.png"]').replaceWith('<i data-title="ZMS Content" class="far fa-file"></i>'); | ||
$('i[title*="Monster"]').replaceWith('<i data-title="Virtual Host Monster" class="fa fa-road"></i>'); | ||
$('i[title*="ZCatalog"]').replaceWith('<i data-title="ZCatalog" class="far fa-search"></i>'); | ||
$('i[title*="Browser Session"]').replaceWith('<i data-title="Browser Session Manager" class="far fa-bookmark"></i>'); | ||
$('i[title*="Session Data"]').replaceWith('<i data-title="Session Data Manager" class="fab fa-bookmark"></i>'); | ||
|
||
|
||
// ALL THE OTHER ICONS | ||
$('img[src*="misc_"]').replaceWith('<i class="fa fa-circle-blank"></i>'); | ||
$('img[src*="zms_"]').replaceWith('<i class="fa fa-circle-blank"></i>'); | ||
|
||
|
||
// SHOW MENU TOGGLE ONLY ON LIST PAGES | ||
if ($('.nav a[href="manage_findForm"]').length > 0 ) { | ||
$('#toggle_menu').show(); | ||
} else { | ||
$('#toggle_menu').hide(); | ||
} | ||
// HELP ICON | ||
$('a[href*="HelpSys"]').empty() | ||
.append('<i class="fa fa-question-sign"></i>') | ||
.css('border-color','transparent'); | ||
|
||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,51 @@ | ||
<dtml-var manage_page_header> | ||
|
||
<table width="100%"> | ||
<tr bgcolor="#eeeeee"> | ||
<td> | ||
<a href="Control_Panel/manage_main" target="manage_main"> | ||
Control Panel | ||
</a> | ||
</td> | ||
</tr> | ||
</table> | ||
<br /> | ||
|
||
<table width="100%"> | ||
<tr bgcolor="#000000"> | ||
<td valign="top" nowrap="nowrap"> | ||
<a href="manage_workspace" target="manage_main" style="color: #ffffff;"> | ||
<dtml-if expr="URLPATH1==BASEPATH1"> | ||
Root Folder | ||
<dtml-else> | ||
&dtml-id; | ||
</dtml-if> | ||
</a> | ||
</td> | ||
</tr> | ||
|
||
<div class="dropdown" id="menu_buttons"> | ||
<button title="Logged in as" class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> | ||
<span class="caret"></span>Login: &dtml-AUTHENTICATED_USER; | ||
</button> | ||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1"> | ||
<li><a id="menu_refresh" href="manage_menu">Refresh</a></li> | ||
<li><a id="menu_save" href="manage_menu?save_layout=1">Save layout</a></li> | ||
<li><a id="menu_logout" href="manage_zmi_logout">Logout</a></li> | ||
<li role="separator" class="divider"></li> | ||
<li><a id="menu_copyright" href="manage_copyright">© Zope Foundation</a></li> | ||
</ul> | ||
</div> | ||
|
||
|
||
<table id="menu_title"> | ||
<tr> | ||
<td id="menu_workspace"> | ||
<dtml-if icon> | ||
<a href="manage_workspace" target="manage_main"><img | ||
src="&dtml-BASEPATH1;/&dtml-icon;" border="0" | ||
title="Click to open this item" alt="&dtml-meta_type;" /></a> | ||
</dtml-if> | ||
<a href="manage_workspace" target="manage_main"> | ||
<dtml-if expr="URLPATH1==BASEPATH1">Root Folder<dtml-else>&dtml-id;</dtml-if> | ||
</a> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
<div id="menu_tree"> | ||
<dtml-tree nowrap=1> | ||
<a class="&dtml-zmi_icon;" href="&dtml.url_quote-tree-item-url;/manage_workspace" | ||
<dtml-if icon> | ||
<a href="&dtml.url_quote-tree-item-url;/manage_workspace" | ||
target="manage_main"><img src="&dtml-BASEPATH1;/&dtml-icon;" border="0" | ||
title="Click to open this item" alt="&dtml-meta_type;" /></a> | ||
</dtml-if> | ||
<a href="&dtml.url_quote-tree-item-url;/manage_workspace" | ||
target="manage_main">&dtml-id;</a> | ||
</dtml-tree> | ||
<br /> | ||
|
||
<table width="100%" bgcolor="#6699cc"> | ||
<tr> | ||
<td valign="top" align="center"> | ||
<div class="form-element"> | ||
<form action="&dtml-BASEPATH1;/manage_zmi_logout" method="POST" target="manage_main"> | ||
<span class="std-text">Logged in as <strong>&dtml-AUTHENTICATED_USER;</strong></span> | ||
| ||
<br /> | ||
<dtml-if "AUTHENTICATED_USER.getUserName() != 'Anonymous User'"> | ||
<input class="form-element" type="submit" name="submit" value="Logout" /> | ||
</dtml-if> | ||
| ||
</form> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<strong><a href="manage_menu">Refresh menu</a></strong> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
|
||
<dtml-if save_layout> | ||
<dtml-call "RESPONSE.setCookie('tree-s', REQUEST.get('tree-s'), expires=ZopeTime('2975-05-26').rfc822())"> | ||
</dtml-if> | ||
|
||
<dtml-var manage_page_footer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters