Show More
@@ -45,7 +45,7 b' from rhodecode.lib.utils2 import str2boo' | |||
|
45 | 45 | get_changeset_safe, datetime_to_time, time_to_datetime, AttributeDict |
|
46 | 46 | from rhodecode.lib.markup_renderer import MarkupRenderer |
|
47 | 47 | from rhodecode.lib.vcs.exceptions import ChangesetDoesNotExistError |
|
48 | from rhodecode.lib.vcs.backends.base import BaseChangeset | |
|
48 | from rhodecode.lib.vcs.backends.base import BaseChangeset, EmptyChangeset | |
|
49 | 49 | from rhodecode.config.conf import DATE_FORMAT, DATETIME_FORMAT |
|
50 | 50 | from rhodecode.model.changeset_status import ChangesetStatusModel |
|
51 | 51 | from rhodecode.model.db import URL_SEP, Permission |
@@ -881,7 +881,7 b' def changed_tooltip(nodes):' | |||
|
881 | 881 | return ': ' + _('No Files') |
|
882 | 882 | |
|
883 | 883 | |
|
884 | def repo_link(groups_and_repos): | |
|
884 | def repo_link(groups_and_repos, last_url=None): | |
|
885 | 885 | """ |
|
886 | 886 | Makes a breadcrumbs link to repo within a group |
|
887 | 887 | joins » on each group to create a fancy link |
@@ -890,17 +890,20 b' def repo_link(groups_and_repos):' | |||
|
890 | 890 | group >> subgroup >> repo |
|
891 | 891 | |
|
892 | 892 | :param groups_and_repos: |
|
893 | :param last_url: | |
|
893 | 894 | """ |
|
894 | 895 | groups, repo_name = groups_and_repos |
|
896 | last_link = link_to(repo_name, last_url) if last_url else repo_name | |
|
895 | 897 | |
|
896 | 898 | if not groups: |
|
899 | if last_url: | |
|
900 | return last_link | |
|
897 | 901 | return repo_name |
|
898 | 902 | else: |
|
899 | 903 | def make_link(group): |
|
900 |
return link_to(group.name, |
|
|
901 |
|
|
|
902 |
return literal(' » '.join(map(make_link, groups) |
|
|
903 | " » " + repo_name) | |
|
904 | return link_to(group.name, | |
|
905 | url('repos_group_home', group_name=group.group_name)) | |
|
906 | return literal(' » '.join(map(make_link, groups) + [last_link])) | |
|
904 | 907 | |
|
905 | 908 | |
|
906 | 909 | def fancy_file_stats(stats): |
General Comments 0
You need to be logged in to leave comments.
Login now