Changeset - 19c9f4f5428e
[Not reviewed]
default
0 2 0
Mads Kiilerich - 9 years ago 2016-09-25 17:42:50
madski@unity3d.com
helpers: rename repo_link to repo_breadcrumps
2 files changed with 4 insertions and 11 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -1131,16 +1131,9 @@ def changed_tooltip(nodes):
 
        return ': ' + _('No files')
 

	
 

	
 
def repo_link(groups_and_repos, link_class=None):
 
def repo_breadcrumbs(groups_and_repos, link_class=None):
 
    """
 
    Makes a breadcrumbs link to repo within a group
 
    joins » on each group to create a fancy link
 

	
 
    ex::
 
        group >> subgroup >> repo
 

	
 
    :param groups_and_repos:
 
    :param last_url:
 
    Makes breadcrumb links to a repo within its groups, like 'group >> subgroup >> repo'.
 
    """
 
    groups, just_name, repo_name = groups_and_repos
 
    last_url = url('summary_home', repo_name=repo_name)
kallithea/templates/base/base.html
Show inline comments
 
@@ -113,7 +113,7 @@
 
        %else:
 
          <i class="icon-globe"></i>
 
        %endif
 
        ${h.repo_link(c.db_repo.groups_and_repo)}
 
        ${h.repo_breadcrumbs(c.db_repo.groups_and_repo)}
 

	
 
        %if current == 'createfork':
 
         - ${_('Create Fork')}
 
@@ -123,7 +123,7 @@
 
      <div id="breadcrumbs">
 
        ${h.link_to(_('Repositories'),h.url('home'))}
 
        &raquo;
 
        ${h.repo_link(c.db_repo.groups_and_repo)}
 
        ${h.repo_breadcrumbs(c.db_repo.groups_and_repo)}
 
      </div>
 
      -->
 
      <ul id="context-pages" class="horizontal-list">
0 comments (0 inline, 0 general)