Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make recently_changed_packages_activity_stream a helper
recently_changed_packages_activity_stream was an @Property of the HomeController, but it wasn't working, accessing the property just returned a property object e.g. <property object at 0x7f7210087e68> not the HTML string as desired. I think this is because the @Property was declared inside a method, and properties only work at class-level. The @Property cannot simply be moved to class level because it uses `context`, a param of the index() function it was defined in. Instead move recently_changed_packages_activity_stream into helpers.py, where any template (not just the front page) can access it like this: {{ h.recently_changed_packages_activity_stream() }} dashboard_activity_stream is already done the same way (but other activity streams are not). This means any existing home/index.html templates that were accessing recently_changed_packages_activity_stream as an attribute of the template context itself, will no longer work. However, apparently they weren't working anyway.
- Loading branch information