mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-30 04:47:09 +01:00
added list.html
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>TealFire</h1>
|
<h1>TealFire</h1>
|
||||||
|
|
||||||
|
<div></div>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<div id="main-content">
|
<div id="main-content">
|
||||||
|
|||||||
33
TealCode/main/templates/main/list.html
Normal file
33
TealCode/main/templates/main/list.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{% extends "main/base.html" %}
|
||||||
|
{% block content %}
|
||||||
|
<div id="list">
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
<div class="list-item">
|
||||||
|
<img src="c_icon.png"/>
|
||||||
|
<p>How To 1 in c</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock content %}
|
||||||
@@ -3,4 +3,5 @@ from . import views
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', views.index, name="main-index"),
|
path('', views.index, name="main-index"),
|
||||||
|
path('list/', views.list, name="main-list"),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -2,3 +2,6 @@ from django.shortcuts import render
|
|||||||
|
|
||||||
def index(req):
|
def index(req):
|
||||||
return render(req, "main/index.html")
|
return render(req, "main/index.html")
|
||||||
|
|
||||||
|
def list(req):
|
||||||
|
return render(req, "main/list.html")
|
||||||
Reference in New Issue
Block a user