mozilla

Revision 310863 of Template:source

  • Revision slug: Template:source
  • Revision title: Template:source
  • Revision id: 310863
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

<% // Insert a link to a file in the mozilla-central source repository. // // $0 - File to link to // $1 - (OPTIONAL) text for the link // // If $1 isn't provided, the link itself is the link text var url = "http://mxr.mozilla.org/mozilla-central/source/" + $0; var text = ($1 || $0); %><%=text%>

Revision Source

<%
// Insert a link to a file in the mozilla-central source repository.
//
//  $0 - File to link to
//  $1 - (OPTIONAL) text for the link
//
// If $1 isn't provided, the link itself is the link text

var url = "http://mxr.mozilla.org/mozilla-central/source/" + $0;
var text = ($1 || $0);

%><a rel="custom" href="<%=url%>"><%=text%></a>
Revert to this revision