[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GMG-Devel] [PATCH 50/83] Change element ids and some template fixes.
From: |
Alon Levy |
Subject: |
[GMG-Devel] [PATCH 50/83] Change element ids and some template fixes. |
Date: |
Tue, 25 Feb 2014 21:58:32 +0200 |
From: Praveen Kumar <address@hidden>
---
mediagoblin/plugins/search/indices.py | 4 ++--
mediagoblin/templates/mediagoblin/search/search.html | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mediagoblin/plugins/search/indices.py
b/mediagoblin/plugins/search/indices.py
index b8003ca..eff5895 100644
--- a/mediagoblin/plugins/search/indices.py
+++ b/mediagoblin/plugins/search/indices.py
@@ -15,7 +15,7 @@ class MediaEntrySearchIndex(SearchIndex):
search_index_dir=search_index_dir,
use_multiprocessing=use_multiprocessing)
self.verbose_name = "Media Entries"
- self.css_id = self.identifier
+ self.css_id = "media_entries"
def _interpret_results(self, results, request_obj=None):
_log.info("Searched in Media Entries")
@@ -52,7 +52,7 @@ class MediaTagSearchIndex(SearchIndex):
use_multiprocessing=use_multiprocessing)
self.verbose_name = "Media Tags"
- self.css_id = self.identifier
+ self.css_id = "media_tags"
def _interpret_results(self, results, request_obj):
_log.info("Searched in Media Tags")
diff --git a/mediagoblin/templates/mediagoblin/search/search.html
b/mediagoblin/templates/mediagoblin/search/search.html
index 681e616..2d1fbfa 100644
--- a/mediagoblin/templates/mediagoblin/search/search.html
+++ b/mediagoblin/templates/mediagoblin/search/search.html
@@ -30,11 +30,11 @@
<div id="tabs">
<ul>
{% for category in result_categories %}
- <li><a href="#{{ category['css_id'] }}"> {{
category['verbose_name'] }} </li>
+ <li><a href="#{{ category['css_id'] }}"> {{
category['verbose_name'] }} </a></li>
{% endfor %}
</ul>
{% for category in result_categories %}
- <div id="#{{ category['css_id'] }}">
+ <div id="{{ category['css_id'] }}">
{% for result in category['results'] %}
<li><a href = "{{ result['url'] }} "> {{
result['slug'] }}</a></li>
{% endfor %}
--
1.8.5.3
- [GMG-Devel] [PATCH 39/83] Clean up and add docstring to search methods., (continued)
- [GMG-Devel] [PATCH 39/83] Clean up and add docstring to search methods., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 40/83] Add try-except block to event listeners., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 42/83] Store attributes from a model only it its available., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 43/83] Add field for storing search results., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 41/83] Correct method names in event listeners, Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 44/83] Remove the field for storing search results with the index., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 46/83] Add verbose_name and css_id to search results., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 47/83] Adapt results collection to change in result generation., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 48/83] Modify search template to show tabbed results., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 49/83] Show only unique results., Alon Levy, 2014/02/25
- [GMG-Devel] [PATCH 50/83] Change element ids and some template fixes.,
Alon Levy <=
- [GMG-Devel] [PATCH 51/83] Change view function for the search page., Alon Levy, 2014/02/25