File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
// @ts -check
2
+ import { l10n , renderFeedback } from "./headers.js" ;
2
3
import { html } from "../../core/import-maps.js" ;
3
- import { l10n } from "./headers.js" ;
4
4
import showLogo from "../../core/templates/show-logo.js" ;
5
5
import showPeople from "../../core/templates/show-people.js" ;
6
6
@@ -104,6 +104,10 @@ export default (conf, options) => {
104
104
${ showPeople ( conf , "authors" ) }
105
105
`
106
106
: "" }
107
+ ${ conf . github || conf . wgPublicList
108
+ ? html `< dt > ${ l10n . feedback } </ dt >
109
+ ${ renderFeedback ( conf ) } `
110
+ : "" }
107
111
</ dl >
108
112
${ conf . alternateFormats
109
113
? html `< p >
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ export default (conf, options) => {
333
333
</ div > ` ;
334
334
} ;
335
335
336
- function renderFeedback ( conf ) {
336
+ export function renderFeedback ( conf ) {
337
337
const definitions = [ ] ;
338
338
// Github feedback...
339
339
if ( conf . github ) {
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
3
import {
4
+ cgStatus ,
4
5
cgbgStatus ,
5
6
licenses ,
6
7
noTrackStatus ,
@@ -2367,6 +2368,20 @@ describe("W3C — Headers", () => {
2367
2368
} ) ;
2368
2369
2369
2370
describe ( "Feedback" , ( ) => {
2371
+ for ( const specStatus of cgStatus ) {
2372
+ it ( `includes feedback links for CG's ${ specStatus } status` , async ( ) => {
2373
+ const ops = makeStandardOps ( {
2374
+ specStatus,
2375
+ github : "w3c/respec" ,
2376
+ group : "wicg" ,
2377
+ } ) ;
2378
+ const doc = await makeRSDoc ( ops ) ;
2379
+ const [ dt ] = contains ( doc , ".head dt" , "Feedback:" ) ;
2380
+ const dd = dt . nextElementSibling ;
2381
+ expect ( dd . querySelector ( "a[href^='https://github.com/']" ) ) . toBeTruthy ( ) ;
2382
+ } ) ;
2383
+ }
2384
+
2370
2385
it ( "includes a Feedback: with a <dd> to github issues" , async ( ) => {
2371
2386
const doc = await makeRSDoc (
2372
2387
makeStandardOps ( { github : "w3c/respec" , specStatus : "WD" } )
You can’t perform that action at this time.
0 commit comments