emails: fix url for user registration to be a fully qualified path.
This commit is contained in:
parent
b4b97b1b4e
commit
90a7661dde
2 changed files with 5 additions and 5 deletions
|
|
@ -1916,9 +1916,9 @@ def get_last_path_part(file_node):
|
|||
|
||||
def route_url(*args, **kwds):
|
||||
"""
|
||||
Wrapper around pyramids `route_url` function. It is used to generate
|
||||
URLs from within pylons views or templates. This will be removed when
|
||||
pyramid migration if finished.
|
||||
Wrapper around pyramids `route_url` (fully qualified url) function.
|
||||
It is used to generate URLs from within pylons views or templates.
|
||||
This will be removed when pyramid migration if finished.
|
||||
"""
|
||||
req = get_current_request()
|
||||
return req.route_url(*args, **kwds)
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ ${self.plaintext_footer()}
|
|||
|
||||
## BODY GOES BELOW
|
||||
<table style="text-align:left;vertical-align:middle;">
|
||||
<tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"><h4><a href="${h.route_path('user_profile', username=user.username, qualified=True)}" style="color:#427cc9;text-decoration:none;cursor:pointer">${_('New user %(user)s has registered on %(date)s') % {'user': user.username, 'date': h.format_date(date)}}</a></h4></td></tr>
|
||||
<tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"><h4><a href="${h.route_url('user_profile', username=user.username)}" style="color:#427cc9;text-decoration:none;cursor:pointer">${_('New user %(user)s has registered on %(date)s') % {'user': user.username, 'date': h.format_date(date)}}</a></h4></td></tr>
|
||||
<tr><td style="padding-right:20px;padding-top:20px;">${_('Username')}</td><td style="line-height:1;padding-top:20px;"><img style="margin-bottom:-5px;text-align:left;border:1px solid #dbd9da" src="${h.gravatar_url(user.email, 16)}" height="16" width="16"> ${user.username}</td></tr>
|
||||
<tr><td style="padding-right:20px;">${_('Full Name')}</td><td>${user.firstname} ${user.lastname}</td></tr>
|
||||
<tr><td style="padding-right:20px;">${_('Email')}</td><td>${user.email}</td></tr>
|
||||
<tr><td style="padding-right:20px;">${_('Profile')}</td><td><a href="${h.route_path('user_profile', username=user.username, qualified=True)}">${h.route_path('user_profile', username=user.username, qualified=True)}</a></td></tr>
|
||||
<tr><td style="padding-right:20px;">${_('Profile')}</td><td><a href="${h.route_url('user_profile', username=user.username)}">${h.route_url('user_profile', username=user.username)}</a></td></tr>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue