Skip to content

Commit

Permalink
Merge branch 'hotfix/GoogleAnalytics'
Browse files Browse the repository at this point in the history
  • Loading branch information
jdejoode committed Aug 10, 2015
2 parents 1a47dae + 6adb5a2 commit 1587519
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
53 changes: 53 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
1.1.1
-----
* fixes a bug that deleted the Google Analytics javascript
* adds a licence to the code
* adds this changelog

1.1
---
* adds subsets as a way to navigate and explore quotes, suspensions, short suspensions, etc.
* boosts number of uwsgi processes
* adds a profiler
* activates 1-grams in keywords and clusters

1.0.6
-----
* moves clusters and keywords to jinja templates (speeds them up massively because
there is less client side rendering)
* boosts number of uwsgi processes

1.0.5
-----
* adds AHRC logo

1.0.4
-----
* disables the 6-12 gram options
* enables indefinite caching
* swaps the loading bar for a spinning icon
* reduces the number of clusters that can be retrieved in one go to 3000
* makes clusters and keywords results clickable (this leads to a concordance,
which in turn is clickable to lead to the text)

1.0.3
-----
* chapter view now highlights the search term
* removes jquery js to highlight the term (now it is done in the backend)
* adds initial settings management
* adds more tests

1.0.2
-----
* updates text displayed when concordance results table has no entries to '0 entries'
* refactors concordance view
* adds functional tests and unit tests
* starts working with jinja templates
* cleans up files
* initial, raw version of a chapter view (when clicking on a concordance line, the chapter is displayed)

1.0.1
-----
* adds total count of occurrences in concordance
* speeds up the concordance (for instance, by optimising xpath queries)
* fixes issues with non-alphabetic character rendering in the frontend concordance
12 changes: 12 additions & 0 deletions clic/web/templates/layout/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ <h1 class="uonHeaderh1">CLiC</h1>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="{{ url_for('static', filename='dist/js/bootstrap.min.js') }}"></script>

<!-- Analytics =================================================== -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-921739-26', 'nottingham.ac.uk');
ga('send', 'pageview');

</script>

<!--Generic JS-->
{% block scripts %}
<script src="{{ url_for('static', filename='js/clic.js') }}"></script>
Expand Down

0 comments on commit 1587519

Please sign in to comment.