Skip to content

Commit

Permalink
[CE-246] Add explorer url in dashboard
Browse files Browse the repository at this point in the history
This is for basic theme and vue theme

Change-Id: I1b29d3ecde4e5809e83f182354e9af192c92dffd
Signed-off-by: sally <lujjiang@cn.ibm.com>
  • Loading branch information
lujjiang committed Jan 25, 2018
1 parent 862a386 commit 1b86bde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/themes/basic/templates/cluster_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ <h2>Chain Information</h2>
{% for k in item.service_url%}
{{ k }}: {{item.service_url[k]}}<br>
{% endfor %}
<dt>Explorer URL<dt> <dd>
{% for k in item.service_url%}
{% if k== "dashboard"%}
<a href="http://{{item.service_url[k]}}">{{ item.service_url[k]}}</a><br>
{% endif %}
{% endfor %}
</dd>
{% if item.containers %}
<dt>Containers<dt>
Expand Down
4 changes: 4 additions & 0 deletions src/themes/vue/static/src/pages/Chains/ExpandRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ SPDX-License-Identifier: Apache-2.0
<span class="expand-key">Host Capacity: </span>
<span class="expand-value">{{ host.capacity }}</span>
</Col>
<Col span="8">
<span class="expand-key">Explorer URL: </span>
<a class="expand-value" v-for="(item, index) in chain.service_url" v-if="index === 'dashboard'" :href="'http://'+item ">http://{{ item }}</a>
</Col>
</Row>
</div>
</template>
Expand Down

0 comments on commit 1b86bde

Please sign in to comment.