Changeset - d0effbe1acb1
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2011-12-04 22:44:25
marcin@python-works.com
banned git-repos to use bookmarks views
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/bookmarks.py
Show inline comments
 
@@ -29,6 +29,7 @@ from pylons import tmpl_context as c
 
from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
 
from rhodecode.lib.base import BaseRepoController, render
 
from rhodecode.lib.compat import OrderedDict
 
from webob.exc import HTTPNotFound
 

	
 
log = logging.getLogger(__name__)
 

	
 
@@ -42,6 +43,9 @@ class BookmarksController(BaseRepoContro
 
        super(BookmarksController, self).__before__()
 

	
 
    def index(self):
 
        if c.rhodecode_repo.alias != 'hg':
 
            raise HTTPNotFound()
 
        
 
        c.repo_bookmarks = OrderedDict()
 

	
 
        bookmarks = [(name, c.rhodecode_repo.get_changeset(hash_)) for \
rhodecode/templates/switch_to_list.html
Show inline comments
 
@@ -23,6 +23,7 @@
 
    %endif
 
    </ul>                        
 
</li>
 
%if c.rhodecode_repo.alias == 'hg': 
 
<li>
 
    ${h.link_to('%s (%s)' % (_('bookmarks'),len(c.rhodecode_repo.bookmarks.values()),),h.url('bookmarks_home',repo_name=c.repo_name),class_='bookmarks childs')}
 
    <ul>
 
@@ -34,4 +35,5 @@
 
        <li>${h.link_to(_('There are no bookmarks yet'),'#')}</li>
 
    %endif
 
    </ul>                        
 
</li>  
 
\ No newline at end of file
 
</li>  
 
%endif
 
\ No newline at end of file
0 comments (0 inline, 0 general)