Changeset - 9dca99ffd495
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2012-12-06 21:57:24
marcin@python-works.com
added help on how to filter the journal
2 files changed with 44 insertions and 16 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/admin.html
Show inline comments
 
@@ -7,7 +7,25 @@
 

	
 
<%def name="breadcrumbs_links()">
 
    <form id="filter_form">
 
    <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${c.search_term or _('quick filter...')}"/>
 
    <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="q_filter" size="15" type="text" name="filter" value="${c.search_term or _('quick filter...')}"/>
 
    <span class="tooltip" title="${h.tooltip(_('''
 
        Example search query:
 
            "repository:vcs"
 
            "username:marcin"
 
        
 
        You can use wildcards using '*'
 
            "repositroy:vcs*" - search everything starting with 'vcs'
 
            "repository:*vcs*" - search for repository containing 'vcs'
 
        Use AND / OR operators in queries
 
            "repository:vcs OR repository:test"
 
            "username:test AND repository:test*"
 
        List of valid search filters:
 
            repository:
 
            username:
 
            action:
 
            ip:
 
            date:
 
    '''))}">?</span>
 
    <input type='submit' value="${_('filter')}" class="ui-btn" style="padding:0px 2px 0px 2px;margin:0px"/>
 
    ${_('Admin journal')} - ${ungettext('%s entry', '%s entries', c.users_log.item_count) % (c.users_log.item_count)}
 
    </form>
 
@@ -33,13 +51,23 @@
 

	
 
<script>
 
YUE.on('q_filter','click',function(){
 
    YUD.get('q_filter').value = '';
 
	var qfilter = YUD.get('q_filter');
 
	if(YUD.hasClass(qfilter, 'initial')){
 
		qfilter.value = '';
 
	}
 
});
 
var fix_q_filter_width = function(len){
 
    YUD.setStyle(YUD.get('q_filter'),'width',Math.max(80, len*6.50)+'px');
 
}
 
YUE.on('q_filter','keyup',function(){
 
	fix_q_filter_width(YUD.get('q_filter').value.length);
 
});
 
YUE.on('filter_form','submit',function(e){
 
	YUE.preventDefault(e)
 
    var val = YUD.get('q_filter').value;
 
	window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val);
 
 });
 
});
 
fix_q_filter_width(YUD.get('q_filter').value.length);
 
</script>
 
</%def>
 

	
rhodecode/templates/admin/admin_log.html
Show inline comments
 
@@ -39,20 +39,20 @@
 

	
 
<script type="text/javascript">
 
  YUE.onDOMReady(function(){
 
	YUE.delegate("user_log","click",function(e, matchedEl, container){
 
		ypjax(e.target.href,"user_log",function(){
 
			show_more_event();
 
			tooltip_activate();
 
			show_changeset_tooltip();
 
		});
 
		YUE.preventDefault(e);
 
	},'.pager_link');
 
    YUE.delegate("user_log","click",function(e, matchedEl, container){
 
        ypjax(e.target.href,"user_log",function(){
 
            show_more_event();
 
            tooltip_activate();
 
            show_changeset_tooltip();
 
        });
 
        YUE.preventDefault(e);
 
    },'.pager_link');
 

	
 
	YUE.delegate("user_log","click",function(e,matchedEl,container){
 
	      var el = e.target;
 
	      YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
 
	      YUD.setStyle(el.parentNode,'display','none');
 
	  },'.show_more');
 
    YUE.delegate("user_log","click",function(e,matchedEl,container){
 
          var el = e.target;
 
          YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
 
          YUD.setStyle(el.parentNode,'display','none');
 
      },'.show_more');
 
  });
 
</script>
 

	
0 comments (0 inline, 0 general)