community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r1693025 - in /comdev/tools/events_list: templates/events/index.html views.py
Date Tue, 28 Jul 2015 08:16:08 GMT
Author: rgardler
Date: Tue Jul 28 08:16:07 2015
New Revision: 1693025

URL: http://svn.apache.org/r1693025
Log:
remove limit on number of events and groups displayed (and remove social share from index
page as it was killing performance, still available on detail page

Modified:
    comdev/tools/events_list/templates/events/index.html
    comdev/tools/events_list/views.py

Modified: comdev/tools/events_list/templates/events/index.html
URL: http://svn.apache.org/viewvc/comdev/tools/events_list/templates/events/index.html?rev=1693025&r1=1693024&r2=1693025&view=diff
==============================================================================
--- comdev/tools/events_list/templates/events/index.html (original)
+++ comdev/tools/events_list/templates/events/index.html Tue Jul 28 08:16:07 2015
@@ -25,7 +25,6 @@
       <th>Hashtags</th>
       <th>Local Start Time</th>
       <th>Applicable</th>
-      <th>Social</th>
     </tr>
   </thead>
   <tbody>
@@ -41,20 +40,6 @@
       </td>
       <td data-order='{{ event.date_sort }}'>{{ event.local_start }}</td>
       <td><a href="{% url 'toggleNA' event.id %}">Mark N/A</a></td>
-      <td>
-	<a href="{{ event.event_url }}" title="{{ event.tweet }}" class="_hs_socialshare">Share</a>
-	<script>
-	  var _hs = {
-	             size: 5,
-	             partner: "community.apache.org"
-	  };
-	  (function() {
-	               var h = document.createElement('script'); h.type = 'text/javascript'; h.async
= true;
-	               h.src = ('https:' == document.location.protocol ? 'https://' : 'http://')
+ 'dtirydke3kdq7.cloudfront.net/hootlet.js?v=1';
-	               var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(h,
s);
-	  })();
-	</script>
-      </td>
     </tr>
     {% endfor %}
   </tbody>

Modified: comdev/tools/events_list/views.py
URL: http://svn.apache.org/viewvc/comdev/tools/events_list/views.py?rev=1693025&r1=1693024&r2=1693025&view=diff
==============================================================================
--- comdev/tools/events_list/views.py (original)
+++ comdev/tools/events_list/views.py Tue Jul 28 08:16:07 2015
@@ -20,7 +20,7 @@ logger = logging.getLogger(__name__)
 
 def index(request):
     now = datetime.now()
-    upcoming_events_list = Event.objects.filter(is_applicable = True).filter(local_start__gte=now).order_by('local_start')[:100]
+    upcoming_events_list = Event.objects.filter(is_applicable = True).filter(local_start__gte=now).order_by('local_start')
     template = loader.get_template('events/index.html')
     context = RequestContext(request, {
                              'upcoming_events_list': upcoming_events_list,
@@ -59,7 +59,7 @@ def toggleNA(request, event_id):
     return redirect('events_list.views.index')
 
 def groupIndex(request):
-    groups_list = Group.objects.all()[:100]
+    groups_list = Group.objects.all()
     template = loader.get_template('groups/index.html')
     context = RequestContext(request, {
                              'groups_list': groups_list,



Mime
View raw message