Skip to content

Commit

Permalink
Fix misdirected links in Web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbroussard committed May 15, 2015
1 parent b00d844 commit 7893643
Show file tree
Hide file tree
Showing 18 changed files with 155 additions and 155 deletions.
250 changes: 125 additions & 125 deletions pkg/ui/datafile.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/app/components/dashboard/views/listPodsCards.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<md-grid-tile-footer>

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

</md-grid-tile-footer>
</md-grid-tile>
Expand Down
2 changes: 1 addition & 1 deletion www/app/components/dashboard/views/listPodsVisualizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div>
<md-button class="md-primary" ng-click="serverView = false">By Name</md-button> |
<md-button class="md-primary" ng-click="serverView = true">By Server</md-button>
<div style="float:right;"><md-button class="md-primary" ng-href="/#/dashboard/pods">View Pod Listing</md-button></div>
<div style="float:right;"><md-button class="md-primary" ng-href="#/dashboard/pods">View Pod Listing</md-button></div>
</div>
<div class="pod-group" ng-show="!serverView" ng-include="'components/dashboard/views/partials/podTilesByName.html'"></div>
<div class="pod-group" ng-show="serverView" ng-include="'components/dashboard/views/partials/podTilesByServer.html'"></div>
Expand Down
6 changes: 3 additions & 3 deletions www/app/components/dashboard/views/partials/groupItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<!-- title -->
<div ng-switch on='item.labels["type"]'>
<div class="group-name">
<a ng-switch-when='pod' ng-href="/#/dashboard/pods/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='service' ng-href="/#/dashboard/services/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='replicationController' ng-href="/#/dashboard/replicationcontrollers/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='pod' ng-href="#/dashboard/pods/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='service' ng-href="#/dashboard/services/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='replicationController' ng-href="#/dashboard/replicationcontrollers/{{ item.id }}">{{ item.id }}</a>
<div ng-switch-default>{{item.id}}</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<md-grid-tile-footer>

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

</md-grid-tile-footer>
</md-grid-tile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<md-grid-tile-footer>

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

</md-grid-tile-footer>
</md-grid-tile>
Expand Down
2 changes: 1 addition & 1 deletion www/app/components/dashboard/views/pod.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<tr>
<td class="name">Status</td>
<td class="value">
{{pod.currentState.status}} on <a ng-href="/#/dashboard/groups/host/selector/host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
{{pod.currentState.status}} on <a ng-href="#/dashboard/groups/host/selector/host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
</td>
</tr>

Expand Down
6 changes: 3 additions & 3 deletions www/app/components/dashboard/views/replication.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="detail">

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

<div class="heading">
Expand Down Expand Up @@ -50,7 +50,7 @@
<td class="name">Related Pods</td>
<td class="value">
<div ng-repeat="(label, value) in replicationController.desiredState.replicaSelector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand All @@ -60,7 +60,7 @@
<td class="name">Related Services</td>
<td class="value">
<div ng-repeat="(label, value) in replicationController.desiredState.replicaSelector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=service">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=service">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions www/app/components/dashboard/views/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="detail">

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

<div class="heading">
Expand Down Expand Up @@ -71,7 +71,7 @@
<td class="name">Related Pods</td>
<td class="value">
<div ng-repeat="(label, value) in service.selector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand All @@ -80,7 +80,7 @@
<td class="name">Related Replication Controllers</td>
<td class="value">
<div ng-repeat="(label, value) in service.selector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=replicationController">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=replicationController">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions www/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
md-closed>
<md-toolbar>
<h1 class="md-toolbar-tools">
<a ng-href="/" layout="row" flex>
<a ng-href="#/dashboard" layout="row" flex>
<span class="kubernetes-ui-logo"></span>
<div style="line-height:40px; text-indent: 15px;">Kubernetes</div>
</a>
Expand All @@ -34,7 +34,7 @@ <h1 class="md-toolbar-tools">
<md-toolbar>
<div class="md-toolbar-tools">
<h1 class="md-toolbar-tools">
<a ng-href="/" layout="row" flex>
<a ng-href="#/dashboard" layout="row" flex>
<span class="kubernetes-ui-logo"></span>
<div style="line-height:40px; text-indent: 15px;">Kubernetes</div>
</a>
Expand Down
2 changes: 1 addition & 1 deletion www/master/components/dashboard/views/listPodsCards.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<md-grid-tile-footer>

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

