Hey all!
After a brief discussion with Ralph on IRC about redesigning the people
page, I've rewritten the people index page generation script in Python,
Jinja, and DataTables.
The previous Fedora People page generation script consisted mainly of bash
concatenation running in a large loop. For this next iteration, I kept most
of the data acquisition commands intact, running the bash commands through
subprocess and parsing the data in Python. However, I've cleaned up the
code significantly and now pass the data through a Jinja template to write
the final page HTML.
Here is a demo:
https://cydrobolt.fedorapeople.org/people2/
Source:
https://github.com/fedora-infra/people2
As requested by Ralph, this iteration includes nice libravatar user icons
loaded lazily ;)
I'm hoping to implement this as a drop-in replacement for the current
Fedora people generation script, which generates this page:
http://people.fedoraproject.org
This script requires Jinja (python-jinja2) to execute.
Any feedback or constructive objections would be appreciated! Feel free to
ping me in #fedora-apps.
Thanks,
Chaooyi