mozilla

Revision 542961 of Template:FirefoxChannelLink

  • Revision slug: Template:FirefoxChannelLink
  • Revision title: Template:FirefoxChannelLink
  • Revision id: 542961
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

<% // Inserts a link for downloading Firefox for a specific channel // // Parameters: // $0 Channel name ("nightly", "aurora", "beta", "firefox") // $1 Icon size (in pixels, or 0 for a text-only link) // $2 Link text (used for link in text-only links) var lang = env.locale; var channel = $0.toLowerCase(); var downloadURL = ""; var iconURL = ""; if (channel == "nightly") { downloadURL = "http://nightly.mozilla.org"; iconURL = ""; } %>

Revision Source

<%
// Inserts a link for downloading Firefox for a specific channel
//
// Parameters:
//  $0  Channel name ("nightly", "aurora", "beta", "firefox")
//  $1  Icon size (in pixels, or 0 for a text-only link)
//  $2  Link text (used for link in text-only links)

var lang = env.locale;
var channel = $0.toLowerCase();
var downloadURL = "";
var iconURL = "";

if (channel == "nightly") {
    downloadURL = "http://nightly.mozilla.org";
    iconURL = "";
}

%>
Revert to this revision