changeset 8689:19d93bd709bf

html: put 'use strict' on separate lines use.py: import re import sys for fn in sys.argv[1:]: with open(fn) as f: s = f.read() s = re.sub(r'''(<script>)('use strict';)\n( *)''', r'''\1\n\3\2\n\3''', s) with open(fn, 'w') as f: f.write(s) python use.py $(hg loc 'kallithea/templates/**.html')
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 19 May 2020 04:36:53 +0200
parents 7982eac0703d
children c9ba71f11d6d
files kallithea/templates/admin/admin.html kallithea/templates/admin/admin_log.html kallithea/templates/admin/auth/auth_settings.html kallithea/templates/admin/gists/edit.html kallithea/templates/admin/gists/new.html kallithea/templates/admin/my_account/my_account_api_keys.html kallithea/templates/admin/my_account/my_account_repos.html kallithea/templates/admin/my_account/my_account_watched.html kallithea/templates/admin/repo_groups/repo_group_add.html kallithea/templates/admin/repo_groups/repo_group_edit_perms.html kallithea/templates/admin/repo_groups/repo_group_edit_settings.html kallithea/templates/admin/repo_groups/repo_groups.html kallithea/templates/admin/repos/repo_add_base.html kallithea/templates/admin/repos/repo_creating.html kallithea/templates/admin/repos/repo_edit_advanced.html kallithea/templates/admin/repos/repo_edit_permissions.html kallithea/templates/admin/repos/repo_edit_settings.html kallithea/templates/admin/repos/repos.html kallithea/templates/admin/settings/settings_hooks.html kallithea/templates/admin/settings/settings_vcs.html kallithea/templates/admin/user_groups/user_group_add.html kallithea/templates/admin/user_groups/user_group_edit_perms.html kallithea/templates/admin/user_groups/user_group_edit_settings.html kallithea/templates/admin/user_groups/user_groups.html kallithea/templates/admin/users/user_add.html kallithea/templates/admin/users/user_edit_api_keys.html kallithea/templates/admin/users/users.html kallithea/templates/base/base.html kallithea/templates/base/flash_msg.html kallithea/templates/base/perms_summary.html kallithea/templates/base/root.html kallithea/templates/changelog/changelog.html kallithea/templates/changelog/changelog_table.html kallithea/templates/changeset/changeset.html kallithea/templates/changeset/changeset_file_comment.html kallithea/templates/changeset/diff_block.html kallithea/templates/compare/compare_cs.html kallithea/templates/compare/compare_diff.html kallithea/templates/files/diff_2way.html kallithea/templates/files/files.html kallithea/templates/files/files_add.html kallithea/templates/files/files_browser.html kallithea/templates/files/files_edit.html kallithea/templates/followers/followers.html kallithea/templates/forks/fork.html kallithea/templates/forks/forks.html kallithea/templates/index_base.html kallithea/templates/journal/journal.html kallithea/templates/login.html kallithea/templates/password_reset.html kallithea/templates/pullrequests/pullrequest.html kallithea/templates/pullrequests/pullrequest_show.html kallithea/templates/register.html kallithea/templates/summary/statistics.html kallithea/templates/summary/summary.html
diffstat 55 files changed, 132 insertions(+), 66 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/admin/admin.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/admin.html	Tue May 19 04:36:53 2020 +0200
@@ -27,7 +27,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+'use strict';
 $(document).ready(function() {
   $('#j_filter').click(function(){
     var $jfilter = $('#j_filter');
--- a/kallithea/templates/admin/admin_log.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/admin_log.html	Tue May 19 04:36:53 2020 +0200
@@ -37,7 +37,8 @@
     %endfor
 </table>
 
-<script>'use strict';
+<script>
+  'use strict';
   $(document).ready(function(){
     var $user_log = $('#user_log');
     $user_log.on('click','.pager_link',function(e){
--- a/kallithea/templates/admin/auth/auth_settings.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/auth/auth_settings.html	Tue May 19 04:36:53 2020 +0200
@@ -105,7 +105,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $('.toggle-plugin').click(function(e){
         var $auth_plugins_input = $('#auth_plugins');
         function notEmpty(element) {
--- a/kallithea/templates/admin/gists/edit.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/gists/edit.html	Tue May 19 04:36:53 2020 +0200
@@ -35,7 +35,8 @@
               ${(h.HTML(_('Gist was updated since you started editing. Copy your changes and click %(here)s to reload new version.'))
                              % {'here': h.link_to(_('here'),h.url('edit_gist', gist_id=c.gist.gist_access_id))})}
             </div>
-            <script>'use strict';
+            <script>
+            'use strict';
             if (typeof jQuery != 'undefined') {
                 $(".alert").alert();
             }
@@ -79,7 +80,8 @@
                 </div>
 
                 ## dynamic edit box.
-                <script>'use strict';
+                <script>
+                    'use strict';
                     $(document).ready(function(){
                         var myCodeMirror = initCodeMirror(${h.js('editor_' + h.FID('f',file.path))}, ${h.jshtml(request.script_name)}, '');
 
@@ -146,7 +148,8 @@
             <a class="btn btn-default" href="${h.url('gist', gist_id=c.gist.gist_access_id)}">${_('Cancel')}</a>
             </div>
           ${h.end_form()}
-          <script>'use strict';
+          <script>
+              'use strict';
               $('#update').on('click', function(e){
                   e.preventDefault();
 
--- a/kallithea/templates/admin/gists/new.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/gists/new.html	Tue May 19 04:36:53 2020 +0200
@@ -55,7 +55,8 @@
             ${h.reset('reset',_('Reset'),class_="btn btn-default btn-xs")}
             </div>
           ${h.end_form()}
-          <script>'use strict';
+          <script>
+            'use strict';
             $(document).ready(function(){
                 var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, '');
 
--- a/kallithea/templates/admin/my_account/my_account_api_keys.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/my_account/my_account_api_keys.html	Tue May 19 04:36:53 2020 +0200
@@ -90,7 +90,8 @@
 ''')}</p>
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $("#lifetime").select2({
             'dropdownAutoWidth': true
--- a/kallithea/templates/admin/my_account/my_account_repos.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/my_account/my_account_repos.html	Tue May 19 04:36:53 2020 +0200
@@ -4,7 +4,8 @@
     <table class="table" id="datatable_list_wrap" width="100%"></table>
 </div>
 
-<script>'use strict';
+<script>
+  'use strict';
   var data = ${h.js(c.data)};
   $("#datatable_list_wrap").DataTable({
         data: data.records,
--- a/kallithea/templates/admin/my_account/my_account_watched.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/my_account/my_account_watched.html	Tue May 19 04:36:53 2020 +0200
@@ -4,7 +4,8 @@
     <table class="table" id="datatable_list_wrap" width="100%"></table>
 </div>
 
-<script>'use strict';
+<script>
+  'use strict';
   var data = ${h.js(c.data)};
   $("#datatable_list_wrap").DataTable({
         data: data.records,
--- a/kallithea/templates/admin/repo_groups/repo_group_add.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repo_groups/repo_group_add.html	Tue May 19 04:36:53 2020 +0200
@@ -61,7 +61,8 @@
     </div>
     ${h.end_form()}
 </div>
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         function setCopyPermsOption(group_val){
             if(group_val != "-1"){
--- a/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html	Tue May 19 04:36:53 2020 +0200
@@ -102,7 +102,8 @@
 </div>
 ${h.end_form()}
 
-<script>'use strict';
+<script>
+    'use strict';
     function ajaxActionRevoke(obj_id, obj_type, field_id, obj_name) {
         let url = ${h.jshtml(h.url('edit_repo_group_perms_delete', group_name=c.repo_group.group_name))};
         var revoke_msg = _TM['Confirm to revoke permission for {0}: {1} ?'].format(obj_type.replace('_', ' '), obj_name);
--- a/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html	Tue May 19 04:36:53 2020 +0200
@@ -41,7 +41,8 @@
 </div>
 ${h.end_form()}
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $("#parent_group_id").select2({
             'dropdownAutoWidth': true
--- a/kallithea/templates/admin/repo_groups/repo_groups.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repo_groups/repo_groups.html	Tue May 19 04:36:53 2020 +0200
@@ -30,7 +30,8 @@
         <table class="table" id="datatable_list_wrap" width="100%"></table>
     </div>
 </div>
-<script>'use strict';
+<script>
+  'use strict';
   var data = ${h.js(c.data)};
   $("#datatable_list_wrap").DataTable({
         data: data.records,
--- a/kallithea/templates/admin/repos/repo_add_base.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repos/repo_add_base.html	Tue May 19 04:36:53 2020 +0200
@@ -65,7 +65,8 @@
             </div>
         </div>
 </div>
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         function setCopyPermsOption(group_val){
             if(group_val != "-1"){
--- a/kallithea/templates/admin/repos/repo_creating.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repos/repo_creating.html	Tue May 19 04:36:53 2020 +0200
@@ -42,7 +42,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+'use strict';
 (function worker() {
   $.ajax({
     url: ${h.js(h.url('repo_check_home', repo_name=c.repo_name, repo=c.repo, task_id=c.task_id))},
--- a/kallithea/templates/admin/repos/repo_edit_advanced.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repos/repo_edit_advanced.html	Tue May 19 04:36:53 2020 +0200
@@ -9,7 +9,8 @@
 </div>
 ${h.end_form()}
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $("#id_fork_of").select2({
             'dropdownAutoWidth': true
--- a/kallithea/templates/admin/repos/repo_edit_permissions.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repos/repo_edit_permissions.html	Tue May 19 04:36:53 2020 +0200
@@ -87,7 +87,8 @@
 </div>
 ${h.end_form()}
 
-<script>'use strict';
+<script>
+    'use strict';
     function ajaxActionRevoke(obj_id, obj_type, field_id, obj_name) {
         let url = ${h.js(h.url('edit_repo_perms_revoke',repo_name=c.repo_name))};
         var revoke_msg = _TM['Confirm to revoke permission for {0}: {1} ?'].format(obj_type.replace('_', ' '), obj_name);
--- a/kallithea/templates/admin/repos/repo_edit_settings.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repos/repo_edit_settings.html	Tue May 19 04:36:53 2020 +0200
@@ -103,7 +103,8 @@
     </div>
     ${h.end_form()}
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $('#repo_landing_rev').select2({
             'dropdownAutoWidth': true
--- a/kallithea/templates/admin/repos/repos.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/repos/repos.html	Tue May 19 04:36:53 2020 +0200
@@ -29,7 +29,8 @@
     </div>
 
 </div>
-<script>'use strict';
+<script>
+  'use strict';
   var data = ${h.js(c.data)};
   $("#datatable_list_wrap").DataTable({
         data: data.records,
--- a/kallithea/templates/admin/settings/settings_hooks.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/settings/settings_hooks.html	Tue May 19 04:36:53 2020 +0200
@@ -50,7 +50,8 @@
 ${h.end_form()}
 % endif
 
-<script>'use strict';
+<script>
+'use strict';
 function delete_hook(hook_id, field_id) {
     var sUrl = ${h.js(h.url('admin_settings_hooks_delete'))};
     function success() {
--- a/kallithea/templates/admin/settings/settings_vcs.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/settings/settings_vcs.html	Tue May 19 04:36:53 2020 +0200
@@ -62,7 +62,8 @@
     </div>
     ${h.end_form()}
 
-    <script>'use strict';
+    <script>
+        'use strict';
         $(document).ready(function(){
             $('#path_unlock').on('click', function(){
                 $('#path_unlock_icon').removeClass('icon-lock');
--- a/kallithea/templates/admin/user_groups/user_group_add.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/user_groups/user_group_add.html	Tue May 19 04:36:53 2020 +0200
@@ -52,7 +52,8 @@
     ${h.end_form()}
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $('#users_group_name').focus();
     });
--- a/kallithea/templates/admin/user_groups/user_group_edit_perms.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/user_groups/user_group_edit_perms.html	Tue May 19 04:36:53 2020 +0200
@@ -92,7 +92,8 @@
 </div>
 ${h.end_form()}
 
-<script>'use strict';
+<script>
+    'use strict';
     function ajaxActionRevoke(obj_id, obj_type, field_id, obj_name) {
         let url = ${h.js(h.url('edit_user_group_perms_delete', id=c.user_group.users_group_id))};
         var revoke_msg = _TM['Confirm to revoke permission for {0}: {1} ?'].format(obj_type.replace('_', ' '), obj_name);
--- a/kallithea/templates/admin/user_groups/user_group_edit_settings.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/user_groups/user_group_edit_settings.html	Tue May 19 04:36:53 2020 +0200
@@ -48,6 +48,7 @@
                 </div>
     </div>
 ${h.end_form()}
-<script>'use strict';
+<script>
+  'use strict';
   MultiSelectWidget('users_group_members','available_members','edit_users_group');
 </script>
--- a/kallithea/templates/admin/user_groups/user_groups.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/user_groups/user_groups.html	Tue May 19 04:36:53 2020 +0200
@@ -29,7 +29,8 @@
         <table class="table" id="datatable_list_wrap" width="100%"></table>
     </div>
 </div>
-<script>'use strict';
+<script>
+    'use strict';
     var data = ${h.js(c.data)};
     $("#datatable_list_wrap").DataTable({
         data: data.records,
--- a/kallithea/templates/admin/users/user_add.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/users/user_add.html	Tue May 19 04:36:53 2020 +0200
@@ -84,7 +84,8 @@
     ${h.end_form()}
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $('#username').focus();
     });
--- a/kallithea/templates/admin/users/user_edit_api_keys.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/users/user_edit_api_keys.html	Tue May 19 04:36:53 2020 +0200
@@ -77,7 +77,8 @@
     ${h.end_form()}
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $("#lifetime").select2({
             'dropdownAutoWidth': true
--- a/kallithea/templates/admin/users/users.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/admin/users/users.html	Tue May 19 04:36:53 2020 +0200
@@ -28,7 +28,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     var data = ${h.js(c.data)};
     $("#datatable_list_wrap").DataTable({
         data: data.records,
--- a/kallithea/templates/base/base.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/base/base.html	Tue May 19 04:36:53 2020 +0200
@@ -177,7 +177,8 @@
     </div>
     </div>
   </nav>
-  <script>'use strict';
+  <script>
+    'use strict';
     $(document).ready(function() {
       var bcache = {};
 
@@ -399,7 +400,8 @@
     </li>
   </ul>
 
-    <script>'use strict';
+    <script>
+        'use strict';
         $(document).ready(function(){
             var visual_show_public_icon = ${h.js(c.visual.show_public_icon)};
             var cache = {}
@@ -527,7 +529,8 @@
         </div>
     </div>
 
-    <script>'use strict';
+    <script>
+      'use strict';
       $(document).ready(function(){
           activate_parent_child_links();
       });
--- a/kallithea/templates/base/flash_msg.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/base/flash_msg.html	Tue May 19 04:36:53 2020 +0200
@@ -9,7 +9,8 @@
             </div>
         % endfor
     % endif
-    <script>'use strict';
+    <script>
+    'use strict';
     if (typeof jQuery != 'undefined') {
         $(".alert").alert();
     }
--- a/kallithea/templates/base/perms_summary.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/base/perms_summary.html	Tue May 19 04:36:53 2020 +0200
@@ -97,7 +97,8 @@
         %endif
      %endfor
 </div>
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         function show_empty(section){
             var visible = $('.section_{0} tr.perm_row:visible'.format(section)).length;
--- a/kallithea/templates/base/root.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/base/root.html	Tue May 19 04:36:53 2020 +0200
@@ -21,7 +21,8 @@
         <%block name="css_extra"/>
 
         ## JAVASCRIPT ##
-        <script>'use strict';
+        <script>
+            'use strict';
             ## JS translations map
             var TRANSLATION_MAP = {
                 'Cancel': ${h.jshtml(_("Cancel"))},
@@ -77,7 +78,8 @@
         <script src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script>
         ## EXTRA FOR JS
         <%block name="js_extra"/>
-        <script>'use strict';
+        <script>
+            'use strict';
             $(document).ready(function(){
               tooltip_activate();
               show_more_event();
--- a/kallithea/templates/changelog/changelog.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/changelog/changelog.html	Tue May 19 04:36:53 2020 +0200
@@ -81,7 +81,8 @@
                 ${c.cs_pagination.pager()}
 
         <script src="${h.url('/js/graph.js', ver=c.kallithea_version)}"></script>
-        <script>'use strict';
+        <script>
+            'use strict';
             var jsdata = ${h.js(c.jsdata)};
             var graph = new BranchRenderer('graph_canvas', 'graph_content', 'chg_');
 
--- a/kallithea/templates/changelog/changelog_table.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/changelog/changelog_table.html	Tue May 19 04:36:53 2020 +0200
@@ -110,7 +110,8 @@
     </tbody>
     </table>
 
-<script>'use strict';
+<script>
+  'use strict';
   $(document).ready(function() {
     $('#changesets .expand_commit').on('click',function(){
       $(this).next('.mid').find('.message > div').toggleClass('hidden');
--- a/kallithea/templates/changeset/changeset.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/changeset/changeset.html	Tue May 19 04:36:53 2020 +0200
@@ -22,7 +22,8 @@
   <div class="panel-heading clearfix">
     ${self.breadcrumbs()}
   </div>
-  <script>'use strict';
+  <script>
+    'use strict';
     var AJAX_COMMENT_URL = ${h.js(url('changeset_comment',repo_name=c.repo_name,revision=c.changeset.raw_id))};
     var AJAX_COMMENT_DELETE_URL = ${h.js(url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__'))};
   </script>
@@ -184,7 +185,8 @@
     </div>
 
     ## FORM FOR MAKING JS ACTION AS CHANGESET COMMENTS
-    <script>'use strict';
+    <script>
+      'use strict';
       $(document).ready(function(){
           $('.code-difftable').on('click', '.add-bubble', function(){
               show_comment_form($(this));
--- a/kallithea/templates/changeset/changeset_file_comment.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/changeset/changeset_file_comment.html	Tue May 19 04:36:53 2020 +0200
@@ -192,7 +192,8 @@
   </div>
 </div>
 
-<script>'use strict';
+<script>
+'use strict';
 
 $(document).ready(function () {
 
--- a/kallithea/templates/changeset/diff_block.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/changeset/diff_block.html	Tue May 19 04:36:53 2020 +0200
@@ -96,7 +96,8 @@
 </%def>
 
 <%def name="diff_block_js()">
-<script>'use strict';
+<script>
+'use strict';
 $(document).ready(function(){
     $('.btn-image-diff-show').click(function(){
         $('.btn-image-diff-show').hide();
--- a/kallithea/templates/compare/compare_cs.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/compare/compare_cs.html	Tue May 19 04:36:53 2020 +0200
@@ -66,7 +66,8 @@
 <script src="${h.url('/js/graph.js', ver=c.kallithea_version)}"></script>
 %endif
 
-<script>'use strict';
+<script>
+    'use strict';
     var jsdata = ${h.js(c.jsdata)};
     var graph = new BranchRenderer('graph_canvas', 'graph_content_pr', 'chg_');
 
--- a/kallithea/templates/compare/compare_diff.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/compare/compare_diff.html	Tue May 19 04:36:53 2020 +0200
@@ -97,7 +97,8 @@
     </div>
 
 </div>
-    <script>'use strict';
+    <script>
+'use strict';
 
    $(document).ready(function(){
     var cache = {};
--- a/kallithea/templates/files/diff_2way.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/files/diff_2way.html	Tue May 19 04:36:53 2020 +0200
@@ -60,7 +60,8 @@
         </div>
     </div>
 
-<script>'use strict';
+<script>
+'use strict';
 var orig1_url = ${h.jshtml(h.url('files_raw_home',repo_name=c.repo_name,f_path=c.node1.path,revision=c.cs1.raw_id))};
 var orig2_url = ${h.jshtml(h.url('files_raw_home',repo_name=c.repo_name,f_path=c.node2.path,revision=c.cs2.raw_id))};
 
--- a/kallithea/templates/files/files.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/files/files.html	Tue May 19 04:36:53 2020 +0200
@@ -36,7 +36,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+'use strict';
 var CACHE = {};
 var CACHE_EXPIRE = 5*60*1000; //cache for 5*60s
 //used to construct links from the search list
--- a/kallithea/templates/files/files_add.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/files/files_add.html	Tue May 19 04:36:53 2020 +0200
@@ -70,7 +70,8 @@
               </div>
             </div>
             ${h.end_form()}
-            <script>'use strict';
+            <script>
+                'use strict';
                 $(document).ready(function(){
                     var reset_url = ${h.jshtml(h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))};
                     var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, reset_url);
--- a/kallithea/templates/files/files_browser.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/files/files_browser.html	Tue May 19 04:36:53 2020 +0200
@@ -109,7 +109,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         // init node filter if we pass GET param ?search=1
         var search_GET = ${h.js(request.GET.get('search',''))};
--- a/kallithea/templates/files/files_edit.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/files/files_edit.html	Tue May 19 04:36:53 2020 +0200
@@ -77,7 +77,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         var reset_url = ${h.jshtml(h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.file.path))};
         var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, reset_url);
--- a/kallithea/templates/followers/followers.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/followers/followers.html	Tue May 19 04:36:53 2020 +0200
@@ -25,7 +25,8 @@
         </div>
     </div>
 </div>
-<script>'use strict';
+<script>
+  'use strict';
   $(document).ready(function(){
     var $followers = $('#followers');
     $followers.on('click','.pager_link',function(e){
--- a/kallithea/templates/forks/fork.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/forks/fork.html	Tue May 19 04:36:53 2020 +0200
@@ -88,7 +88,8 @@
     </div>
     ${h.end_form()}
 </div>
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         $("#repo_group").select2({
             'dropdownAutoWidth': true
--- a/kallithea/templates/forks/forks.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/forks/forks.html	Tue May 19 04:36:53 2020 +0200
@@ -25,7 +25,8 @@
         </div>
     </div>
 </div>
-<script>'use strict';
+<script>
+  'use strict';
   $(document).ready(function(){
       var $forks = $('#forks');
       $forks.on('click','.pager_link',function(e){
--- a/kallithea/templates/index_base.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/index_base.html	Tue May 19 04:36:53 2020 +0200
@@ -43,7 +43,8 @@
         </div>
     </div>
 
-      <script>'use strict';
+      <script>
+        'use strict';
         var data = ${h.js(c.data)};
         $("#repos_list_wrap").DataTable({
                 data: data.records,
--- a/kallithea/templates/journal/journal.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/journal/journal.html	Tue May 19 04:36:53 2020 +0200
@@ -41,7 +41,8 @@
         </div>
     </div>
 
-<script>'use strict';
+<script>
+'use strict';
 
     $('#j_filter').click(function(){
         var $jfilter = $('#j_filter');
@@ -72,7 +73,8 @@
 
 </script>
 
-<script>'use strict';
+<script>
+    'use strict';
     $(document).ready(function(){
         var $journal = $('#journal');
         $journal.on('click','.pager_link',function(e){
--- a/kallithea/templates/login.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/login.html	Tue May 19 04:36:53 2020 +0200
@@ -64,7 +64,8 @@
             </div>
         </div>
         ${h.end_form()}
-        <script>'use strict';
+        <script>
+        'use strict';
         $(document).ready(function(){
             $('#username').focus();
         });
--- a/kallithea/templates/password_reset.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/password_reset.html	Tue May 19 04:36:53 2020 +0200
@@ -53,7 +53,8 @@
                 </div>
         </div>
         ${h.end_form()}
-        <script>'use strict';
+        <script>
+         'use strict';
          $(document).ready(function(){
             $('#email').focus();
          });
--- a/kallithea/templates/pullrequests/pullrequest.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/pullrequests/pullrequest.html	Tue May 19 04:36:53 2020 +0200
@@ -92,7 +92,8 @@
 </div>
 
 <script src="${h.url('/js/graph.js', ver=c.kallithea_version)}"></script>
-<script>'use strict';
+<script>
+  'use strict';
   pyroutes.register('pullrequest_repo_info', ${h.js(url('pullrequest_repo_info',repo_name='%(repo_name)s'))}, ['repo_name']);
 
   var pendingajax = undefined;
--- a/kallithea/templates/pullrequests/pullrequest_show.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/pullrequests/pullrequest_show.html	Tue May 19 04:36:53 2020 +0200
@@ -312,7 +312,8 @@
             </div>
         </div>
     </div>
-    <script>'use strict';
+    <script>
+    'use strict';
     // TODO: switch this to pyroutes
     var AJAX_COMMENT_URL = ${h.js(url('pullrequest_comment',repo_name=c.repo_name,pull_request_id=c.pull_request.pull_request_id))};
     var AJAX_COMMENT_DELETE_URL = ${h.js(url('pullrequest_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__'))};
@@ -343,7 +344,8 @@
     ## main comment form and it status
     ${comment.comments(change_status=c.allowed_to_change_status)}
 
-    <script>'use strict';
+    <script>
+      'use strict';
       $(document).ready(function(){
           PullRequestAutoComplete($('#user'));
           SimpleUserAutoComplete($('#owner'));
--- a/kallithea/templates/register.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/register.html	Tue May 19 04:36:53 2020 +0200
@@ -90,7 +90,8 @@
                 </div>
         </div>
         ${h.end_form()}
-        <script>'use strict';
+        <script>
+        'use strict';
         $(document).ready(function(){
             $('#username').focus();
         });
--- a/kallithea/templates/summary/statistics.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/summary/statistics.html	Tue May 19 04:36:53 2020 +0200
@@ -51,7 +51,8 @@
     </div>
 </div>
 
-<script>'use strict';
+<script>
+'use strict';
 var data = ${h.js(c.trending_languages)};
 var total = 0;
 var tbl = document.createElement('table');
@@ -118,7 +119,8 @@
 }
 
 </script>
-<script>'use strict';
+<script>
+'use strict';
 
 /**
  * Plots summary graph
--- a/kallithea/templates/summary/summary.html	Thu Sep 03 15:05:44 2020 +0200
+++ b/kallithea/templates/summary/summary.html	Tue May 19 04:36:53 2020 +0200
@@ -27,7 +27,8 @@
   <link href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" />
   <link href="${h.url('rss_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" />
 
-  <script>'use strict';
+  <script>
+  'use strict';
   function redirect_hash_branch(){
     var branch = window.location.hash.replace(/^#(.*)/, '$1');
     if (branch){
@@ -238,7 +239,8 @@
 </div>
 %endif
 
-<script>'use strict';
+<script>
+'use strict';
 $(document).ready(function(){
     $('#clone-url input').click(function(){
         if($(this).hasClass('selected')){
@@ -334,7 +336,8 @@
 </script>
 
 %if c.show_stats:
-<script>'use strict';
+<script>
+'use strict';
 $(document).ready(function(){
     var data = ${h.js(c.trending_languages)};
     var total = 0;