Switch to subtitle with title_content template

master
Zaahir Moolla 2016-05-30 16:35:19 -04:00
parent 7413a55eae
commit cb79350f1f
4 changed files with 7 additions and 10 deletions

View File

@ -36,12 +36,12 @@ handle query_lc => sub {
return $val->{'plain'}, structured_answer => {
data => {
constant => $result,
description => $constant->{'name'}
subtitle => $constant->{'name'}
},
templates => {
group => 'text',
options => {
content => 'DDH.constants.content'
title_content => 'DDH.constants.title_content'
}
},
meta => {

View File

@ -1,4 +0,0 @@
<h3 class='zci__caption zci__result'>{{{constant}}}</h3>
<h4 class='zci__subheader'>
<span class='zci__input'>{{description}}</span>
</h4>

View File

@ -0,0 +1 @@
<h3 class='c-base__title'>{{{constant}}}</h3>

View File

@ -15,12 +15,12 @@ sub build_test
return test_zci($text, structured_answer => {
data => {
constant => $title,
description => $subtitle,
subtitle => $subtitle,
},
templates => {
group => 'text',
options => {
content => 'DDH.constants.content'
title_content => 'DDH.constants.title_content'
}
},
meta => {
@ -34,7 +34,7 @@ ddg_goodie_test(
"Hardy Ramanujan number" => build_test(
'1^3 + 12^3 = 9^3 + 10^3',
'Hardy Ramanujan Number 1729',
"1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup>",
"1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup>",
),
#without apostrophe
"Avogadros number" => build_test(
@ -55,7 +55,7 @@ ddg_goodie_test(
'0.577215665',
),
"How old is my grandma?" => undef,
"why?" => undef,
"why?" => undef,
);
done_testing;