Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95fa2e3

Browse files
committed
Fix for broken links in Web UI
1 parent b00d844 commit 95fa2e3

18 files changed

+155
-155
lines changed

pkg/ui/datafile.go

Lines changed: 125 additions & 125 deletions
Large diffs are not rendered by default.

www/app/components/dashboard/views/listPodsCards.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<md-grid-tile-footer>
4444

4545
<div class="pod-host">{{pod.currentState.host}}</div>
46-
<div><a ng-href="/#/dashboard/pods/{{ pod.id }}"><h3>{{ pod.id }}</h3></a></div>
46+
<div><a ng-href="#/dashboard/pods/{{ pod.id }}"><h3>{{ pod.id }}</h3></a></div>
4747

4848
</md-grid-tile-footer>
4949
</md-grid-tile>

www/app/components/dashboard/views/listPodsVisualizer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div>
77
<md-button class="md-primary" ng-click="serverView = false">By Name</md-button> |
88
<md-button class="md-primary" ng-click="serverView = true">By Server</md-button>
9-
<div style="float:right;"><md-button class="md-primary" ng-href="/#/dashboard/pods">View Pod Listing</md-button></div>
9+
<div style="float:right;"><md-button class="md-primary" ng-href="#/dashboard/pods">View Pod Listing</md-button></div>
1010
</div>
1111
<div class="pod-group" ng-show="!serverView" ng-include="'components/dashboard/views/partials/podTilesByName.html'"></div>
1212
<div class="pod-group" ng-show="serverView" ng-include="'components/dashboard/views/partials/podTilesByServer.html'"></div>

www/app/components/dashboard/views/partials/groupItem.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<!-- title -->
1919
<div ng-switch on='item.labels["type"]'>
2020
<div class="group-name">
21-
<a ng-switch-when='pod' ng-href="/#/dashboard/pods/{{ item.id }}">{{ item.id }}</a>
22-
<a ng-switch-when='service' ng-href="/#/dashboard/services/{{ item.id }}">{{ item.id }}</a>
23-
<a ng-switch-when='replicationController' ng-href="/#/dashboard/replicationcontrollers/{{ item.id }}">{{ item.id }}</a>
21+
<a ng-switch-when='pod' ng-href="#/dashboard/pods/{{ item.id }}">{{ item.id }}</a>
22+
<a ng-switch-when='service' ng-href="#/dashboard/services/{{ item.id }}">{{ item.id }}</a>
23+
<a ng-switch-when='replicationController' ng-href="#/dashboard/replicationcontrollers/{{ item.id }}">{{ item.id }}</a>
2424
<div ng-switch-default>{{item.id}}</div>
2525
</div>
2626
</div>

www/app/components/dashboard/views/partials/podTilesByName.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<md-grid-tile-footer>
2828

2929
<div class="pod-host">{{pod.currentState.host}}</div>
30-
<div><a ng-href="/#/dashboard/pods/{{ pod.id }}"><h3>{{ pod.id }}</h3></a></div>
30+
<div><a ng-href="#/dashboard/pods/{{ pod.id }}"><h3>{{ pod.id }}</h3></a></div>
3131

3232
</md-grid-tile-footer>
3333
</md-grid-tile>

www/app/components/dashboard/views/partials/podTilesByServer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<md-grid-tile-footer>
2727

2828
<div class="pod-host">{{pod.labels.name}}</div>
29-
<div><a ng-href="/#/dashboard/pods/{{ pod.id }}"><h3>{{ pod.id }}</h3></a></div>
29+
<div><a ng-href="#/dashboard/pods/{{ pod.id }}"><h3>{{ pod.id }}</h3></a></div>
3030

3131
</md-grid-tile-footer>
3232
</md-grid-tile>

www/app/components/dashboard/views/pod.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<tr>
2222
<td class="name">Status</td>
2323
<td class="value">
24-
{{pod.currentState.status}} on <a ng-href="/#/dashboard/groups/host/selector/host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
24+
{{pod.currentState.status}} on <a ng-href="#/dashboard/groups/host/selector/host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
2525
</td>
2626
</tr>
2727

www/app/components/dashboard/views/replication.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="detail">
66

77
<div class="back">
8-
<md-button class="md-default-theme" ng-href="/#/dashboard/replicationcontrollers">‹ BACK</md-button>
8+
<md-button class="md-default-theme" ng-href="#/dashboard/replicationcontrollers">‹ BACK</md-button>
99
</div>
1010

1111
<div class="heading">
@@ -50,7 +50,7 @@
5050
<td class="name">Related Pods</td>
5151
<td class="value">
5252
<div ng-repeat="(label, value) in replicationController.desiredState.replicaSelector">
53-
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
53+
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
5454
</div>
5555
</td>
5656
</tr>
@@ -60,7 +60,7 @@
6060
<td class="name">Related Services</td>
6161
<td class="value">
6262
<div ng-repeat="(label, value) in replicationController.desiredState.replicaSelector">
63-
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=service">{{label}}: {{value}}</a>
63+
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=service">{{label}}: {{value}}</a>
6464
</div>
6565
</td>
6666
</tr>

www/app/components/dashboard/views/service.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="detail">
66

77
<div class="back">
8-
<md-button class="md-default-theme" ng-href="/#/dashboard/services">‹ BACK</md-button>
8+
<md-button class="md-default-theme" ng-href="#/dashboard/services">‹ BACK</md-button>
99
</div>
1010

1111
<div class="heading">
@@ -71,7 +71,7 @@
7171
<td class="name">Related Pods</td>
7272
<td class="value">
7373
<div ng-repeat="(label, value) in service.selector">
74-
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
74+
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
7575
</div>
7676
</td>
7777
</tr>
@@ -80,7 +80,7 @@
8080
<td class="name">Related Replication Controllers</td>
8181
<td class="value">
8282
<div ng-repeat="(label, value) in service.selector">
83-
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=replicationController">{{label}}: {{value}}</a>
83+
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=replicationController">{{label}}: {{value}}</a>
8484
</div>
8585
</td>
8686
</tr>

www/app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
md-closed>
2020
<md-toolbar>
2121
<h1 class="md-toolbar-tools">
22-
<a ng-href="/" layout="row" flex>
22+
<a ng-href="#/dashboard" layout="row" flex>
2323
<span class="kubernetes-ui-logo"></span>
2424
<div style="line-height:40px; text-indent: 15px;">Kubernetes</div>
2525
</a>
@@ -34,7 +34,7 @@ <h1 class="md-toolbar-tools">
3434
<md-toolbar>
3535
<div class="md-toolbar-tools">
3636
<h1 class="md-toolbar-tools">
37-
<a ng-href="/" layout="row" flex>
37+
<a ng-href="#/dashboard" layout="row" flex>
3838
<span class="kubernetes-ui-logo"></span>
3939
<div style="line-height:40px; text-indent: 15px;">Kubernetes</div>
4040
</a>

0 commit comments

Comments
 (0)