azavea/OpenTreeMap — pull request #145 by rtroester (2013-06-26 21:41:14+00:00)
Title: Add template profile_detail.html, change edit_profile.html to match, fix display of neighborhood names

Note profile_detail and edit_profile are now identical. This change is
certainly not "DRY" - ideally profiles/urls.py would be changed to
use the same template for both edits and detail display, but my constraint
was to change as little as possible.

Both templates now display the user reputation changes. They correctly
show tree neighborhood names, as does results.html.

In profiles/models.py a cut-down version of the existing method,
recently_changed_trees, called re_trees was added to permit the
neighborhood name display, and the graphic defaulttree.gif was added for
tree lists where no photo is available.

An original version of profile_detail.html, the reputation code, and the
graphic were all modified from jlivni/OpenTreeMap.

Probably this code should not be used as is. I'm not very happy about my use of
the substitute re_edit() in profiles/models.py and I was unable to figure out how to
fix the broken display of tree thumbnails in the profiles template code. Some of my
changes may violate some project convention (e.g. displaying common name vs
species - seemed to fit better, but how should I know?)

Maybe this submission will inspire someone with better knowledge than I have.