Skip to content

Commit

Permalink
Merge pull request #464 from ExpediaDotCom/co-branding-zipkin
Browse files Browse the repository at this point in the history
Co branding zipkin
  • Loading branch information
Jason Bulicek authored Feb 4, 2019
2 parents 77013e5 + dedeef0 commit 4bbd514
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
Binary file added public/images/zipkin-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ router.get('*', (req, res) => {
tracesTTL: config.connectors.traces.ttl,
trendsTTL: config.connectors.trends && config.connectors.trends.ttl,
relatedTracesOptions: config.relatedTracesOptions,
tagValuesTransformMap: config.tagValuesTransformMap
tagValuesTransformMap: config.tagValuesTransformMap,
usingZipkinConnector: (config.connectors.traces.connectorName === 'zipkin')
});

onFinished(res, () => {
Expand Down
3 changes: 2 additions & 1 deletion server/views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ html
tracesTTL: !{JSON.stringify(tracesTTL || -1)},
trendsTTL: !{JSON.stringify(trendsTTL || -1)},
relatedTracesOptions: !{JSON.stringify(relatedTracesOptions || [])},
tagValuesTransformMap: !{JSON.stringify(tagValuesTransformMap || {})}
tagValuesTransformMap: !{JSON.stringify(tagValuesTransformMap || {})},
usingZipkinConnector: !{JSON.stringify(usingZipkinConnector || false)},
}
script(async, defer, src = bundleCommonsJsPath)
script(async, defer, src = bundleAppJsPath)
1 change: 1 addition & 0 deletions src/bootstrap/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
@font-size-h4: 24px;
@font-size-h5: 20px;
@font-size-h6: 14px;
@font-size-h7: 10px;

//** Unit-less `line-height` for use in components like buttons.
@line-height-base: 1.846; // 20/14
Expand Down
6 changes: 6 additions & 0 deletions src/components/layout/slimHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export default () => (
<img src="/images/logo-white.png" className="logo universal-search-header__logo" alt="Logo"/>
<span className="usb-logo universal-search-header__title">Haystack</span>
</Link>
{ window.haystackUiConfig.usingZipkinConnector ?
<Link className="usb-logo navbar-brand universal-search-header__container" to="/">
<span className="universal-search-header__subtitle">Tracing powered by</span>
<img src="/images/zipkin-logo.jpg" className="logo universal-search-header__logo" alt="Logo"/>
<span className="usb-logo universal-search-header__title">Zipkin</span>
</Link> : window.haystackUiConfig.usingZipkinConnector }
</div>
</header>
);
6 changes: 6 additions & 0 deletions src/components/universalSearch/universalSearch.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@

.universal-search-header__title {
font-size: @font-size-h5;
padding: @padding-xs-horizontal;
}

.universal-search-header__subtitle{
font-size: @font-size-h7;
padding: @padding-xs-horizontal;
}

.universal-search-header__container {
Expand Down

0 comments on commit 4bbd514

Please sign in to comment.