diff --git a/kallithea/templates/bookmarks/bookmarks.html b/kallithea/templates/bookmarks/bookmarks.html
--- a/kallithea/templates/bookmarks/bookmarks.html
+++ b/kallithea/templates/bookmarks/bookmarks.html
@@ -26,7 +26,7 @@ ${self.repo_context_bar('switch-to')}
%if c.repo_bookmarks:
-
+
%endif
<%include file='bookmarks_data.html'/>
@@ -34,10 +34,10 @@ ${self.repo_context_bar('switch-to')}
-
%def>
diff --git a/kallithea/templates/branches/branches.html b/kallithea/templates/branches/branches.html
--- a/kallithea/templates/branches/branches.html
+++ b/kallithea/templates/branches/branches.html
@@ -26,17 +26,18 @@ ${self.repo_context_bar('switch-to')}
%if c.repo_branches:
-
+
%endif
<%include file='branches_data.html'/>
+
+
%def>