Show More
@@ -1916,9 +1916,9 b' def get_last_path_part(file_node):' | |||||
1916 |
|
1916 | |||
1917 | def route_url(*args, **kwds): |
|
1917 | def route_url(*args, **kwds): | |
1918 | """ |
|
1918 | """ | |
1919 |
Wrapper around pyramids `route_url` |
|
1919 | Wrapper around pyramids `route_url` (fully qualified url) function. | |
1920 |
URLs from within pylons views or templates. |
|
1920 | It is used to generate URLs from within pylons views or templates. | |
1921 | pyramid migration if finished. |
|
1921 | This will be removed when pyramid migration if finished. | |
1922 | """ |
|
1922 | """ | |
1923 | req = get_current_request() |
|
1923 | req = get_current_request() | |
1924 | return req.route_url(*args, **kwds) |
|
1924 | return req.route_url(*args, **kwds) |
@@ -19,9 +19,9 b' A new user `${user.username}` has regist' | |||||
19 |
|
19 | |||
20 | ## BODY GOES BELOW |
|
20 | ## BODY GOES BELOW | |
21 | <table style="text-align:left;vertical-align:middle;"> |
|
21 | <table style="text-align:left;vertical-align:middle;"> | |
22 |
<tr><td colspan="2" style="width:100%;padding-bottom:15px;border-bottom:1px solid #dbd9da;"><h4><a href="${h.route_ |
|
22 | <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> | |
23 | <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> |
|
23 | <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> | |
24 | <tr><td style="padding-right:20px;">${_('Full Name')}</td><td>${user.firstname} ${user.lastname}</td></tr> |
|
24 | <tr><td style="padding-right:20px;">${_('Full Name')}</td><td>${user.firstname} ${user.lastname}</td></tr> | |
25 | <tr><td style="padding-right:20px;">${_('Email')}</td><td>${user.email}</td></tr> |
|
25 | <tr><td style="padding-right:20px;">${_('Email')}</td><td>${user.email}</td></tr> | |
26 |
<tr><td style="padding-right:20px;">${_('Profile')}</td><td><a href="${h.route_ |
|
26 | <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> | |
27 | </table> No newline at end of file |
|
27 | </table> |
General Comments 0
You need to be logged in to leave comments.
Login now