mozilla

Revision 309139 of Template:source

  • Revision slug: Template:source
  • Revision title: Template:source
  • Revision id: 309139
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment fixed to display the partial URL instead of the full one

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>