Show More
@@ -574,46 +574,48 def action_parser(user_log, feed=False): | |||||
574 |
|
574 | |||
575 | # action : translated str, callback(extractor), icon |
|
575 | # action : translated str, callback(extractor), icon | |
576 | action_map = { |
|
576 | action_map = { | |
577 | 'user_deleted_repo': (_('[deleted] repository'), |
|
577 | 'user_deleted_repo': (_('[deleted] repository'), | |
578 | None, 'database_delete.png'), |
|
578 | None, 'database_delete.png'), | |
579 | 'user_created_repo': (_('[created] repository'), |
|
579 | 'user_created_repo': (_('[created] repository'), | |
580 | None, 'database_add.png'), |
|
580 | None, 'database_add.png'), | |
581 | 'user_created_fork': (_('[created] repository as fork'), |
|
581 | 'user_created_fork': (_('[created] repository as fork'), | |
582 | None, 'arrow_divide.png'), |
|
582 | None, 'arrow_divide.png'), | |
583 | 'user_forked_repo': (_('[forked] repository'), |
|
583 | 'user_forked_repo': (_('[forked] repository'), | |
584 | get_fork_name, 'arrow_divide.png'), |
|
584 | get_fork_name, 'arrow_divide.png'), | |
585 | 'user_updated_repo': (_('[updated] repository'), |
|
585 | 'user_updated_repo': (_('[updated] repository'), | |
586 | None, 'database_edit.png'), |
|
586 | None, 'database_edit.png'), | |
587 | 'admin_deleted_repo': (_('[delete] repository'), |
|
587 | 'admin_deleted_repo': (_('[delete] repository'), | |
588 | None, 'database_delete.png'), |
|
588 | None, 'database_delete.png'), | |
589 | 'admin_created_repo': (_('[created] repository'), |
|
589 | 'admin_created_repo': (_('[created] repository'), | |
590 | None, 'database_add.png'), |
|
590 | None, 'database_add.png'), | |
591 | 'admin_forked_repo': (_('[forked] repository'), |
|
591 | 'admin_forked_repo': (_('[forked] repository'), | |
592 | None, 'arrow_divide.png'), |
|
592 | None, 'arrow_divide.png'), | |
593 | 'admin_updated_repo': (_('[updated] repository'), |
|
593 | 'admin_updated_repo': (_('[updated] repository'), | |
594 | None, 'database_edit.png'), |
|
594 | None, 'database_edit.png'), | |
595 | 'admin_created_user': (_('[created] user'), |
|
595 | 'admin_created_user': (_('[created] user'), | |
596 | get_user_name, 'user_add.png'), |
|
596 | get_user_name, 'user_add.png'), | |
597 | 'admin_updated_user': (_('[updated] user'), |
|
597 | 'admin_updated_user': (_('[updated] user'), | |
598 | get_user_name, 'user_edit.png'), |
|
598 | get_user_name, 'user_edit.png'), | |
599 | 'admin_created_users_group': (_('[created] users group'), |
|
599 | 'admin_created_users_group': (_('[created] users group'), | |
600 | get_users_group, 'group_add.png'), |
|
600 | get_users_group, 'group_add.png'), | |
601 | 'admin_updated_users_group': (_('[updated] users group'), |
|
601 | 'admin_updated_users_group': (_('[updated] users group'), | |
602 | get_users_group, 'group_edit.png'), |
|
602 | get_users_group, 'group_edit.png'), | |
603 | 'user_commented_revision': (_('[commented] on revision in repository'), |
|
603 | 'user_commented_revision': (_('[commented] on revision in repository'), | |
604 | get_cs_links, 'comment_add.png'), |
|
604 | get_cs_links, 'comment_add.png'), | |
605 | 'push': (_('[pushed] into'), |
|
605 | 'user_commented_pull_request': (_('[commented] on pull request'), | |
606 |
get_cs_links, ' |
|
606 | get_cs_links, 'comment_add.png'), | |
607 |
'push |
|
607 | 'push': (_('[pushed] into'), | |
608 |
get_cs_links, 'script_ |
|
608 | get_cs_links, 'script_add.png'), | |
609 |
'push_ |
|
609 | 'push_local': (_('[committed via RhodeCode] into repository'), | |
610 |
get_cs_links, ' |
|
610 | get_cs_links, 'script_edit.png'), | |
611 |
'pu |
|
611 | 'push_remote': (_('[pulled from remote] into repository'), | |
612 |
|
|
612 | get_cs_links, 'connect.png'), | |
613 | 'started_following_repo': (_('[started following] repository'), |
|
613 | 'pull': (_('[pulled] from'), | |
614 |
None, ' |
|
614 | None, 'down_16.png'), | |
615 |
'st |
|
615 | 'started_following_repo': (_('[started following] repository'), | |
616 |
None, 'heart_ |
|
616 | None, 'heart_add.png'), | |
|
617 | 'stopped_following_repo': (_('[stopped following] repository'), | |||
|
618 | None, 'heart_delete.png'), | |||
617 | } |
|
619 | } | |
618 |
|
620 | |||
619 | action_str = action_map.get(action, action) |
|
621 | action_str = action_map.get(action, action) |
General Comments 0
You need to be logged in to leave comments.
Login now