Skip to content
This repository
Browse code

Statically loaded the 16x11 region flags

  • Loading branch information...
commit ae18d1fa5d6a832e01a503431a6492d586571518 1 parent 19889a7
Bruno Renié authored May 17, 2012

Showing 54 changed files with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 1  .gitignore
  2. BIN  djangopeople/static/djangopeople/img/regions/us/ak.png
  3. BIN  djangopeople/static/djangopeople/img/regions/us/al.png
  4. BIN  djangopeople/static/djangopeople/img/regions/us/ar.png
  5. BIN  djangopeople/static/djangopeople/img/regions/us/az.png
  6. BIN  djangopeople/static/djangopeople/img/regions/us/ca.png
  7. BIN  djangopeople/static/djangopeople/img/regions/us/co.png
  8. BIN  djangopeople/static/djangopeople/img/regions/us/ct.png
  9. BIN  djangopeople/static/djangopeople/img/regions/us/dc.png
  10. BIN  djangopeople/static/djangopeople/img/regions/us/de.png
  11. BIN  djangopeople/static/djangopeople/img/regions/us/fl.png
  12. BIN  djangopeople/static/djangopeople/img/regions/us/ga.png
  13. BIN  djangopeople/static/djangopeople/img/regions/us/hi.png
  14. BIN  djangopeople/static/djangopeople/img/regions/us/ia.png
  15. BIN  djangopeople/static/djangopeople/img/regions/us/id.png
  16. BIN  djangopeople/static/djangopeople/img/regions/us/il.png
  17. BIN  djangopeople/static/djangopeople/img/regions/us/in.png
  18. BIN  djangopeople/static/djangopeople/img/regions/us/ks.png
  19. BIN  djangopeople/static/djangopeople/img/regions/us/ky.png
  20. BIN  djangopeople/static/djangopeople/img/regions/us/la.png
  21. BIN  djangopeople/static/djangopeople/img/regions/us/ma.png
  22. BIN  djangopeople/static/djangopeople/img/regions/us/md.png
  23. BIN  djangopeople/static/djangopeople/img/regions/us/me.png
  24. BIN  djangopeople/static/djangopeople/img/regions/us/mi.png
  25. BIN  djangopeople/static/djangopeople/img/regions/us/mn.png
  26. BIN  djangopeople/static/djangopeople/img/regions/us/mo.png
  27. BIN  djangopeople/static/djangopeople/img/regions/us/ms.png
  28. BIN  djangopeople/static/djangopeople/img/regions/us/mt.png
  29. BIN  djangopeople/static/djangopeople/img/regions/us/nc.png
  30. BIN  djangopeople/static/djangopeople/img/regions/us/nd.png
  31. BIN  djangopeople/static/djangopeople/img/regions/us/ne.png
  32. BIN  djangopeople/static/djangopeople/img/regions/us/nh.png
  33. BIN  djangopeople/static/djangopeople/img/regions/us/nj.png
  34. BIN  djangopeople/static/djangopeople/img/regions/us/nm.png
  35. BIN  djangopeople/static/djangopeople/img/regions/us/nv.png
  36. BIN  djangopeople/static/djangopeople/img/regions/us/ny.png
  37. BIN  djangopeople/static/djangopeople/img/regions/us/oh.png
  38. BIN  djangopeople/static/djangopeople/img/regions/us/ok.png
  39. BIN  djangopeople/static/djangopeople/img/regions/us/or.png
  40. BIN  djangopeople/static/djangopeople/img/regions/us/pa.png
  41. BIN  djangopeople/static/djangopeople/img/regions/us/pr.png
  42. BIN  djangopeople/static/djangopeople/img/regions/us/ri.png
  43. BIN  djangopeople/static/djangopeople/img/regions/us/sc.png
  44. BIN  djangopeople/static/djangopeople/img/regions/us/sd.png
  45. BIN  djangopeople/static/djangopeople/img/regions/us/tn.png
  46. BIN  djangopeople/static/djangopeople/img/regions/us/tx.png
  47. BIN  djangopeople/static/djangopeople/img/regions/us/ut.png
  48. BIN  djangopeople/static/djangopeople/img/regions/us/va.png
  49. BIN  djangopeople/static/djangopeople/img/regions/us/vt.png
  50. BIN  djangopeople/static/djangopeople/img/regions/us/wa.png
  51. BIN  djangopeople/static/djangopeople/img/regions/us/wi.png
  52. BIN  djangopeople/static/djangopeople/img/regions/us/wv.png
  53. BIN  djangopeople/static/djangopeople/img/regions/us/wy.png
  54. 7  djangopeople/templates/country.html
1  .gitignore
... ...
@@ -1,7 +1,6 @@
1 1
 people.db
2 2
 _thumbs
3 3
 media
4  
-static
5 4
 settings.py
6 5
 *.pyc
7 6
 .DS_Store
