Skip to content

Commit

Permalink
Updated the paths for .js and .css to not be absolute paths so that t…
Browse files Browse the repository at this point in the history
…hey can be found when kafdrop is behind a reverse proxy
  • Loading branch information
FrozenInc committed Jun 8, 2020
1 parent 2c5cb3f commit d693864
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/templates/acl-overview.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</style>
</@template.header>

<script src="<@spring.url '/js/powerFilter.js'/>"></script>
<script src="<@spring.url './js/powerFilter.js'/>"></script>

<#setting number_format="0">

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/cluster-overview.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<#import "lib/template.ftl" as template>
<@template.header "Broker List"/>

<script src="<@spring.url '/js/powerFilter.js'/>"></script>
<script src="<@spring.url './js/powerFilter.js'/>"></script>


<#setting number_format="0">
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/templates/lib/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<html>
<head>
<title>Kafdrop: ${title}</title>
<link type="text/css" rel="stylesheet" href="<@spring.url '/css/bootstrap.min.css'/>"/>
<link type="text/css" rel="stylesheet" href="<@spring.url '/css/font-awesome.min.css'/>"/>
<link type="text/css" rel="stylesheet" href="<@spring.url '/css/global.css'/>"/>

<script src="<@spring.url '/js/jquery.min.js'/>"></script>
<script src="<@spring.url '/js/popper.min.js'/>"></script>
<script src="<@spring.url '/js/bootstrap.min.js'/>"></script>
<script src="<@spring.url '/js/global.js'/>"></script>
<script async defer src="<@spring.url '/js/github-buttons.js'/>"></script>
<link type="text/css" rel="stylesheet" href="<@spring.url './css/bootstrap.min.css'/>"/>
<link type="text/css" rel="stylesheet" href="<@spring.url './css/font-awesome.min.css'/>"/>
<link type="text/css" rel="stylesheet" href="<@spring.url './css/global.css'/>"/>

<script src="<@spring.url './js/jquery.min.js'/>"></script>
<script src="<@spring.url './js/popper.min.js'/>"></script>
<script src="<@spring.url './js/bootstrap.min.js'/>"></script>
<script src="<@spring.url './js/global.js'/>"></script>
<script async defer src="<@spring.url './js/github-buttons.js'/>"></script>

<#nested>
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/message-inspector.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
</style>

<script src="<@spring.url '/js/message-inspector.js'/>"></script>
<script src="<@spring.url './js/message-inspector.js'/>"></script>

<script type="text/javascript">
$( document ).ready(updateProtobufPanel);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/topic-create.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<#import "lib/template.ftl" as template>
<@template.header "Topic create"/>

<script src="<@spring.url '/js/powerFilter.js'/>"></script>
<script src="<@spring.url './js/powerFilter.js'/>"></script>


<#setting number_format="0">
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/topic-messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
float: left;
}
</style>
<script src="<@spring.url '/js/message-inspector.js'/>"></script>
<script src="<@spring.url './js/message-inspector.js'/>"></script>
</@template.header>
<#setting number_format="0">

Expand Down

0 comments on commit d693864

Please sign in to comment.