Closed Bug 224211 Opened 22 years ago Closed 22 years ago

use variables in web pages for product versions and download urls

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: endico, Assigned: endico)

Details

Attachments

(2 files)

When a new version is released there are tons of places on the web site that need to be edited where the version number and urls need to be updated. With the new website this number has grown. Updating by hand is error prone and people are likely to forget to update some file or another. I've just added a mechanism for defining variables that may be used anywhere on the web site. Variables are added to mozilla-org/html/VARIABLES. Instances of %%VARIABLE-NAME%% in web pages will be replaced with the variable's value by the wrapping script when you type 'make' in mozilla-org. I've changed a bunch of pages to use these variables but there are still lots of others that can be converted. Unless someone gets real ambitious, updating the remaining links can happen as new products are released. for example, from mozilla-org/html/index.html developing the acclaimed, open source, %%MOZILLA-STABLE-VERSION%% web and <p class="dl"> Free Download: <a href="%%MOZILLA-STABLE-WIN32%%">Windows</a>, <a href="%%MOZILLA-STABLE-MACOSX%%">Mac&nbsp;OS&nbsp;X</a>, <a href="%%MOZILLA-STABLE-X86LINUX%%">Linux</a>, <a href="./releases/">More&#8230;</a> </p>
Attached file new variables file
fixed on branch
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
great, except does anyone know about this?
Endico, %%VAR THUNDERBIRD-VERSION Thunderbird 0.3 should be %%VAR THUNDERBIRD-VERSION Mozilla Thunderbird 0.3
Steffen: I think it's only implemented on the beta branch right now.
Indeed, it works on http://website-beta.mozilla.org/projects/thunderbird/ : "Our most recent release is Mozilla Thunderbird 0.2." 0.2, sure.
Sometimes the version number alone is needed--see bug 229091. I added stuff like '%%VAR MOZILLA-STABLE-VERSION-ONLY 1.5' for the 5 products. This is derived from the previous attachment, so it's not guaranteed to be accurate (since the current version is different from the attachment). diff it with the current version to make sure it's ok.
Reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: 229091
Comment on attachment 137797 [details] proposal for new vars file um, NO. r-. 1.5 is not stable. 1.3 was never stable, nor was 1.2, nor 1.1. (1.0, 1.0.1, 1.0.2 were). 1.5 is just latest release we have, that doesn't make it stable. 1.4.1 is the current stable release (i think, unless we haven't shipped it yet, in which case 1.4 is). 1.4.2 will be the latest stable release eventually.
No longer blocks: 229091
> Sometimes the version number alone is needed--see bug 229091. I added stuff > like '%%VAR MOZILLA-STABLE-VERSION-ONLY 1.5' for the 5 products. I disagree. It's not good practice to separate version from product name (e.g. "Windows 2000 and Windows XP" are preferable to "Windows 2000 and XP"). And I don't see there's a need for variable like MOZILLA-STABLE-VERSION-ONLY -> fixed
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
QA Contact: imajes → stolenclover
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
OS: MacOS X → All
Hardware: Macintosh → All
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: