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