diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-15 23:46:27 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-15 23:46:27 +0800 |
commit | a5f030995805e069abfe185ffff438e9f28d5ee1 (patch) | |
tree | 2ef26ae788f422ad649c7bf02f0fbf959c17e2c8 /data/chrome | |
parent | ee23ae3fd2c94a885279507c7939ca3c62828b98 (diff) | |
download | gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.tar gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.tar.gz gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.tar.bz2 gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.tar.lz gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.tar.xz gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.tar.zst gsoc2013-epiphany-a5f030995805e069abfe185ffff438e9f28d5ee1.zip |
Override the page that is shown for the about: url so that it doesn't say
2006-01-15 Crispin Flowerday <gnome@flowerday.cx>
* data/chrome/Makefile.am:
* data/chrome/about.xhtml:
* data/chrome/brand.dtd.in:
* data/chrome/brand.properties.in:
* data/chrome/epiphany.manifest.in:
Override the page that is shown for the about: url so
that it doesn't say "Deer Park"
Diffstat (limited to 'data/chrome')
-rw-r--r-- | data/chrome/Makefile.am | 3 | ||||
-rw-r--r-- | data/chrome/about.xhtml | 99 | ||||
-rw-r--r-- | data/chrome/brand.dtd.in | 1 | ||||
-rw-r--r-- | data/chrome/brand.properties.in | 1 | ||||
-rw-r--r-- | data/chrome/epiphany.manifest.in | 1 |
5 files changed, 105 insertions, 0 deletions
diff --git a/data/chrome/Makefile.am b/data/chrome/Makefile.am index 155e8aa83..eecee66d5 100644 --- a/data/chrome/Makefile.am +++ b/data/chrome/Makefile.am @@ -11,6 +11,9 @@ branding_in_files = \ brand.properties.in branding_DATA = $(branding_in_files:%.in=%) +globalchromedir = $(manifestdir)/global +globalchrome_DATA = about.xhtml + EXTRA_DIST = \ $(manifest_in_files) \ $(branding_in_files) diff --git a/data/chrome/about.xhtml b/data/chrome/about.xhtml new file mode 100644 index 000000000..7212e4a07 --- /dev/null +++ b/data/chrome/about.xhtml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [ +<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > +%brandDTD; +]> + +<!-- ***** BEGIN LICENSE BLOCK ***** + - Version: MPL 1.1/GPL 2.0/LGPL 2.1 + - + - The contents of this file are subject to the Mozilla Public License Version + - 1.1 (the "License"); you may not use this file except in compliance with + - the License. You may obtain a copy of the License at + - http://www.mozilla.org/MPL/ + - + - Software distributed under the License is distributed on an "AS IS" basis, + - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + - for the specific language governing rights and limitations under the + - License. + - + - The Original Code is Mozilla Communicator client code, released + - March 31, 1998. + - + - The Initial Developer of the Original Code is + - Netscape Communications Corporation. + - Portions created by the Initial Developer are Copyright (C) 1998-1999 + - the Initial Developer. All Rights Reserved. + - + - Contributor(s): + - Henrik Gemal <mozilla@gemal.dk> + - Daniel Veditz <dveditz@netscape.com> + - Alexey Chernyak <alexeyc@bigfoot.com> + - Crispin Flowerday <crispin@gnome.org> + - + - Alternatively, the contents of this file may be used under the terms of + - either the GNU General Public License Version 2 or later (the "GPL"), or + - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + - in which case the provisions of the GPL or the LGPL are applicable instead + - of those above. If you wish to allow use of your version of this file only + - under the terms of either the GPL or the LGPL, and not to allow others to + - use your version of this file under the terms of the MPL, indicate your + - decision by deleting the provisions above and replace them with the notice + - and other provisions required by the GPL or the LGPL. If you do not delete + - the provisions above, a recipient may use your version of this file under + - the terms of any one of the MPL, the GPL or the LGPL. + - + - ***** END LICENSE BLOCK ***** --> + +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>About:</title> +<style type="text/css"> +img { + border: 0; +} +p { + font-size: smaller; +} +h1 { + margin: 0; +} +:link { + color: #00e; +} +:visited { + color: #551a8b; +} +:link:active, :visited:active { + color: #f00; +} +</style> +</head> +<body> + +<div id="mozinfo" align="center"> +<a href="&releaseURL;"> +<img src="moz-icon://stock/web-browser?size=dialog" alt="&brandShortName;"/></a> + +<h1> +<a id="mozlink" href="&releaseURL;">&brandShortName; &brandVersion;</a> +</h1> +<script type="application/x-javascript"> + // using try..catch to handle empty useragents and other cases where the regex fails to apply + try { + document.getElementById("mozinfo").appendChild(document.createTextNode(navigator.userAgent)); + } + catch (e) {} +</script> +</div> +<hr /> + +<ul> +<li>Copyright © 2002-2004 Marco Pesenti Gritti</li> +<li>Copyright © 2003-2006 The GNOME Web Browser Developers</li> +</ul> + +</body> +</html> diff --git a/data/chrome/brand.dtd.in b/data/chrome/brand.dtd.in index de0a39edc..57b75a382 100644 --- a/data/chrome/brand.dtd.in +++ b/data/chrome/brand.dtd.in @@ -1,5 +1,6 @@ <!ENTITY brandShortName "Epiphany"> <!ENTITY brandFullName "Epiphany @VERSION@"> <!ENTITY vendorShortName "GNOME"> +<!ENTITY brandVersion "@VERSION@"> <!ENTITY releaseURL "http://www.gnome.org/projects/epiphany/"> diff --git a/data/chrome/brand.properties.in b/data/chrome/brand.properties.in index 8a641ce08..2b5fb3f9b 100644 --- a/data/chrome/brand.properties.in +++ b/data/chrome/brand.properties.in @@ -1,3 +1,4 @@ brandShortName=Epiphany brandFullName=Epiphany @VERSION@ vendorShortName=GNOME +brandVersion=@VERSION@ diff --git a/data/chrome/epiphany.manifest.in b/data/chrome/epiphany.manifest.in index 3f8eb3a2c..472965629 100644 --- a/data/chrome/epiphany.manifest.in +++ b/data/chrome/epiphany.manifest.in @@ -1,2 +1,3 @@ override chrome://branding/locale/brand.properties file://@CHROMEDIR@/branding/brand.properties override chrome://branding/locale/brand.dtd file://@CHROMEDIR@/branding/brand.dtd +override chrome://global/content/about.xhtml file:///@CHROMEDIR@/global/about.xhtml |