</md-grid-tile-footer>
</md-grid-tile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div>
<md-button class="md-primary" ng-click="serverView = false">By Name</md-button> |
<md-button class="md-primary" ng-click="serverView = true">By Server</md-button>
<div style="float:right;"><md-button class="md-primary" ng-href="/#/dashboard/pods">View Pod Listing</md-button></div>
<div style="float:right;"><md-button class="md-primary" ng-href="#/dashboard/pods">View Pod Listing</md-button></div>
</div>
<div class="pod-group" ng-show="!serverView" ng-include="'components/dashboard/views/partials/podTilesByName.html'"></div>
<div class="pod-group" ng-show="serverView" ng-include="'components/dashboard/views/partials/podTilesByServer.html'"></div>
Expand Down
6 changes: 3 additions & 3 deletions www/master/components/dashboard/views/partials/groupItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<!-- title -->
<div ng-switch on='item.labels["type"]'>
<div class="group-name">
<a ng-switch-when='pod' ng-href="/#/dashboard/pods/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='service' ng-href="/#/dashboard/services/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='replicationController' ng-href="/#/dashboard/replicationcontrollers/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='pod' ng-href="#/dashboard/pods/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='service' ng-href="#/dashboard/services/{{ item.id }}">{{ item.id }}</a>
<a ng-switch-when='replicationController' ng-href="#/dashboard/replicationcontrollers/{{ item.id }}">{{ item.id }}</a>
<div ng-switch-default>{{item.id}}</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<md-grid-tile-footer>

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

</md-grid-tile-footer>
</md-grid-tile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<md-grid-tile-footer>

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

</md-grid-tile-footer>
</md-grid-tile>
Expand Down
2 changes: 1 addition & 1 deletion www/master/components/dashboard/views/pod.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<tr>
<td class="name">Status</td>
<td class="value">
{{pod.currentState.status}} on <a ng-href="/#/dashboard/groups/host/selector/host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
{{pod.currentState.status}} on <a ng-href="#/dashboard/groups/host/selector/host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
</td>
</tr>

Expand Down
6 changes: 3 additions & 3 deletions www/master/components/dashboard/views/replication.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="detail">

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

<div class="heading">
Expand Down Expand Up @@ -50,7 +50,7 @@
<td class="name">Related Pods</td>
<td class="value">
<div ng-repeat="(label, value) in replicationController.desiredState.replicaSelector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand All @@ -60,7 +60,7 @@
<td class="name">Related Services</td>
<td class="value">
<div ng-repeat="(label, value) in replicationController.desiredState.replicaSelector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=service">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=service">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions www/master/components/dashboard/views/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="detail">

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

<div class="heading">
Expand Down Expand Up @@ -71,7 +71,7 @@
<td class="name">Related Pods</td>
<td class="value">
<div ng-repeat="(label, value) in service.selector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=pod">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand All @@ -80,7 +80,7 @@
<td class="name">Related Replication Controllers</td>
<td class="value">
<div ng-repeat="(label, value) in service.selector">
<a ng-href="/#/dashboard/groups/type/selector/{{label}}={{value}},type=replicationController">{{label}}: {{value}}</a>
<a ng-href="#/dashboard/groups/type/selector/{{label}}={{value}},type=replicationController">{{label}}: {{value}}</a>
</div>
</td>
</tr>
Expand Down

0 comments on commit 7893643

Please sign in to comment.