Skip to content

Commit a034423

Browse files
committed
[skip ci] fix noscript on homepage, and fix copyright date injection
1 parent 27a4ba9 commit a034423

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

fpbase/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</nav>
6060
</div>
6161
<noscript>
62-
<div class="container-fluid text-center mt-0 bg-danger text-white pt-3 pb-3"><strong>Javascript is disabled!&nbsp; Some pages and features of FPbase will not work properly</strong>
62+
<div class="container-fluid text-center mt-0 bg-danger text-white pt-3 pb-3"><strong>Javascript is disabled!&nbsp; Many pages and features of FPbase will not work properly</strong>
6363
</div>
6464
</noscript>
6565

@@ -101,6 +101,7 @@
101101
</div>
102102
</div>
103103
</div>
104+
<script type="text/javascript">document.getElementById("curyear").innerHTML = (new Date()).getFullYear();</script>
104105
</footer>
105106

106107
{% block modal %}{% endblock modal %}
@@ -137,7 +138,6 @@
137138

138139
<script type="text/javascript">
139140
$(function () {
140-
document.getElementById("curyear").innerHTML = (new Date()).getFullYear();
141141
$('[data-toggle="tooltip"]').tooltip({
142142
trigger : 'hover',
143143
delay: { "show": 200 },

fpbase/templates/pages/home.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
<nav class="navbar navbar-expand-sm navbar-dark bg-transparent fixed-top">
1515
{% block navcontainer %} {% include "_nav.html" %} {% endblock navcontainer %}
1616
</nav>
17+
<noscript>
18+
<div class="container text-center mt-0 bg-dark text-white pt-3 pb-4"><p><strong>Javascript is disabled!&nbsp; Many pages and features of FPbase will not work properly</strong></p>
19+
<form class="input-group home-search" method="get" action="/search/">
20+
<input type="search" class="form-control" name="name__icontains" placeholder="protein name...">
21+
<span class="input-group-append">
22+
<button class="btn btn-secondary" type="submit">search</button>
23+
</span>
24+
</form>
25+
</div>
26+
</noscript>
1727
<main role="main" class="cover-container container">
1828
<div class="row">
1929
<div class="col-md-7 align-self-center text-center search-col order-sm-2 search-col" style="display: none;">

0 commit comments

Comments
 (0)