mozilla

Revision 231437 of Template:LXRSearch

  • Revision slug: Template:LXRSearch
  • Revision title: Template:LXRSearch
  • Revision id: 231437
  • Created:
  • Creator: lmorchard
  • Is current revision? No
  • Comment

Revision Content

Revision Source

<%
var lang = env.locale;
var searchfor = ' Search for <code>' + $2 + '</code>';
switch(lang) {
  case 'de':
    searchfor = ' Suche nach <code>' + $2 + '</code>';
    break;
  case 'ja':
    searchfor = ' で <code>' + $2 + '</code> を';
    break;
}
%>
<a href="http://mxr.mozilla.org/mozilla-central/<%= $0 + '?' + $1 + '=' + $2 %>"><%-
  string.trim($3) ? $3 : ('MXR ' + ($0 == 'ident' ? 'ID' : '') + searchfor) %></a>
Revert to this revision