diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-22 14:26:42 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-22 14:26:42 +0000 |
commit | f1ffda42b62b378814f0c9aa96a8d48778a251dd (patch) | |
tree | 8d2ae06c36bd4636d78718cf629e846c0a2afa70 | |
parent | a88db262384d3800c36589bb6d1a933b9319e2df (diff) |
Better FAQ templating.
-rw-r--r-- | templates/website/cobrands/emptyhomes/faq-cy (renamed from templates/website/faq-eha.cy.html) | 0 | ||||
-rwxr-xr-x | templates/website/cobrands/emptyhomes/faq-en-gb (renamed from templates/website/faq-eha.html) | 0 | ||||
-rw-r--r-- | templates/website/cobrands/fiksgatami/faq-nb | 0 | ||||
-rwxr-xr-x | templates/website/faq-en-gb (renamed from templates/website/faq.html) | 0 | ||||
-rwxr-xr-x | web/faq.cgi | 12 |
5 files changed, 2 insertions, 10 deletions
diff --git a/templates/website/faq-eha.cy.html b/templates/website/cobrands/emptyhomes/faq-cy index 1a446055e..1a446055e 100644 --- a/templates/website/faq-eha.cy.html +++ b/templates/website/cobrands/emptyhomes/faq-cy diff --git a/templates/website/faq-eha.html b/templates/website/cobrands/emptyhomes/faq-en-gb index aa70a26ee..aa70a26ee 100755 --- a/templates/website/faq-eha.html +++ b/templates/website/cobrands/emptyhomes/faq-en-gb diff --git a/templates/website/cobrands/fiksgatami/faq-nb b/templates/website/cobrands/fiksgatami/faq-nb new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/website/cobrands/fiksgatami/faq-nb diff --git a/templates/website/faq.html b/templates/website/faq-en-gb index 0c5fa7aea..0c5fa7aea 100755 --- a/templates/website/faq.html +++ b/templates/website/faq-en-gb diff --git a/web/faq.cgi b/web/faq.cgi index 2046f6955..4d9c7413a 100755 --- a/web/faq.cgi +++ b/web/faq.cgi @@ -16,16 +16,8 @@ my $lastmodified = (stat $0)[9]; sub main { my $q = shift; print Page::header($q, title=>_('Frequently Asked Questions')); - if ($q->{site} eq 'emptyhomes') { - my $lang = $mySociety::Locale::lang; - if ($lang eq 'cy') { - print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.cy.html"); - } else { - print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.html"); - } - } else { - print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq.html"); - } + my $lang = $mySociety::Locale::lang; + print Page::template_include("faq-$lang", $q, Page::template_root($q)); print Page::footer($q); } Page::do_fastcgi(\&main, $lastmodified); |