Mercurial > kallithea
changeset 1654:713315371e03 beta
added quick filters into branches and tags
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 04 Nov 2011 21:27:53 +0200 |
parents | b1e1dffd595c |
children | a0287ee1fd87 |
files | rhodecode/public/css/style.css rhodecode/templates/branches/branches.html rhodecode/templates/tags/tags.html |
diffstat | 3 files changed, 26 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Fri Nov 04 21:18:46 2011 +0200 +++ b/rhodecode/public/css/style.css Fri Nov 04 21:27:53 2011 +0200 @@ -3009,15 +3009,12 @@ -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 {
--- a/rhodecode/templates/branches/branches.html Fri Nov 04 21:18:46 2011 +0200 +++ b/rhodecode/templates/branches/branches.html Fri Nov 04 21:27:53 2011 +0200 @@ -6,6 +6,7 @@ </%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('/'))} » ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} @@ -27,5 +28,13 @@ <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> \ No newline at end of file
--- a/rhodecode/templates/tags/tags.html Fri Nov 04 21:18:46 2011 +0200 +++ b/rhodecode/templates/tags/tags.html Fri Nov 04 21:27:53 2011 +0200 @@ -7,6 +7,7 @@ <%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('/'))} » ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} @@ -27,5 +28,13 @@ <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> \ No newline at end of file