Skip to content

Commit

Permalink
BIB-12: Misc. content changes
Browse files Browse the repository at this point in the history
- Update links on front page
- Delete old support link
- Set year of example survey to previous year
  • Loading branch information
Jani Bonnevier committed Feb 24, 2020
1 parent 2858d35 commit 20c51b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 32 deletions.
2 changes: 1 addition & 1 deletion bibstat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
".bibstat-stg.libris.kb.se"
]

BIBSTAT_BLOG_BASE_URL = "http://biblioteksstatistik.blogg.kb.se"
BIBSTAT_BLOG_BASE_URL = "https://www.kb.se/biblioteksstatistik"

# DB connection details
MONGODB_HOST = 'localhost'
Expand Down
4 changes: 2 additions & 2 deletions libstat/templates/libstat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ <h2 id="opendata" class="section-title"><i class="fa fa-database fa-fw color-ope
</div>
<div class="col-xs-12 col-sm-6">
<h2 id="moreinfo" class="section-title"><i class="fa fa-info-circle fa-fw color-moreinfo"></i> Läs mer</h2>
<p class="section-text">Om du är nyfiken och vill veta mer om biblioteksstatistik, så finns det mycket att läsa på <a href="{{ blog_url }}">Biblioteksstatistikbloggen <i class="fa fa-external-link"></i></a>. Där publiceras fortlöpande information runt insamlingarna.</p>
<a href="{{ blog_url }}" class="btn btn-moreinfo btn-lg">Vidare till bloggen &raquo;</a>
<p class="section-text">Om du är nyfiken och vill veta mer om biblioteksstatistik, så finns det mycket att läsa på <a href="{{ blog_url }}">Kungliga bibliotekets webbplats <i class="fa fa-external-link"></i></a>. Där publiceras fortlöpande information runt insamlingarna.</p>
<a href="{{ blog_url }}" class="btn btn-moreinfo btn-lg">Till biblioteksstatistiken på kb.se &raquo;</a>
</div>
</div>
</section>
Expand Down
27 changes: 0 additions & 27 deletions libstat/templates/libstat/survey.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,33 +283,6 @@ <h4 class="modal-title" id="confirm-submit-title">Är du säker på att du vill
</div>
</div>


<!-- Kundo forum -->

<script type="text/javascript">
var _kundo = _kundo || {};
_kundo["org"] = "biblioteksstatistiken";
_kundo["lang"] = "sv";
_kundo["btn-type"] = "4";
_kundo["top"] = "65%";

(function() {
function async_load(){
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = ('https:' == document.location.protocol ? 'https://static-ssl' : 'http://static') +
'.kundo.se/embed.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
if (window.attachEvent)
window.attachEvent('onload', async_load);
else
window.addEventListener('load', async_load, false);
})();
</script>

{% include "libstat/analytics.html" %}

{% endblock %}
4 changes: 2 additions & 2 deletions libstat/views/survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import time
import json
from datetime import datetime, timedelta
from datetime import datetime, timedelta, date

from django.core.urlresolvers import reverse
from django.shortcuts import render, redirect
Expand All @@ -20,7 +20,7 @@


def example_survey(request):
sample_year = 2014
sample_year = date.today().year - 1

context = {
"hide_navbar": True,
Expand Down

0 comments on commit 20c51b9

Please sign in to comment.