diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py
--- a/kallithea/config/routing.py
+++ b/kallithea/config/routing.py
@@ -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))
diff --git a/kallithea/controllers/bookmarks.py b/kallithea/controllers/bookmarks.py
deleted file mode 100644
--- a/kallithea/controllers/bookmarks.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# -*- coding: utf-8 -*-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-"""
-kallithea.controllers.bookmarks
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Bookmarks controller for Kallithea
-
-This file was forked by the Kallithea project in July 2014.
-Original author and date, and relevant copyright and licensing information is below:
-:created_on: Dec 1, 2011
-:author: marcink
-:copyright: (c) 2013 RhodeCode GmbH, and others.
-:license: GPLv3, see LICENSE.md for more details.
-"""
-
-import logging
-
-from pylons import tmpl_context as c
-
-from kallithea.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
-from kallithea.lib.base import BaseRepoController, render
-from kallithea.lib.compat import OrderedDict
-from webob.exc import HTTPNotFound
-
-log = logging.getLogger(__name__)
-
-
-class BookmarksController(BaseRepoController):
-
- def __before__(self):
- super(BookmarksController, self).__before__()
-
- @LoginRequired()
- @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
- 'repository.admin')
- def index(self):
- if c.db_repo_scm_instance.alias != 'hg':
- raise HTTPNotFound()
-
- c.repo_bookmarks = OrderedDict()
-
- bookmarks = [(name, c.db_repo_scm_instance.get_changeset(hash_)) for \
- name, hash_ in c.db_repo_scm_instance._repo._bookmarks.items()]
- ordered_tags = sorted(bookmarks, key=lambda x: x[1].date, reverse=True)
- for name, cs_book in ordered_tags:
- c.repo_bookmarks[name] = cs_book
-
- return render('bookmarks/bookmarks.html')
diff --git a/kallithea/controllers/branches.py b/kallithea/controllers/branches.py
deleted file mode 100644
--- a/kallithea/controllers/branches.py
+++ /dev/null
@@ -1,77 +0,0 @@
-# -*- coding: utf-8 -*-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-"""
-kallithea.controllers.branches
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-branches controller for Kallithea
-
-This file was forked by the Kallithea project in July 2014.
-Original author and date, and relevant copyright and licensing information is below:
-:created_on: Apr 21, 2010
-:author: marcink
-:copyright: (c) 2013 RhodeCode GmbH, and others.
-:license: GPLv3, see LICENSE.md for more details.
-"""
-
-import logging
-import binascii
-
-from pylons import tmpl_context as c
-
-from kallithea.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
-from kallithea.lib.base import BaseRepoController, render
-from kallithea.lib.compat import OrderedDict
-from kallithea.lib.utils2 import safe_unicode
-
-log = logging.getLogger(__name__)
-
-
-class BranchesController(BaseRepoController):
-
- def __before__(self):
- super(BranchesController, self).__before__()
-
- @LoginRequired()
- @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
- 'repository.admin')
- def index(self):
-
- def _branchtags(localrepo):
- bt_closed = {}
- for bn, heads in localrepo.branchmap().iteritems():
- tip = heads[-1]
- if 'close' in localrepo.changelog.read(tip)[5]:
- bt_closed[bn] = tip
- return bt_closed
-
- cs_g = c.db_repo_scm_instance.get_changeset
-
- c.repo_closed_branches = {}
- if c.db_repo.repo_type == 'hg':
- bt_closed = _branchtags(c.db_repo_scm_instance._repo)
- _closed_branches = [(safe_unicode(n), cs_g(binascii.hexlify(h)),)
- for n, h in bt_closed.items()]
-
- c.repo_closed_branches = OrderedDict(sorted(_closed_branches,
- key=lambda ctx: ctx[0],
- reverse=False))
-
- _branches = [(safe_unicode(n), cs_g(h))
- for n, h in c.db_repo_scm_instance.branches.items()]
- c.repo_branches = OrderedDict(sorted(_branches,
- key=lambda ctx: ctx[0],
- reverse=False))
-
- return render('branches/branches.html')
diff --git a/kallithea/controllers/home.py b/kallithea/controllers/home.py
--- a/kallithea/controllers/home.py
+++ b/kallithea/controllers/home.py
@@ -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
diff --git a/kallithea/controllers/tags.py b/kallithea/controllers/tags.py
deleted file mode 100644
--- a/kallithea/controllers/tags.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# -*- coding: utf-8 -*-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-"""
-kallithea.controllers.tags
-~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Tags controller for Kallithea
-
-This file was forked by the Kallithea project in July 2014.
-Original author and date, and relevant copyright and licensing information is below:
-:created_on: Apr 21, 2010
-:author: marcink
-:copyright: (c) 2013 RhodeCode GmbH, and others.
-:license: GPLv3, see LICENSE.md for more details.
-
-"""
-
-import logging
-
-from pylons import tmpl_context as c
-
-from kallithea.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
-from kallithea.lib.base import BaseRepoController, render
-from kallithea.lib.compat import OrderedDict
-
-log = logging.getLogger(__name__)
-
-
-class TagsController(BaseRepoController):
-
- def __before__(self):
- super(TagsController, self).__before__()
-
- @LoginRequired()
- @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
- 'repository.admin')
- def index(self):
- c.repo_tags = OrderedDict()
-
- tags = [(name, c.db_repo_scm_instance.get_changeset(hash_)) for \
- name, hash_ in c.db_repo_scm_instance.tags.items()]
- ordered_tags = sorted(tags, key=lambda x: x[1].date, reverse=True)
- for name, cs_tag in ordered_tags:
- c.repo_tags[name] = cs_tag
-
- return render('tags/tags.html')
diff --git a/kallithea/templates/bookmarks/bookmarks.html b/kallithea/templates/bookmarks/bookmarks.html
deleted file mode 100644
--- a/kallithea/templates/bookmarks/bookmarks.html
+++ /dev/null
@@ -1,96 +0,0 @@
-## -*- coding: utf-8 -*-
-<%inherit file="/base/base.html"/>
-
-<%block name="title">
- ${_('%s Bookmarks') % c.repo_name}
-%block>
-
-<%def name="breadcrumbs_links()">
-
- ${_('Bookmarks')}
-%def>
-
-<%block name="header_menu">
- ${self.menu('repositories')}
-%block>
-
-<%def name="main()">
-${self.repo_context_bar('switch-to')}
-
- %endfor
- ## closed branches if any
- % if hasattr(c,'repo_closed_branches') and c.repo_closed_branches:
- %for cnt,branch in enumerate(c.repo_closed_branches.items()):
-
- %if c.db_repo_scm_instance.branches.values():
- %for cnt,branch in enumerate(c.db_repo_scm_instance.branches.items()):
-
${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=(branch[0] if '/' not in branch[0] else branch[1]), at=branch[0]))}
- %for cnt,branch in enumerate(c.db_repo_scm_instance.closed_branches.items()):
-
${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=(branch[0] if '/' not in branch[0] else branch[1]), at=branch[0]))}
- %if c.db_repo_scm_instance.tags.values():
- %for cnt,tag in enumerate(c.db_repo_scm_instance.tags.items()):
-
${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=(tag[0] if '/' not in tag[0] else tag[1]), at=tag[0]))}
- %if c.db_repo_scm_instance.bookmarks.values():
- %for cnt,book in enumerate(c.db_repo_scm_instance.bookmarks.items()):
-
${h.link_to('%s - %s' % (book[0],h.short_id(book[1])),h.url('files_home',repo_name=c.repo_name,revision=(book[0] if '/' not in book[0] else book[1]), at=book[0]))}