Skip to content

Commit

Permalink
apply navigation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
morimoriysmoon authored and scroix committed Apr 1, 2024
1 parent dae1832 commit d4f22c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nodel-webui-js/src/locals.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="v1/index.xsl"?>
<pages core="true" theme="default" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="index.xsd">
<header destination="diagnostics.xml">
<header destination="nodes.xml">
<nodel type="hosticon"/>
</header>
<page title='Locals'>
Expand Down
2 changes: 1 addition & 1 deletion nodel-webui-js/src/nodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ $(function() {
// get the node name
if(window.location.pathname.split( '/' )[1]=="nodes") node = decodeURIComponent(window.location.pathname.split( '/' )[2].replace(/\+/g, '%20'));
if(node) {
if($('body').hasClass('core')) $('.navbar-brand a').attr("href", window.document.location.protocol+"//"+host);
if($('body').hasClass('core')) $('.navbar-brand a').attr("href", window.document.location.protocol+"//"+host+"/locals.xml"); // go to locals
getNodeDetails().then(function(){
updatepadding();
$.when(createDynamicElements().then(function(){
Expand Down
2 changes: 1 addition & 1 deletion nodel-webui-js/src/nodel.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="v1/index.xsl"?>
<pages core="true" theme="default" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="v1/index.xsd">
<header>
<header destination="locals.xml">
<nodel type="hosticon"/>
<nodel type="nav"/>
<nodel type="edit"/>
Expand Down

0 comments on commit d4f22c8

Please sign in to comment.