Show More
@@ -572,6 +572,13 b' def action_parser(user_log, feed=False):' | |||||
572 | group_name = action_params |
|
572 | group_name = action_params | |
573 | return group_name |
|
573 | return group_name | |
574 |
|
574 | |||
|
575 | def get_pull_request(): | |||
|
576 | pull_request_id = action_params | |||
|
577 | repo_name = user_log.repository.repo_name | |||
|
578 | return link_to(_('Pull request #%s') % pull_request_id, | |||
|
579 | url('pullrequest_show', repo_name=repo_name, | |||
|
580 | pull_request_id=pull_request_id)) | |||
|
581 | ||||
575 | # action : translated str, callback(extractor), icon |
|
582 | # action : translated str, callback(extractor), icon | |
576 | action_map = { |
|
583 | action_map = { | |
577 | 'user_deleted_repo': (_('[deleted] repository'), |
|
584 | 'user_deleted_repo': (_('[deleted] repository'), | |
@@ -602,8 +609,10 b' def action_parser(user_log, feed=False):' | |||||
602 | get_users_group, 'group_edit.png'), |
|
609 | get_users_group, 'group_edit.png'), | |
603 | 'user_commented_revision': (_('[commented] on revision in repository'), |
|
610 | 'user_commented_revision': (_('[commented] on revision in repository'), | |
604 | get_cs_links, 'comment_add.png'), |
|
611 | get_cs_links, 'comment_add.png'), | |
605 | 'user_commented_pull_request': (_('[commented] on pull request'), |
|
612 | 'user_commented_pull_request': (_('[commented] on pull request for'), | |
606 |
get_ |
|
613 | get_pull_request, 'comment_add.png'), | |
|
614 | 'user_closed_pull_request': (_('[closed] pull request for'), | |||
|
615 | get_pull_request, 'tick.png'), | |||
607 | 'push': (_('[pushed] into'), |
|
616 | 'push': (_('[pushed] into'), | |
608 | get_cs_links, 'script_add.png'), |
|
617 | get_cs_links, 'script_add.png'), | |
609 | 'push_local': (_('[committed via RhodeCode] into repository'), |
|
618 | 'push_local': (_('[committed via RhodeCode] into repository'), |
General Comments 0
You need to be logged in to leave comments.
Login now