Show More
@@ -317,21 +317,17 b' def is_following_repo(repo_name, user_id' | |||
|
317 | 317 | |
|
318 | 318 | flash = _Flash() |
|
319 | 319 | |
|
320 | ||
|
321 | 320 | #============================================================================== |
|
322 |
# |
|
|
321 | # SCM FILTERS available via h. | |
|
323 | 322 | #============================================================================== |
|
324 | from mercurial import util | |
|
325 | from mercurial.templatefilters import person as _person | |
|
323 | from vcs.utils import author_name, author_email | |
|
326 | 324 | from rhodecode.lib import credentials_hidder, age as _age |
|
327 | 325 | |
|
328 | ||
|
329 | ||
|
330 | 326 | age = lambda x:_age(x) |
|
331 | 327 | capitalize = lambda x: x.capitalize() |
|
332 |
email = |
|
|
333 |
email_or_none = lambda x: |
|
|
334 |
person = lambda x: |
|
|
328 | email = author_email | |
|
329 | email_or_none = lambda x: email(x) if email(x) != x else None | |
|
330 | person = lambda x: author_name(x) | |
|
335 | 331 | short_id = lambda x: x[:12] |
|
336 | 332 | hide_credentials = lambda x: ''.join(credentials_hidder(x)) |
|
337 | 333 |
General Comments 0
You need to be logged in to leave comments.
Login now