diff options
author | Endi S. Dewata <edewata@redhat.com> | 2015-04-21 20:38:45 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2015-04-22 18:46:57 -0400 |
commit | ac504e0a58a232252a046ca2ccb5488d9c144509 (patch) | |
tree | e1c6fce320af365a27355ca58ebece94dbecd453 /base/ca | |
parent | 839e14aa4b115cef680b6923ce44f984f7259459 (diff) | |
download | pki-ac504e0a58a232252a046ca2ccb5488d9c144509.tar.gz pki-ac504e0a58a232252a046ca2ccb5488d9c144509.tar.xz pki-ac504e0a58a232252a046ca2ccb5488d9c144509.zip |
Parameterized CA's services.template.
https://fedorahosted.org/pki/ticket/1296
Diffstat (limited to 'base/ca')
-rw-r--r-- | base/ca/shared/webapps/ca/services.template | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/base/ca/shared/webapps/ca/services.template b/base/ca/shared/webapps/ca/services.template index b4ce80168..648ffd8a9 100644 --- a/base/ca/shared/webapps/ca/services.template +++ b/base/ca/shared/webapps/ca/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/ca/', + 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>CA 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> |