summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/about_credits.tmpl
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-17 00:02:55 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-17 00:02:55 +0000
commit54ce726e1af62939cb12b09dc687737b114d426c (patch)
tree892d28d72c629cd2e5e6b3ff985873c4361c75ab /chrome/browser/resources/about_credits.tmpl
parent9f525003ef9bfc8a4a51a6b22f1532d0857190cf (diff)
downloadchromium_src-54ce726e1af62939cb12b09dc687737b114d426c.zip
chromium_src-54ce726e1af62939cb12b09dc687737b114d426c.tar.gz
chromium_src-54ce726e1af62939cb12b09dc687737b114d426c.tar.bz2
First pass at generating about:credits.
Modify the license script to have a "credits" mode, which uses two templates derived from the existing about:credits HTML. BUG=39240 Review URL: http://codereview.chromium.org/1520039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/about_credits.tmpl')
-rw-r--r--chrome/browser/resources/about_credits.tmpl83
1 files changed, 83 insertions, 0 deletions
diff --git a/chrome/browser/resources/about_credits.tmpl b/chrome/browser/resources/about_credits.tmpl
new file mode 100644
index 0000000..f9cb1970
--- /dev/null
+++ b/chrome/browser/resources/about_credits.tmpl
@@ -0,0 +1,83 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Credits</title>
+<style>
+body {
+ font-family:Helvetica,Arial,sans-serif;
+ background-color:white;
+ font-size:84%;
+ max-width:1020px;
+}
+.page-title {
+ font-size:164%;
+ font-weight:bold;
+}
+.product {
+ background-color:#c3d9ff;
+ overflow:auto;
+ padding:2px;
+ margin-top:16px;
+ border-radius:5px;
+}
+.product .title {
+ font-size:110%;
+ font-weight:bold;
+ float:left;
+ margin:3px;
+}
+.product .homepage {
+ text-align:right;
+ float:right;
+ margin:3px;
+}
+.product .homepage:after {
+ content:" - ";
+}
+.product .show {
+ text-align:right;
+ float:right;
+ margin:3px;
+}
+.licence {
+ clear:both;
+ background-color:#e8eef7;
+ padding:16px;
+ border-radius:3px;
+ display:none;
+}
+.licence h3 {
+ margin-top:0px;
+}
+</style>
+<script>
+function $(o) {return document.getElementById(o);}
+function toggle(o) {
+ var licence = o.nextSibling;
+
+ while (licence.className != 'licence') {
+ if (!licence) return false;
+ licence = licence.nextSibling;
+ }
+
+ if (licence.style && licence.style.display == 'block') {
+ licence.style.display = 'none';
+ o.innerHTML = 'show license';
+ } else {
+ licence.style.display = 'block';
+ o.innerHTML = 'hide license';
+ }
+ return false;
+}
+</script>
+</head>
+<body>
+<span class="page-title" style="float:left;">Credits</span>
+<a href="javascript:window.print();" style="float:right;">Print</a>
+<div style="clear:both; overflow:auto;"><!-- Chromium <3s the following projects -->
+{{entries}}
+</div>
+
+</body>
+</html>