Changeset - 0e9bd6876b42
[Not reviewed]
default
12 2 0
Mads Kiilerich - 9 years ago 2016-05-23 18:02:33
madski@unity3d.com
cleanup: remove dead code and templates related to 'Switch To'

a33448d81f70 introduced a new 'Switch To' functionality and removed the last
reference to branch_tag_switcher and thus to switch_to_list.html and the tags,
bookmarks and branches pages.

We don't need these pages ... and if we do, we will implement them differently.
They are mostly YUI datatables with compare links that only can compare within
the same kind of revision names.
14 files changed with 0 insertions and 772 deletions:
0 comments (0 inline, 0 general)
kallithea/config/routing.py
Show inline comments
 
@@ -543,8 +543,6 @@ def make_map(config):
 
                controller='summary', action='repo_size',
 
                conditions=dict(function=check_repo))
 

	
 
    rmap.connect('branch_tag_switcher', '/{repo_name:.*?}/branches-tags',
 
                 controller='home', action='branch_tag_switcher')
 
    rmap.connect('repo_refs_data', '/{repo_name:.*?}/refs-data',
 
                 controller='home', action='repo_refs_data')
 

	
 
@@ -731,15 +729,6 @@ def make_map(config):
 
    rmap.connect('summary_home_summary', '/{repo_name:.*?}/summary',
 
                controller='summary', conditions=dict(function=check_repo))
 

	
 
    rmap.connect('branches_home', '/{repo_name:.*?}/branches',
 
                controller='branches', conditions=dict(function=check_repo))
 

	
 
    rmap.connect('tags_home', '/{repo_name:.*?}/tags',
 
                controller='tags', conditions=dict(function=check_repo))
 

	
 
    rmap.connect('bookmarks_home', '/{repo_name:.*?}/bookmarks',
 
                controller='bookmarks', conditions=dict(function=check_repo))
 

	
 
    rmap.connect('changelog_home', '/{repo_name:.*?}/changelog',
 
                controller='changelog', conditions=dict(function=check_repo))
 

	
kallithea/controllers/bookmarks.py
Show inline comments
 
deleted file
kallithea/controllers/branches.py
Show inline comments
 
deleted file
kallithea/controllers/home.py
Show inline comments
 
@@ -118,17 +118,6 @@ class HomeController(BaseController):
 
    @LoginRequired()
 
    @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
 
                                   'repository.admin')
 
    def branch_tag_switcher(self, repo_name):
 
        if request.is_xhr:
 
            c.db_repo = Repository.get_by_repo_name(repo_name)
 
            if c.db_repo:
 
                c.db_repo_scm_instance = c.db_repo.scm_instance
 
                return render('/switch_to_list.html')
 
        raise HTTPBadRequest()
 

	
 
    @LoginRequired()
 
    @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
 
                                   'repository.admin')
 
    @jsonify
 
    def repo_refs_data(self, repo_name):
 
        repo = Repository.get_by_repo_name(repo_name).scm_instance
kallithea/controllers/tags.py
Show inline comments
 
deleted file
kallithea/templates/bookmarks/bookmarks.html
Show inline comments
 
deleted file
kallithea/templates/bookmarks/bookmarks_data.html
Show inline comments
 
deleted file
kallithea/templates/branches/branches.html
Show inline comments
 
deleted file
kallithea/templates/branches/branches_data.html
Show inline comments
 
deleted file
kallithea/templates/switch_to_list.html
Show inline comments
 
deleted file
kallithea/templates/tags/tags.html
Show inline comments
 
deleted file
kallithea/templates/tags/tags_data.html
Show inline comments
 
deleted file
kallithea/tests/functional/test_branches.py
Show inline comments
 
deleted file
kallithea/tests/functional/test_tags.py
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)