Removed Algolia from user search
authorSybren A. Stüvel <sybren@stuvel.eu>
Tue, 13 Feb 2018 09:27:13 +0000 (10:27 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Tue, 13 Feb 2018 09:27:13 +0000 (10:27 +0100)
src/templates/svnman/project_settings/settings.pug

index a06b14f..b74b19b 100644 (file)
@@ -92,16 +92,11 @@ style.
 
 | {% block footer_scripts %}
 script.
-       var algolia_application_id = '{{config.ALGOLIA_USER}}'
-       var algolia_public_key = '{{config.ALGOLIA_PUBLIC_KEY}}';
-       var algolia_index_users = '{{config.ALGOLIA_INDEX_USERS}}';
-
        var grant_access_url = '{{ url_for( "svnman.grant_access", project_url=project.url, repo_id=repo_id) }}';
        var revoke_access_url = '{{ url_for( "svnman.revoke_access", project_url=project.url, repo_id=repo_id) }}';
        var delete_repo_url = '{{ url_for( "svnman.delete_repo", project_url=project.url, repo_id=repo_id) }}';
 
-       $('#user-search').userSearch(algolia_application_id, algolia_public_key, algolia_index_users,
-               function(event, hit, dataset) {
+       $('#user-search').userSearch(function(event, hit, dataset) {
                        var $existing = $('li.access-users-item[data-user-id="' + hit.objectID + '"]');
                        if ($existing.length) {
                                $existing