Files @ 26ff31bb7878
Branch filter:

Location: website/www/manage.py

bsturmfels
progress bar: Drop JS, make mobile friendly, match design to new site.

The existing jQuery UI-based fundraising progress bar used a float layout,
making it hard to adapt for mobile use. Given that there is not interactivity,
I've dropped all the JS and switched to a flexbox layout. This works well
because the bar will stretch to fit the text rather than always maintaining its scale.
#!/usr/bin/env python

import os
import sys

if __name__ == "__main__":
    www_path = os.path.abspath(os.path.dirname(sys.argv[0]))
    if www_path not in sys.path:
        sys.path.append(www_path)

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "conservancy.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)