File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -104,17 +104,28 @@ function Header() {
104
104
export function Layout ( { children } : { children : React . ReactNode } ) {
105
105
let pathname = usePathname ( ) ;
106
106
let isHomePage = pathname === '/' ;
107
- let isCody = pathname . includes ( '/cody' ) ;
107
+ let isCodyDocs = pathname . includes ( '/cody' ) ;
108
+ let isopenCtxDocs = pathname . includes ( '/cody/capabilities/openctx' ) ;
108
109
109
110
return (
110
111
< div className = "flex w-full flex-col" >
111
112
< Header />
112
113
113
- { isCody && < TopBanner
114
+ { /* Cody docs banner */ }
115
+ { /* {isCodyDocs && !isopenCtxDocs && <TopBanner
114
116
text="NEW: Introducing chat and search in a single input with Sourcegraph 6.0."
115
117
link="https://sourcegraph.com/blog/combining-chat-and-search"
116
118
linkText="Read here"
117
- textColor = "white"
119
+ textColor="#ffffff"
120
+ backgroundColor="#F34E3F"
121
+ />} */ }
122
+
123
+ { /* Openctx docs banner */ }
124
+ { isopenCtxDocs && < TopBanner
125
+ text = "NEW: Introducing chat and search in a single input with Sourcegraph 6.0."
126
+ link = "https://sourcegraph.com/blog/combining-chat-and-search"
127
+ linkText = "Read here"
128
+ textColor = "#ffffff"
118
129
backgroundColor = "#F34E3F"
119
130
/> }
120
131
You can’t perform that action at this time.
0 commit comments