Chromium Code Reviews| Index: appengine/chromium_rietveld/templates/base.html |
| diff --git a/appengine/chromium_rietveld/templates/base.html b/appengine/chromium_rietveld/templates/base.html |
| index 45d46ead311f23be2433dcfda051d21319c46a2e..84be6265e638d42040b47904ba201df56c5017f1 100644 |
| --- a/appengine/chromium_rietveld/templates/base.html |
| +++ b/appengine/chromium_rietveld/templates/base.html |
| @@ -18,9 +18,14 @@ |
| <link rel="icon" href="{{media_url}}favicon.ico" /> |
| <link type="text/css" rel="stylesheet" |
| href="{{media_url}}styles.css?v={{rietveld_revision}}" /> |
| - <script type="text/javascript" src="{{media_url}}autocomplete/lib/jquery.js"></script> |
| + <script type="text/javascript" |
| + src="{{media_url}}autocomplete/lib/jquery.js"></script> |
| <script type="text/javascript" |
| src="{{media_url}}script.js?v={{rietveld_revision}}"></script> |
| + <script type="text/javascript" |
| + src="{{media_url}}es6-promise/es6-promise-2.0.1.min.js"></script> |
| + <script type="text/javascript" |
| + src="https://apis.google.com/js/client.js"></script> |
| <link rel="alternate" type="application/atom+xml" |
| title="Recent Issues" |
| href="{%url rss_all %}" /> |
| @@ -57,6 +62,16 @@ var base_url = "{%url codereview.views.index%}"; |
| {%if issue%} |
| var publish_link = "{%url codereview.views.publish issue.key.id%}"; |
| {%endif%} |
| +rietveld.preferredDomainName = "{{preferred_domain_name}}"; |
|
esprehn
2015/04/14 01:00:11
This needs the |jsescape filter. (all of these do)
|
| +rietveld.buildbucketHostname = "{{buildbucket_hostname}}"; |
| +{%if client_id%} |
| +rietveld.gapi.clientId = "{{client_id}}"; |
| +{%endif%} |
| +{%if user%} |
| +rietveld.user = { |
| + email: "{{user.email}}" |
| +}; |
| +{%endif%} |
| // --> |
| </script> |
| <div id="help" style="display: none;"> |