Commits

Marcin Kuzminski committed 7133153

added quick filters into branches and tags

Comments (0)

Files changed (3)

rhodecode/public/css/style.css

 	-webkit-box-shadow: rgba(0,0,0,0.07) 0 1px 2px inset;
 	-webkit-border-radius: 4px;
 	-moz-border-radius: 4px;
-	border-radius: 4px;	
-}
-
-#q_filter {
-	border: 0 none;
-	color: #AAAAAA;
-	margin-bottom: -4px;
-	margin-top: -4px;
-	padding-left: 3px;
+	border-radius: 4px;
+    border: 0 none;
+    color: #AAAAAA;
+    margin-bottom: -4px;
+    margin-top: -4px;
+    padding-left: 3px;		
 }
 
 #node_filter {

rhodecode/templates/branches/branches.html

 </%def>
 
 <%def name="breadcrumbs_links()">
+    <input class="q_filter_box" id="q_filter_branches" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
     ${h.link_to(u'Home',h.url('/'))}
     &raquo; 
     ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
     <div class="table">
         <%include file='branches_data.html'/>
     </div>
-</div>    
+</div>
+<script type="text/javascript">
+var nodes = YUQ('div.table tr td .logtags .branchtag a');
+var target = 'q_filter_branches';
+var func = function(node){
+    return node.parentNode.parentNode.parentNode.parentNode;
+}
+q_filter(target,nodes,func);
+</script>
 </%def>     

rhodecode/templates/tags/tags.html

 
 
 <%def name="breadcrumbs_links()">
+    <input class="q_filter_box" id="q_filter_tags" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
     ${h.link_to(u'Home',h.url('/'))}
     &raquo; 
     ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
     <div class="table">
         <%include file='tags_data.html'/>
     </div>
-</div>    
+</div>
+<script type="text/javascript">
+var nodes = YUQ('div.table tr td .logtags .tagtag a');
+var target = 'q_filter_tags';
+var func = function(node){
+    return node.parentNode.parentNode.parentNode.parentNode;
+}
+q_filter(target,nodes,func);
+</script>
 </%def>