Commits

Anonymous committed 8bb52df Draft

dashboard: removes alternate download link - #145 (from olemis)

  • Participants
  • Parent commits 3a54a3b

Comments (0)

Files changed (1)

bhdashboard/widgets/timeline.py

                 exc.title = data.get('title', 'TracReports')
             raise
         else:
-            merge_links(srcreq=fakereq, dstreq=req, exclude=["stylesheet"])
+            merge_links(srcreq=fakereq, dstreq=req,
+                        exclude=["stylesheet", "alternate"])
             add_stylesheet(req, 'dashboard/css/timeline.css')
             data['today'] = today = datetime.now(req.tz)
             data['yesterday'] = today - timedelta(days=1)
                     {
                         'title' : _('Activity'),
                         'data' : data, 
-                        'altlinks' : fakereq.chrome.get('links', {}).get('alternate')
+                        'altlinks' : fakereq.chrome.get('links',
+                                                        {}).get('alternate')
                     }, \
                     context