Skip to content

Commit

Permalink
Merge pull request #108 from codefordurham/issue/74
Browse files Browse the repository at this point in the history
[fixes #74] Add descriptions/photo url to search results
  • Loading branch information
vrocha committed May 19, 2015
2 parents d40b431 + f470415 commit 961b233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/app/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ <h4 class="school-group-item-heading">{{ school.name }}</h4>
<p class="school-group-item-text">
Grades {{ school.grade_min }}-{{ school.grade_max }} &mdash; {{ school.address }}
</p>
<img class="photo" src="//placehold.it/350x150">
<img class="photo" data-ng-src="{{ school.photo_url }}">
<p>Website: <a href="{{ school.website_url }}">{{ school.website_url }}</a></p>
<p class='description'>
The mission of Jordan High School is to provide students with the opportunity to explore a body of knowledge, to develop academic, physical, and social skills, and to practice thinking and decision-making processes in an open and orderly environment.
{{ school.mission_statement }}
</p>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion schools/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class Meta:
model = schools_models.School
fields = ('id', 'name', 'level', 'address', 'type', 'eligibility',
'location', 'preference', 'short_name', 'distance',
'year_round', 'grade_min', 'grade_max', 'website_url')
'year_round', 'grade_min', 'grade_max', 'website_url',
'mission_statement',)

def get_eligibility(self, obj):
pt = self.context['point']
Expand Down

0 comments on commit 961b233

Please sign in to comment.