mozilla

Compare Revisions

Template:FirefoxChannelLink

Change Revisions

Revision 542961:

Revision 542961 by Sheppy on

Revision 542963:

Revision 542963 by Sheppy on

Title:
Template:FirefoxChannelLink
Template:FirefoxChannelLink
Slug:
Template:FirefoxChannelLink
Template:FirefoxChannelLink
Content:

Revision 542961
Revision 542963
nn13var baseURL = "https://www.mozilla.org/" + lang + "/firefox/chann
 >el/";
14var html = "";
n16    iconURL = "";n18    iconURL = "/files/7513/Firefox-Nightly-300dpi.png";
19} else {
20    switch(channel) {
21        case "aurora":
22            downloadURL = baseURL + "#aurora";
23            iconURL = "/files/7509/Firefox-Aurora-300dpi.png"
24            break;
25        case "beta":
26            downloadURL = baseURL + "#beta";
27            iconURL = "/files/7511/Firefox-Beta-300dpi.png";
28            break;
29        case "firefox":
30        case "release":
31            downloadURL = baseURL + "#firefox";
32            iconURL = "/files/7515/Firefox-Release-300dpi.png";
33            break;
34    }
t19%>t37// Handle the "no-icon" case
38 
39if (!$1 == 0) {
40    html = "<a href='" + downloadURL + "'>" + $2 + "</a>";
41}
42 
43// Handle the icon case
44 
45if ($1 != 0) {
46    html = "<a href='" + downloadURL + "'><img src='" + iconURL +
 > "' width='" + $1 + "px'></a>";
47}
48%><%-html%>

Back to History