diff options
author | Endi S. Dewata <edewata@redhat.com> | 2015-04-21 22:05:10 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2015-04-22 18:48:04 -0400 |
commit | de25c823b9c92113fec5e10ce02ff8f48734bdde (patch) | |
tree | 9c71083e6a78fc7c0744649ec526a6e676e148a2 /base/ocsp | |
parent | ac504e0a58a232252a046ca2ccb5488d9c144509 (diff) | |
download | pki-de25c823b9c92113fec5e10ce02ff8f48734bdde.tar.gz pki-de25c823b9c92113fec5e10ce02ff8f48734bdde.tar.xz pki-de25c823b9c92113fec5e10ce02ff8f48734bdde.zip |
Parameterized service.template in all subsystems.
https://fedorahosted.org/pki/ticket/1296
Diffstat (limited to 'base/ocsp')
-rw-r--r-- | base/ocsp/shared/webapps/ocsp/services.template | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/base/ocsp/shared/webapps/ocsp/services.template b/base/ocsp/shared/webapps/ocsp/services.template index 4b4511889..a34d75deb 100644 --- a/base/ocsp/shared/webapps/ocsp/services.template +++ b/base/ocsp/shared/webapps/ocsp/services.template @@ -17,6 +17,28 @@ --- END COPYRIGHT BLOCK --- --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> +<head> +<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.js"></script> +<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.i18n.properties.js"></script> + +<script type="text/javascript" language="JavaScript"> +$(function() { + $.i18n.properties({ + name: 'services', + language: ' ', // suppress potential 404's due to .i18n.browserLang() + path: '/pki/ocsp/', + mode: 'map', + callback: function() { + var key; + for (key in $.i18n.map) { + var message = $.i18n.prop(key); + $('span.message[name='+key+']').html(message); + } + } + }); +}); +</script> + <CMS_TEMPLATE> <title>OCSP Services</title> <link rel="shortcut icon" href="/pki/images/favicon.ico" /> @@ -27,9 +49,13 @@ <body bgcolor="#FFFFFF" link="#666699" vlink="#666699" alink="#333366"> <div id="header"> - <a href="http://pki.fedoraproject.org/" title="Visit pki.fedoraproject.org for more information about Dogtag products and services"><img src="/pki/images/logo_header.gif" alt="Dogtag" id="myLogo" /></a> + <span class="message" name="logo"> + <a href="http://pki.fedoraproject.org/" title="Visit pki.fedoraproject.org for more information about Certificate System products and services"><img src="/pki/images/logo_header.gif" alt="Certificate System" id="myLogo" /></a> + </span> <div id="headertitle"> - <a href="/" title="Dogtag Network homepage">Dogtag<sup><font size="-2">®</font></sup> Certificate System</a> + <span class="message" name="title"> + <a href="/" title="Certificate System">Certificate System</a> + </span> </div> <div id="account"> <dl><dt><span></span></dt><dd></dd></dl> |