BIN  djangopeople/static/djangopeople/img/regions/us/ak.png
BIN  djangopeople/static/djangopeople/img/regions/us/al.png
BIN  djangopeople/static/djangopeople/img/regions/us/ar.png
BIN  djangopeople/static/djangopeople/img/regions/us/az.png
BIN  djangopeople/static/djangopeople/img/regions/us/ca.png
BIN  djangopeople/static/djangopeople/img/regions/us/co.png
BIN  djangopeople/static/djangopeople/img/regions/us/ct.png
BIN  djangopeople/static/djangopeople/img/regions/us/dc.png
BIN  djangopeople/static/djangopeople/img/regions/us/de.png
BIN  djangopeople/static/djangopeople/img/regions/us/fl.png
BIN  djangopeople/static/djangopeople/img/regions/us/ga.png
BIN  djangopeople/static/djangopeople/img/regions/us/hi.png
BIN  djangopeople/static/djangopeople/img/regions/us/ia.png
BIN  djangopeople/static/djangopeople/img/regions/us/id.png
BIN  djangopeople/static/djangopeople/img/regions/us/il.png
BIN  djangopeople/static/djangopeople/img/regions/us/in.png
BIN  djangopeople/static/djangopeople/img/regions/us/ks.png
BIN  djangopeople/static/djangopeople/img/regions/us/ky.png
BIN  djangopeople/static/djangopeople/img/regions/us/la.png
BIN  djangopeople/static/djangopeople/img/regions/us/ma.png
BIN  djangopeople/static/djangopeople/img/regions/us/md.png
BIN  djangopeople/static/djangopeople/img/regions/us/me.png
BIN  djangopeople/static/djangopeople/img/regions/us/mi.png
BIN  djangopeople/static/djangopeople/img/regions/us/mn.png
BIN  djangopeople/static/djangopeople/img/regions/us/mo.png
BIN  djangopeople/static/djangopeople/img/regions/us/ms.png
BIN  djangopeople/static/djangopeople/img/regions/us/mt.png
BIN  djangopeople/static/djangopeople/img/regions/us/nc.png
BIN  djangopeople/static/djangopeople/img/regions/us/nd.png
BIN  djangopeople/static/djangopeople/img/regions/us/ne.png
BIN  djangopeople/static/djangopeople/img/regions/us/nh.png
BIN  djangopeople/static/djangopeople/img/regions/us/nj.png
BIN  djangopeople/static/djangopeople/img/regions/us/nm.png
BIN  djangopeople/static/djangopeople/img/regions/us/nv.png
BIN  djangopeople/static/djangopeople/img/regions/us/ny.png
BIN  djangopeople/static/djangopeople/img/regions/us/oh.png
BIN  djangopeople/static/djangopeople/img/regions/us/ok.png
BIN  djangopeople/static/djangopeople/img/regions/us/or.png
BIN  djangopeople/static/djangopeople/img/regions/us/pa.png
BIN  djangopeople/static/djangopeople/img/regions/us/pr.png
BIN  djangopeople/static/djangopeople/img/regions/us/ri.png
BIN  djangopeople/static/djangopeople/img/regions/us/sc.png
BIN  djangopeople/static/djangopeople/img/regions/us/sd.png
BIN  djangopeople/static/djangopeople/img/regions/us/tn.png
BIN  djangopeople/static/djangopeople/img/regions/us/tx.png
BIN  djangopeople/static/djangopeople/img/regions/us/ut.png
BIN  djangopeople/static/djangopeople/img/regions/us/va.png
BIN  djangopeople/static/djangopeople/img/regions/us/vt.png
BIN  djangopeople/static/djangopeople/img/regions/us/wa.png
BIN  djangopeople/static/djangopeople/img/regions/us/wi.png
BIN  djangopeople/static/djangopeople/img/regions/us/wv.png
BIN  djangopeople/static/djangopeople/img/regions/us/wy.png
7  djangopeople/templates/country.html
... ...
@@ -1,6 +1,7 @@
1 1
 {% extends "maps.html" %}
2 2
 {% load url from future %}
3  
-{% load thumbnail %}
  3
+{% load static %}
  4
+{% get_static_prefix as STATIC_URL %}
4 5
 
5 6
 {% block title %}{{ country }} |{% endblock %}
6 7
 
@@ -17,7 +18,7 @@
17 18
       scrollwheel: false
18 19
     });
19 20
     gmap.fitBounds(boundBox);
20  
-    
  21
+
21 22
     // Plot the people as markers
22 23
     plotPeopleOnMap(people, gmap);
23 24
 };
@@ -57,7 +58,7 @@
57 58
         <ul class="detailsList split">
58 59
             {% for region in regions %}
59 60
             <li>
60  
-                {% if region.flag %}<a href="{% url 'country_region' country.iso_code|lower region.code|lower %}" class="nobg"><img src="{% thumbnail region.flag 16x11 crop %}" alt="{{ region }}" title="{{ region }}"></a> {% endif %}<a href="{% url 'country_region' country.iso_code|lower region.code|lower %}"><strong>{{ region }}</strong></a> {{ region.num_people }} {% ifequal region.num_people 1 %}person{% else %}people{% endifequal %}
  61
+                {% if region.flag %}<a href="{% url "country_region" country.iso_code|lower region.code|lower %}" class="nobg"><img src="{{ STATIC_URL }}djangopeople/img/regions/{{ country.iso_code|lower }}/{{ region.code|lower }}.png" width="16" height="11" alt="{{ region }}" title="{{ region }}"></a> {% endif %}<a href="{% url 'country_region' country.iso_code|lower region.code|lower %}"><strong>{{ region }}</strong></a> {{ region.num_people }} {% ifequal region.num_people 1 %}person{% else %}people{% endifequal %}
61 62
             </li>
62 63
             {% endfor %}
63 64
         </ul>

0 notes on commit ae18d1f

Please sign in to comment.
Something went wrong with that request. Please try again.