Show More
@@ -41,7 +41,7 b' from rhodecode.model.scm import ScmModel' | |||
|
41 | 41 | |
|
42 | 42 | from vcs.backends import ARCHIVE_SPECS |
|
43 | 43 | from vcs.exceptions import RepositoryError, ChangesetError, \ |
|
44 |
ChangesetDoesNotExistError, EmptyRepositoryError, I |
|
|
44 | ChangesetDoesNotExistError, EmptyRepositoryError, ImproperArchiveTypeError | |
|
45 | 45 | from vcs.nodes import FileNode |
|
46 | 46 | from vcs.utils import diffs as differ |
|
47 | 47 |
@@ -394,7 +394,6 b' def action_parser(user_log):' | |||
|
394 | 394 | action, action_params = x |
|
395 | 395 | |
|
396 | 396 | def get_cs_links(): |
|
397 | if action == 'push': | |
|
398 | 397 |
|
|
399 | 398 |
|
|
400 | 399 |
|
@@ -426,10 +425,8 b' def action_parser(user_log):' | |||
|
426 | 425 |
|
|
427 | 426 | |
|
428 | 427 |
|
|
429 | return '' | |
|
430 | 428 | |
|
431 | 429 | def get_fork_name(): |
|
432 | if action == 'user_forked_repo': | |
|
433 | 430 |
|
|
434 | 431 |
|
|
435 | 432 |
|
@@ -438,24 +435,28 b' def action_parser(user_log):' | |||
|
438 | 435 |
|
|
439 | 436 |
|
|
440 | 437 |
|
|
441 | return '' | |
|
442 | map = {'user_deleted_repo':_('User [deleted] repository'), | |
|
443 | 'user_created_repo':_('User [created] repository'), | |
|
444 |
'user_forked_repo':_('User [forked] repository as: |
|
|
445 | 'user_updated_repo':_('User [updated] repository'), | |
|
446 | 'admin_deleted_repo':_('Admin [delete] repository'), | |
|
447 | 'admin_created_repo':_('Admin [created] repository'), | |
|
448 | 'admin_forked_repo':_('Admin [forked] repository'), | |
|
449 | 'admin_updated_repo':_('Admin [updated] repository'), | |
|
450 |
'push':_('[Pushed] |
|
|
451 | 'pull':_('[Pulled]'), | |
|
452 | 'started_following_repo':_('User [started following] repository'), | |
|
453 | 'stopped_following_repo':_('User [stopped following] repository'), | |
|
438 | ||
|
439 | map = {'user_deleted_repo':(_('User [deleted] repository'), None), | |
|
440 | 'user_created_repo':(_('User [created] repository'), None), | |
|
441 | 'user_forked_repo':(_('User [forked] repository as:'), get_fork_name), | |
|
442 | 'user_updated_repo':(_('User [updated] repository'), None), | |
|
443 | 'admin_deleted_repo':(_('Admin [delete] repository'), None), | |
|
444 | 'admin_created_repo':(_('Admin [created] repository'), None), | |
|
445 | 'admin_forked_repo':(_('Admin [forked] repository'), None), | |
|
446 | 'admin_updated_repo':(_('Admin [updated] repository'), None), | |
|
447 | 'push':(_('[Pushed]'), get_cs_links), | |
|
448 | 'pull':(_('[Pulled]'), None), | |
|
449 | 'started_following_repo':(_('User [started following] repository'), None), | |
|
450 | 'stopped_following_repo':(_('User [stopped following] repository'), None), | |
|
454 | 451 | } |
|
455 | 452 | |
|
456 | 453 | action_str = map.get(action, action) |
|
457 |
|
|
|
458 |
.replace(']', '</span>') |
|
|
454 | action = action_str[0].replace('[', '<span class="journal_highlight">')\ | |
|
455 | .replace(']', '</span>') | |
|
456 | if action_str[1] is not None: | |
|
457 | action = action + " " + action_str[1]() | |
|
458 | ||
|
459 | return literal(action) | |
|
459 | 460 | |
|
460 | 461 | def action_parser_icon(user_log): |
|
461 | 462 | action = user_log.action |
General Comments 0
You need to be logged in to leave comments.
Login now