Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SeaMonkey Website
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SeaMonkey
SeaMonkey Website
Commits
8377697a39a7
Commit
8377697a39a7
authored
17 years ago
by
kairo
Browse files
Options
Downloads
Patches
Plain Diff
introduce a toplink var that always is a relative link to the top-level path
parent
a6d3a6691452
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/breadcrumbs.tmpl
+3
-3
3 additions, 3 deletions
lib/breadcrumbs.tmpl
lib/config.tmpl
+7
-2
7 additions, 2 deletions
lib/config.tmpl
lib/sidebar.tmpl
+4
-4
4 additions, 4 deletions
lib/sidebar.tmpl
lib/wrapper.tmpl
+4
-4
4 additions, 4 deletions
lib/wrapper.tmpl
with
18 additions
and
13 deletions
lib/breadcrumbs.tmpl
+
3
−
3
View file @
8377697a
...
...
@@ -18,7 +18,7 @@
u = "";
FOREACH crumb IN crumbs.reverse;
IF loop.first;
"<a href=\"
/
\">Home</a> ";
"<a href=\"
$toplink
\">Home</a> ";
END;
" » ";
...
...
@@ -27,7 +27,7 @@
"<span>$crumb.title</span>";
ELSE;
IF crumb.url;
u = "
/
$crumb.url";
u = "$crumb.url";
ELSE;
u = "$u/$crumb.id";
END;
...
...
@@ -31,7 +31,7 @@
ELSE;
u = "$u/$crumb.id";
END;
"<a href=\"$u\">$crumb.title</a>";
"<a href=\"$
toplink$
u\">$crumb.title</a>";
END;
END;
END;
...
...
This diff is collapsed.
Click to expand it.
lib/config.tmpl
+
7
−
2
View file @
8377697a
...
...
@@ -4,5 +4,10 @@
[%# Default values for page variables. %]
[% page.stylesheets = [] %]
[% toplink = "${template.name}"|replace('[^\/]+/','../')|replace('[^\/]*$','') %]
[% IF toplink == '' %]
[% toplink = './' %]
[% END %]
[% releaseversion = '1.1.4' %]
[% releasename = "SeaMonkey $releaseversion" %]
...
...
@@ -7,6 +12,6 @@
[% releaseversion = '1.1.4' %]
[% releasename = "SeaMonkey $releaseversion" %]
[% relnotes = "
/
releases/seamonkey$releaseversion/" %]
[% relnotes = "
${toplink}
releases/seamonkey$releaseversion/" %]
[% download_win = "http://download.mozilla.org/?product=seamonkey-$releaseversion&os=win&lang=en-US" %]
[% download_linux = "http://download.mozilla.org/?product=seamonkey-$releaseversion&os=linux&lang=en-US" %]
[% download_mac = "http://download.mozilla.org/?product=seamonkey-$releaseversion&os=osx&lang=en-US" %]
...
...
@@ -10,7 +15,7 @@
[% download_win = "http://download.mozilla.org/?product=seamonkey-$releaseversion&os=win&lang=en-US" %]
[% download_linux = "http://download.mozilla.org/?product=seamonkey-$releaseversion&os=linux&lang=en-US" %]
[% download_mac = "http://download.mozilla.org/?product=seamonkey-$releaseversion&os=osx&lang=en-US" %]
[% download_more = "
/
releases/#$releaseversion" %]
[% download_more = "
${toplink}
releases/#$releaseversion" %]
[% download_allfiles = "http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$releaseversion/" %]
[% download_win_mb = 13 %]
[% download_linux_mb = 14 %]
...
...
This diff is collapsed.
Click to expand it.
lib/sidebar.tmpl
+
4
−
4
View file @
8377697a
...
...
@@ -16,7 +16,7 @@
IF page.url.match("^http://") OR page.url.match("^https://");
page.path = page.url;
ELSE;
page.path = (page.url == '.') ?
'/' : "/
$page.url";
page.path = (page.url == '.') ?
toplink : "$toplink
$page.url";
END;
ELSE;
# add page id to current path to get page path
...
...
@@ -20,7 +20,7 @@
END;
ELSE;
# add page id to current path to get page path
page.path = "$path/$page.id";
page.path = "$
toplink$
path/$page.id";
# add suffix for a section (/index.html) or page (.html)
suffix = page.page ? '/index.en.html' : '.en.html';
...
...
@@ -30,6 +30,6 @@
# add complete URL to sitemap lookup table
site.url2page.${page.url} = page;
t_url = "
/
${template.name}"|replace('/index.html|/index.en.html','/')|replace('.html|.en.html','');
t_url = "
$toplink
${template.name}"|replace('/index.html|/index.en.html','/')|replace('.html|.en.html','');
in_list = 0;
FOREACH url IN urllist;
...
...
@@ -34,6 +34,6 @@
in_list = 0;
FOREACH url IN urllist;
IF page.path == "
/
$url";
IF page.path == "
$toplink
$url";
in_list = 1;
END;
END;
...
...
This diff is collapsed.
Click to expand it.
lib/wrapper.tmpl
+
4
−
4
View file @
8377697a
...
...
@@ -159,5 +159,5 @@
<div
id=
"footer"
>
<ul
id=
"footer-menu"
>
<li><a
href=
"
/
sitemap"
>
[% strings.Sitemap %]
</a></li>
<li><a
href=
"
[% toplink %]
sitemap"
>
[% strings.Sitemap %]
</a></li>
<li><a
href=
"http://www.mozilla.org/security/"
>
[% strings.Security %]
</a></li>
...
...
@@ -163,4 +163,4 @@
<li><a
href=
"http://www.mozilla.org/security/"
>
[% strings.Security %]
</a></li>
<li><a
href=
"
/
about"
>
[% strings.About %]
</a></li>
<li><a
href=
"
/
about#contact"
>
[% strings.Contact %]
</a></li>
<li><a
href=
"
[% toplink %]
about"
>
[% strings.About %]
</a></li>
<li><a
href=
"
[% toplink %]
about#contact"
>
[% strings.Contact %]
</a></li>
</ul>
...
...
@@ -166,5 +166,5 @@
</ul>
<p
class=
"tLicense"
>
[% strings.TrademarkPre %]
<a
href=
"
/
dev/trademark"
>
[% strings.TrademarkLink %]
</a>
[% strings.TrademarkPost %]
</p>
<p
class=
"tLicense"
>
[% strings.TrademarkPre %]
<a
href=
"
[% toplink %]
dev/trademark"
>
[% strings.TrademarkLink %]
</a>
[% strings.TrademarkPost %]
</p>
<p
class=
"tLicense"
>
[% strings.LicenseCC %] |
<a
href=
"http://www.mozilla.org/foundation/licensing/website-content.html"
>
[% strings.Details %]
</a>
.
</p>
[% IF document.links.license -%]
<p
class=
"tLicense"
>
[% strings.LicenseIs %]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment