Changed to 'info' template and added infobox

master
tagawa 2015-08-30 12:38:16 +00:00
parent 6ead9221e3
commit 0c91e8c0e3
2 changed files with 15 additions and 3 deletions

View File

@ -51,7 +51,6 @@ handle remainder => sub {
return unless ($api);
return $api->{permission},
structured_answer => {
id => "firefox_os",
@ -61,13 +60,26 @@ handle remainder => sub {
subtitle => "Manifest permission: " . $api->{permission},
description => $api->{description},
url => $api->{url},
infoboxData => [{
label => "Minimum app type required",
value => $api->{app_type}
}, {
label => "'access' property",
value => $api->{access}
}, {
label => "Default granted",
value => $api->{granted}
}, {
label => "Platform/version supported",
value => $api->{platform}
}]
},
meta => {
sourceName => "Mozilla Developer Network",
sourceUrl => "https://developer.mozilla.org/en-US/Apps/Reference/Firefox_OS_device_APIs"
},
templates => {
group => "text",
group => "info",
options => {
moreAt => 1
}

View File

@ -18,7 +18,7 @@ my $templateData = {
sourceUrl => "https://developer.mozilla.org/en-US/Apps/Reference/Firefox_OS_device_APIs"
},
templates => {
group => "text",
group => "info",
options => {
moreAt => 1
}