You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2013/07/08 03:56:35 UTC
svn commit: r1500566 - in /bloodhound/trunk/bloodhound_theme/bhtheme:
templates/bh_verify_email.html theme.py
Author: rjollos
Date: Mon Jul 8 01:56:35 2013
New Revision: 1500566
URL: http://svn.apache.org/r1500566
Log:
Added Bootstrap template for `verify_email.html`. Patch by Olemis. Refs #201.
Added:
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_verify_email.html
Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Added: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_verify_email.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_verify_email.html?rev=1500566&view=auto
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_verify_email.html (added)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_verify_email.html Mon Jul 8 01:56:35 2013
@@ -0,0 +1,72 @@
+<!--!
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
+ i18n:domain="bloodhound">
+ <xi:include href="layout.html" />
+ <?python
+ if _dgettext is not None:
+ dgettext = _dgettext ?>
+ <head>
+ <title>Verify Email</title>
+ <script type="text/javascript">
+ jQuery(document).ready(function($) {
+ $('#token').focus();
+ });
+ </script>
+ </head>
+
+ <body>
+ <div id="content" class="verify_email row">
+
+ <h1 class="span12">Verify Email</h1>
+
+ <p class="help span12" i18n:msg="email">An email was sent to
+ $req.session.email with a token to verify your new address.
+ Please check your email and enter the token in the form below.</p>
+ <p class= "span12" i18n:msg="">You can <a href="${href.prefs()}">change
+ your email address</a>, if it is incorrect.</p>
+
+ <form method="post" action="" id="acctmgr_verify_email" class="form-inline">
+ <label for="token">Verification Token:</label>
+ <div class="input-append">
+ <input type="text" id="token" name="token" class="textwidget"
+ size="10" value="${value_of('token')}" /><!--!
+ --><button type="submit" name="verify" py:attrs="button_state"
+ value="${dgettext('acct_mgr', 'Verify')}" class="btn">
+ <i class="icon-ok"></i>
+ ${dgettext('acct_mgr', 'Verify')}
+ </button><!--!
+ --><button type="submit" name="resend" py:attrs="button_state"
+ value="${dgettext('acct_mgr', 'Resend Email')}" class="btn">
+ <i class="icon-envelope"></i>
+ ${dgettext('acct_mgr', 'Resend Email')}
+ </button>
+ </div>
+ </form>
+
+ </div>
+ </body>
+</html>
Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1500566&r1=1500565&r2=1500566&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Jul 8 01:56:35 2013
@@ -143,6 +143,7 @@ class BloodhoundTheme(ThemeBase):
'login.html': ('bh_login.html', None),
'register.html': ('bh_register.html', None),
'reset_password.html': ('bh_reset_password.html', None),
+ 'verify_email.html': ('bh_verify_email.html', None),
}
BOOTSTRAP_CSS_DEFAULTS = (
# ('XPath expression', ['default', 'bootstrap', 'css', 'classes'])