Commit f2e74da8 authored by Maarten van der Veen's avatar Maarten van der Veen

add shelter detail page

parent 6509fe55
......@@ -529,7 +529,7 @@ function generateShelterList(data) {
{
var shelter = $('<div class="shelter"/>').appendTo('#shelterList');
shelter.append('<div class="image" style="background-image: url(' + '' + ')"></div> ' +
'<h4 class="title"><a href="shelter.html">' +data[i].nameofshelter+ '</a></h4>' +
'<h4 class="title"><a href="/shelter/' + data[i].db_id + '">' +data[i].nameofshelter+ '</a></h4>' +
'<div class="country">'+data[i].country+'</div> ' +
'<div class="description"><p>' +'' + '</p></div>');
}
......
This diff is collapsed.
......@@ -143,6 +143,11 @@ def shelters():
shelters = Shelter.query.filter(Shelter.is_published==True).all()
return render_template('shelters.html', shelters=shelters)
@current_app.route('/shelter/<int:shelter_id>', methods=['GET'])
def shelter(shelter_id):
return render_template('shelter.html', shelter_id=shelter_id)
@current_app.route('/stats', methods=['GET'])
def stats():
return render_template('stats.html')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment