use variables in web pages for product versions and download urls

VERIFIED FIXED

Status

www.mozilla.org
General
VERIFIED FIXED
15 years ago
6 years ago

People

(Reporter: Dawn Endico, Assigned: Dawn Endico)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Assignee)

Description

15 years ago
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>
(Assignee)

Comment 1

15 years ago
Created attachment 134492 [details]
new variables file
(Assignee)

Comment 2

15 years ago
fixed on branch
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED

Comment 3

15 years ago
great, except does anyone know about this?

Comment 4

15 years ago
Endico, %%VAR THUNDERBIRD-VERSION Thunderbird 0.3 should be %%VAR
THUNDERBIRD-VERSION Mozilla Thunderbird 0.3

Comment 5

15 years ago
This doesn't work on http://www.mozilla.org/projects/thunderbird/
Steffen: I think it's only implemented on the beta branch right now.

Comment 7

15 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

15 years ago
Created attachment 137797 [details]
proposal for new vars file

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 9

15 years ago
Reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Updated

15 years ago
Blocks: 229091

Comment 10

15 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.

Updated

15 years ago
No longer blocks: 229091

Comment 11

14 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
Last Resolved: 15 years ago14 years ago
QA Contact: imajes → stolenclover
Resolution: --- → FIXED

Updated

14 years ago
Status: RESOLVED → VERIFIED

Updated

14 years ago
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.