Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: android_webview/tools/licenses_notice.tmpl

Issue 786323004: [Android WebView] Generate the OSS licenses notice using jinja2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | android_webview/tools/webview_licenses.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/tools/licenses_notice.tmpl
diff --git a/android_webview/tools/licenses_notice.tmpl b/android_webview/tools/licenses_notice.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..a4ac8349ec21e7ffece319bd18440f34de2b3273
--- /dev/null
+++ b/android_webview/tools/licenses_notice.tmpl
@@ -0,0 +1,34 @@
+<!doctype html>
+<!-- Generated content. Do not edit. -->
+{% autoescape true %}
+<html>
+<head>
+<meta charset="utf-8">
+<title>Credits</title>
+<style type="text/css">
+ .projects-list { margin-left: 1em; }
+ .license-block { border-top: 20px solid white; }
+ .project-url { font-family: monospace; }
+ .license { background-color: #eeeeee; padding: 10px; }
+</style>
+</head>
+<body>
+<ul>
+{% for entry in entries %}
+ <li class="projects-list"><a href="#{{ entry.toc_href }}">{{ entry.name }}</a></li>
+{% endfor %}
+</ul>
+<div>
+{% for entry in entries %}
+ <div class="license-block">
+ <a name="{{ entry.toc_href }}"></a>
+ <div><b>Library:</b> {{ entry.name }}</div>
+ <div><b>Homepage:</b> <span class="project-url">{{ entry.url }}</span></div>
+ <div><b>Notice:</b></div>
+ <pre class="license">{{ entry.license }}</pre>
+ </div>
+{% endfor %}
+</div>
+</body>
+</html>
+{% endautoescape %}
« no previous file with comments | « no previous file | android_webview/tools/webview_licenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698