diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-04-04 16:48:01 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-04-04 16:48:01 -0700 |
commit | 6cebc2154e81a0c60a8892fdac88fca5be74f75b (patch) | |
tree | c8454a1703b29a92e1b1c2859c194a63c727e08c /httemplate/docs | |
parent | eb1652e3e27879dc21fb5de882581b5759a66bee (diff) |
add brand-agent option, RT#17055
Diffstat (limited to 'httemplate/docs')
-rw-r--r-- | httemplate/docs/about.html | 50 | ||||
-rw-r--r-- | httemplate/docs/credits.html | 7 |
2 files changed, 48 insertions, 9 deletions
diff --git a/httemplate/docs/about.html b/httemplate/docs/about.html index 76a477c05..e3bb28298 100644 --- a/httemplate/docs/about.html +++ b/httemplate/docs/about.html @@ -1,14 +1,34 @@ -<% include('/elements/header-popup.html', { title=>'Freeside', nobr=>1 } ) %> +<% include('/elements/header-popup.html', { title=>$title, nobr=>1 } ) %> <% include('/elements/init_overlib.html') %> <CENTER> -<IMG SRC="<%$fsurl%>images/small-logo.png" BORDER="0"><BR> -<H3>version <% $FS::VERSION %></H3> +% if ( $agentnum ) { + + <IMG SRC="<%$fsurl%>view/logo-agent.cgi?agentnum=<%$agentnum%>" BORDER="0"><BR> + +% my $url = $conf->config('company_url', $agentnum); +% if ( $url ) { + <BR><BR> + <A HREF="<% $conf->config('company_url', $agentnum) %>" TARGET="_blank"><%$title%> homepage</A> +% } + +% } else { + + <IMG SRC="<%$fsurl%>images/small-logo.png" BORDER="0"><BR> + <H3>version <% $FS::VERSION %></H3> + +% } </CENTER> <CENTER> -<FONT SIZE="-1">© 2012 Freeside Internet Services, Inc.<BR> +% if ( $agentnum ) { + <BR><BR> + <FONT SIZE="-2">Based on Freeside version <% $FS::VERSION %><BR> +% } else { + <FONT SIZE="-1"> +% } +© 2012 Freeside Internet Services, Inc.<BR> All rights reserved.<BR> Licensed under the terms of the<BR> GNU <b>Affero</b> General Public License.<BR> @@ -17,6 +37,9 @@ GNU <b>Affero</b> General Public License.<BR> <BR> <CENTER> +% if ( $agentnum ) { + <FONT SIZE="-2"> +% } <A HREF="credits.html">Credits</A> <A HREF="javascript:void(0)" onClick="openLicense()">License</A> @@ -24,13 +47,18 @@ GNU <b>Affero</b> General Public License.<BR> <BR><BR> <A HREF="http://www.freeside.biz/freeside" TARGET="_blank">Freeside homepage</A> +% if ( $agentnum ) { + </FONT> +% } </CENTER> <BR> -<CENTER> -<FONT SIZE="-3">"A selfish heart is trouble, but a foolish heart is worse" -R. Hunter</FONT> -</CENTER> +% unless ( $agentnum ) { + <CENTER> + <FONT SIZE="-3">"A selfish heart is trouble, but a foolish heart is worse" -R. Hunter</FONT> + </CENTER> +% } <SCRIPT TYPE="text/javascript"> @@ -51,3 +79,11 @@ function openLicense() { </BODY> </HTML> +<%init> + +my $conf = new FS::Conf; +my $agentnum = $conf->config('brand-agent'); + +my $title = $agentnum ? $conf->config('company_name', $agentnum) : 'Freeside'; + +</%init> diff --git a/httemplate/docs/credits.html b/httemplate/docs/credits.html index 9bb1decea..c1d0d8705 100644 --- a/httemplate/docs/credits.html +++ b/httemplate/docs/credits.html @@ -120,6 +120,9 @@ Tim Yardley<BR> <BR> <BR> <BR> +<BR> +<BR> +<BR> <SCRIPT TYPE="text/javascript"> @@ -154,12 +157,12 @@ function myHeight() { return document.body.document.height; else */ - return 1850; // approx height (add more per contributors) + return 1900; // approx height (add more per contributors) } document.body.style.overflow = 'hidden'; -var startingPosition = 360; +var startingPosition = 340; //huh, adjust for firefox var ua = navigator.userAgent; |