Browse Source

Adding Github API example page, updating api_examples to link to Github page

David Leonard 10 năm trước cách đây
mục cha
commit
0434de84ac

+ 1 - 1
hackathon_starter/hackathon/templates/hackathon/api_examples.html

@@ -4,7 +4,7 @@
 
 
 	<div class="row text-center">
-	    <div class="col-sm-4"><img src="/static/img/github.png"></div>
+	    <div class="col-sm-4"><a href="http://127.0.0.1:8000/hackathon/github/"><img src="/static/img/github.png"></a></div>
 	    <div class="col-sm-4"><a href="http://127.0.0.1:8000/hackathon/steam/"><img src="/static/img/steam.png"></a></div>
 	    <div class="col-sm-4"><img src="/static/img/github.png"></div>
   	</div>

+ 7 - 0
hackathon_starter/hackathon/templates/hackathon/github.html

@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+<body>
+	{% include 'hackathon/base.html' %}
+	<h1> {{ title }} </h1> 
+</body>
+</html>