Closed
Bug 224211
Opened 21 years ago
Closed 20 years ago
use variables in web pages for product versions and download urls
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
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 OS X</a>, <a href="%%MOZILLA-STABLE-X86LINUX%%">Linux</a>, <a href="./releases/">More…</a> </p>
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
fixed on branch
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 3•21 years ago
|
||
great, except does anyone know about this?
Comment 4•21 years ago
|
||
Endico, %%VAR THUNDERBIRD-VERSION Thunderbird 0.3 should be %%VAR THUNDERBIRD-VERSION Mozilla Thunderbird 0.3
Comment 5•21 years ago
|
||
This doesn't work on http://www.mozilla.org/projects/thunderbird/
Comment 6•21 years ago
|
||
Steffen: I think it's only implemented on the beta branch right now.
Comment 7•21 years ago
|
||
Indeed, it works on http://website-beta.mozilla.org/projects/thunderbird/ : "Our most recent release is Mozilla Thunderbird 0.2." 0.2, sure.
Comment 8•21 years ago
|
||
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.
Comment 10•21 years ago
|
||
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.
Comment 11•20 years ago
|
||
> 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: 21 years ago → 20 years ago
QA Contact: imajes → stolenclover
Resolution: --- → FIXED
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
OS: MacOS X → All
Hardware: Macintosh → All
Updated•16 years ago
|
Product: mozilla.org → Websites
Updated•12 years ago
|
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.
Description
•