Skip to content

Commit

Permalink
[CE-479] Add stack overflow link in document
Browse files Browse the repository at this point in the history
Add document & stack overflow link in operator dashboard.

Change-Id: I0c901c4b77a75279ff727cebe7d22adbf062bc47
Signed-off-by: Haitao Yue <hightall@me.com>
  • Loading branch information
hightall committed Sep 17, 2018
1 parent 1b4f305 commit 328b669
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ For additional helps, feel free to take the following channels:
* [RocketChat Room](https://chat.hyperledger.org/channel/cello): Real-time online discussions.
* [Jira Board](https://jira.hyperledger.org/projects/CE/issues): Find development status, report bug, or help [contribute code](CONTRIBUTING.md).
* [Gerrit](https://gerrit.hyperledger.org/r/#/q/project:cello): Development related code and patchsets, welcome to [contribute](CONTRIBUTING.md).
* [Stack Overflow](https://stackoverflow.com/questions/tagged/hyperledger-cello): Stack overflow discussion questions about cello.

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
1 change: 1 addition & 0 deletions src/static/dashboard/src/assets/so.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 24 additions & 1 deletion src/static/dashboard/src/components/GlobalHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
SPDX-License-Identifier: Apache-2.0
*/
import React, { PureComponent } from 'react';
import { Menu, Icon, Spin, Dropdown, Avatar, Divider, Button } from 'antd';
import { Menu, Icon, Spin, Dropdown, Avatar, Divider, Button, Tooltip } from 'antd';
import Debounce from 'lodash-decorators/debounce';
import { Link } from 'dva/router';
import styles from './index.less';
import { getLang } from '../../utils/utils';
import stackOverflow from '../../assets/so.svg';

const language = getLang();
export default class GlobalHeader extends PureComponent {
Expand Down Expand Up @@ -52,6 +53,28 @@ export default class GlobalHeader extends PureComponent {
onClick={this.toggle}
/>
<div className={styles.right}>
<Tooltip title="Document">
<a
target="_blank"
href="https://cello.readthedocs.io"
rel="noopener noreferrer"
className={styles.action}
title="Document"
>
<Icon type="question-circle-o" />
</a>
</Tooltip>
<Tooltip title="Stack Overflow">
<a
target="_blank"
href="https://stackoverflow.com/questions/tagged/hyperledger-cello"
rel="noopener noreferrer"
className={styles.action}
title="Stack Overflow"
>
<img src={stackOverflow} style={{ width: 18 }} />
</a>
</Tooltip>
<Button size="small" onClick={this.changeLanguage}>
{language === 'en' ? '中文' : 'En'}
</Button>
Expand Down

0 comments on commit 328b669

Please sign in to comment.