diff --git a/app/templates/components/data-table-row-change.hbs b/app/templates/components/data-table-row-change.hbs index a16fec9c..bd488952 100644 --- a/app/templates/components/data-table-row-change.hbs +++ b/app/templates/components/data-table-row-change.hbs @@ -1,4 +1,8 @@ -{{#unless (or @rowConfig.divider this.noPriorData)}} +{{#unless (or + @rowConfig.divider + this.noPriorData + (eq @data.category 'detailed_race_and_ethnicity') +)}} <td class='title-column' {{action 'showData'}}> <span> {{@rowConfig.title}} @@ -194,7 +198,17 @@ {{/with}} {{/with}} {{else}} - {{#if this.noPriorData}} + {{#if (eq @data.category 'detailed_race_and_ethnicity')}} + {{!-- disable change over time for subregions in detailed_race_and_ethnicity chart --}} + <td class='title-column' {{action 'showData' }}> + <span> + {{@rowConfig.title}} + </span> + </td> + <td class="cell-border-left no-compare-message"> + Data for this row are not comparable or are unavailable + </td> + {{else if this.noPriorData}} {{!-- if 2006-2010 sum is null, just return empty cells --}} <td class='title-column' {{action 'showData'}}> <span> diff --git a/app/templates/components/data-table-row-previous.hbs b/app/templates/components/data-table-row-previous.hbs index c5879f47..d7801e91 100644 --- a/app/templates/components/data-table-row-previous.hbs +++ b/app/templates/components/data-table-row-previous.hbs @@ -1,4 +1,8 @@ -{{#unless (or this.rowConfig.divider this.noPriorData)}} +{{#unless (or + this.rowConfig.divider + this.noPriorData + (eq @data.category 'detailed_race_and_ethnicity') +)}} <td class='title-column' {{action 'showData'}}> <span> {{this.rowConfig.title}} @@ -125,7 +129,17 @@ {{/if}} {{else}} - {{#if this.noPriorData}} + {{#if (eq @data.category 'detailed_race_and_ethnicity')}} + {{!-- disable change over time for subregions in detailed_race_and_ethnicity chart --}} + <td class='title-column' {{action 'showData' }}> + <span> + {{@rowConfig.title}} + </span> + </td> + <td class="cell-border-left no-compare-message"> + Data for this row are not comparable or are unavailable + </td> + {{else if this.noPriorData}} {{!-- if 2006-2010 sum is null, just return empty cells --}} <td class='title-column' {{action 'showData'}}> <span>