You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2020/03/16 15:55:56 UTC

[syncope] 10/36: Fixing checkstyle

This is an automated email from the ASF dual-hosted git repository.

mmoayyed pushed a commit to branch SYNCOPE-1545
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit ce3dd6b0d53a490083cce66e9d820bf7252175a0
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Mar 3 15:52:47 2020 +0100

    Fixing checkstyle
---
 .../syncope/client/console/pages/BasePage.html       |  6 +-----
 .../main/resources/templates/fragments/footer.html   | 20 +++++++++++++++++++-
 .../main/resources/templates/fragments/header.html   |  2 --
 3 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/pages/BasePage.html b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/pages/BasePage.html
index e18f828..7bf0e0a 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/pages/BasePage.html
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/pages/BasePage.html
@@ -159,7 +159,7 @@ under the License.
       </div>
 
       <footer class="main-footer">
-        <strong>Copyright &copy; 2010&#45;<span id="spanYear"></span> 
+        <strong>Copyright &copy; 2010&#45;${year}
           <a href="http://www.apache.org/" target="_blank" rel="noopener noreferrer">The Apache Software Foundation</a>.</strong>
         All rights reserved.
       </footer>
@@ -271,9 +271,5 @@ under the License.
     </div>
 
     <div id="veil">Loading...</div>
-
-    <script type="text/javascript">
-      $('#spanYear').html(new Date().getFullYear());
-    </script>
   </body>
 </html>
diff --git a/wa/src/main/resources/templates/fragments/footer.html b/wa/src/main/resources/templates/fragments/footer.html
index 6e92eae..d991bf5 100644
--- a/wa/src/main/resources/templates/fragments/footer.html
+++ b/wa/src/main/resources/templates/fragments/footer.html
@@ -1,6 +1,24 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
 <footer class="py-4 d-flex flex-column justify-content-center cas-footer text-center">
   <div class="pb-1 pt-1">
-    Copyright © 2010&#45;<span id="spanYear"></span>
+    Copyright © 2010-${year}
     <a href="http://www.apache.org/" target="_blank" rel="noopener noreferrer">The Apache Software Foundation</a>.</strong>
     All rights reserved.
   </div>
diff --git a/wa/src/main/resources/templates/fragments/header.html b/wa/src/main/resources/templates/fragments/header.html
index 4a8b3a6..f128dc9 100644
--- a/wa/src/main/resources/templates/fragments/header.html
+++ b/wa/src/main/resources/templates/fragments/header.html
@@ -208,8 +208,6 @@ under the License.
                     } else {
                         window.jQuery('#notifications-count').text("(" + countMessages + ")")
                     }
-
-                    window.jQuery('#spanYear').html(new Date().getFullYear());
                 });
             })(mdc);
         </script>