Permalink
Browse files

Statically loaded the 16x11 region flags

  • Loading branch information...
brutasse committed May 17, 2012
1 parent 19889a7 commit ae18d1fa5d6a832e01a503431a6492d586571518
Showing with 4 additions and 4 deletions.
  1. +0 −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. +4 −3 djangopeople/templates/country.html
View
@@ -1,7 +1,6 @@
people.db
_thumbs
media
-static
settings.py
*.pyc
.DS_Store
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -1,6 +1,7 @@
{% extends "maps.html" %}
{% load url from future %}
-{% load thumbnail %}
+{% load static %}
+{% get_static_prefix as STATIC_URL %}
{% block title %}{{ country }} |{% endblock %}
@@ -17,7 +18,7 @@
scrollwheel: false
});
gmap.fitBounds(boundBox);
-
+
// Plot the people as markers
plotPeopleOnMap(people, gmap);
};
@@ -57,7 +58,7 @@ <h2>Regions</h2>
<ul class="detailsList split">
{% for region in regions %}
<li>
- {% 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 %}
+ {% 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 %}
</li>
{% endfor %}
</ul>

0 comments on commit ae18d1f

Please sign in to comment.