New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make copyright year dynamic in coala.io #291
Conversation
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -63,7 +63,7 @@
<span class="left">©
<script>
document.write(new Date().getFullYear());
- </script>
+ </script>
coala
</span>
<a class="grey-text text-lighten-4 right" href="#!">GNU AGPL v3.0</a>
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
Travis tests have failedHey @Vaibhav911, 1st Builddocker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
TravisBuddy Request Identifier: 30f49e10-d9d1-11e8-a99b-eb776290c7c8 |
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -60,7 +60,7 @@
</div>
<div class="footer-copyright">
<div class="container">
- <span class="left">©
+ <span class="left">©
<script>
document.write(new Date().getFullYear());
</script>
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -63,7 +63,7 @@
<span class="left">©
<script>
document.write(new Date().getFullYear());
- </script>
+ </script>
coala
</span>
<a class="grey-text text-lighten-4 right" href="#!">GNU AGPL v3.0</a>
Can someone clarify why it is showing this PR has issues? |
Can't really help with the whitespace problem, but I think that the code in itself is not working. If i try your exact solution, my whole page gets overwritten and only the new Date is being displayed. However in the following solution everything works fine: <span class="left">
©
<span id="copyright">
<script>document.getElementById('copyright').appendChild(document.createTextNode(new Date().getFullYear()))</script>
</span>
coala
</span> Maybe try that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to squash both your commits into one. Please refer to coala.io/git
for the same. Also, edit your commit message after squashing, using git commit -a --amend
and write a more appropriate description. Entrypoint was used in the example with respect to bears and isn't required here:wink:
@Tyroc Thnx for your suggestion. But your code is producing same output as mine in my machine. I have just changed the year part of the code. Rest html page is still the same. I don't know why your whole page is being overwritten with my code. Please correct me if I am wrong anywhere. Thnx once again. |
@Vaibhav911 Then there must be a problem with my machine. Sorry! Good contribution btw. |
@Tyroc, I guess you were right. if I run document.write after the document has loaded ,it overwrite the whole page. If it is run before that, it does not overwrite it. So I am using a little different approach now. Thank you so much for pointing out my mistake. I will correct it soon. |
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -60,7 +60,7 @@
</div>
<div class="footer-copyright">
<div class="container">
- <span class="left">©
+ <span class="left">©
<script>
document.write(new Date().getFullYear());
</script>
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -63,7 +63,7 @@
<span class="left">©
<script>
document.write(new Date().getFullYear());
- </script>
+ </script>
coala
</span>
<a class="grey-text text-lighten-4 right" href="#!">GNU AGPL v3.0</a>
Travis tests have failedHey @Vaibhav911, 1st Builddocker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
TravisBuddy Request Identifier: d479d040-da72-11e8-8964-ad637cdcaaf8 |
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace: Trailing white spaces are unnecessary and can complicate diffs: Remove the ' ' at the end of the line.
Origin: HTMLLintBear, Section: html
.
includes/footer.html
Outdated
@@ -60,7 +60,12 @@ <h5 class="white-text fine">coala</h5> | |||
</div> | |||
<div class="footer-copyright"> | |||
<div class="container"> | |||
<span class="left">© 2017 coala</span> | |||
<span class="left">© |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -60,7 +60,7 @@
</div>
<div class="footer-copyright">
<div class="container">
- <span class="left">©
+ <span class="left">©
<script>
document.write(new Date().getFullYear());
</script>
includes/footer.html
Outdated
<span class="left">© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Trailing whitespaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpr9xhq323/includes/footer.html
+++ b/tmp/tmpr9xhq323/includes/footer.html
@@ -63,7 +63,7 @@
<span class="left">©
<script>
document.write(new Date().getFullYear());
- </script>
+ </script>
coala
</span>
<a class="grey-text text-lighten-4 right" href="#!">GNU AGPL v3.0</a>
includes/footer.html
Outdated
© | ||
<script> | ||
document.getElementById("current-year").innerHTML=new Date().getFullYear(); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains following spacing inconsistencies:
- Tabs used instead of spaces.
Origin: SpaceConsistencyBear, Section: spacing
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpl9zy7y_2/includes/footer.html
+++ b/tmp/tmpl9zy7y_2/includes/footer.html
@@ -61,7 +61,7 @@
<div class="footer-copyright">
<div class="container">
<span class="left">
- ©
+ ©
<script>
document.getElementById("current-year").innerHTML=new Date().getFullYear();
</script>
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
This entrypoint ensures copyright year in foot of coala.io updates every year automatically. This helps in not updating the same every year. Closes coala#290
This entrypoint ensures copyright year in foot of coala.io updates every
year automatically.
This helps in not updating the same every year.
Closes #290