%%impl #include "acconfig.h"
%%var bool b_svn = false;
%%var std::string urlPrev;
%%var std::string descPrev;
%%var std::string titlePrev;
%%var std::string urlNext;
%%var std::string descNext;
%%var std::string titleNext;
<%constructor>
if(strstr(PACKAGE_STRING,"svn"))
b_svn = true;
%constructor>
<%method void prevnext() %>
% if(urlPrev.empty() && urlNext.empty()) return;
% if(descPrev.empty() && descNext.empty()) return;
%method>
<%method void body() %>
<%code>
if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) {
pass_file_through(WEB_RUN_ROOT "/conf/banner_top");
}
prevnext();
content();
if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) {
pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom");
}
%code>
% sidepanel();
%method>
<%method void content() %>
%method>
<%method void sidepanel() %>
<% PACKAGE_STRING %>
% if(b_svn) {
The site is running source from the source repository which may differ
from the one available for download. You can check it out from the source repository.
% }
% /* thank MSIE for this awful formatting */
<%code>
if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) {
pass_file_through(WEB_RUN_ROOT "/conf/banner_side");
}
%code>
%method>