# HG changeset patch # User ymh # Date 1427720100 -7200 # Node ID 922fc1545933048d8fed5628a80de39227f85975 # Parent 1173f42fedfb51f185f58efbc9cf9acecba7ab47 correct alignments of search results + link to tag maps diff -r 1173f42fedfb -r 922fc1545933 src/hdalab/static/hdalab/js/gomina.js --- a/src/hdalab/static/hdalab/js/gomina.js Mon Mar 30 11:42:44 2015 +0200 +++ b/src/hdalab/static/hdalab/js/gomina.js Mon Mar 30 14:55:00 2015 +0200 @@ -310,7 +310,7 @@ + ' placeholder' + ''; }).join('') - + ''; + + '
'; _html += ''; return _html; }).join('') diff -r 1173f42fedfb -r 922fc1545933 src/hdalab/views/pages.py --- a/src/hdalab/views/pages.py Mon Mar 30 11:42:44 2015 +0200 +++ b/src/hdalab/views/pages.py Mon Mar 30 14:55:00 2015 +0200 @@ -31,8 +31,8 @@ 'hda_id': ds.hda_id, 'title': ds.title, 'description': ds.description, - 'organisation_name': ds.organisation.name, - 'organisation_url': ds.organisation.website, + 'organisation_name': ds.organisation.name if ds.organisation else '', + 'organisation_url': ds.organisation.website if ds.organisation else '', 'score': dsscores.get(ds.id,0), } for ds in relatedqs] relatedds = sorted(relatedds, key=lambda ds: -ds['score'])[:MAX_RELATED]