Skip to content

Commit

Permalink
Adiciona nova view para app de receitas
Browse files Browse the repository at this point in the history
  • Loading branch information
brnocesar committed Nov 7, 2020
1 parent db95f53 commit ab93b6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apps/receitas/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<div class="classynav">
<ul>
<li><a href="{% url 'index' %}">Home</a></li>
<li><a href="receita.html">Receitas</a></li>
<li><a href="{% url 'receita' %}">Receitas</a></li>
</ul>

<!-- Formulario de busca -->
Expand Down Expand Up @@ -132,7 +132,7 @@
<div class="single-best-receipe-area mb-30">
<img src="{% static 'img/bg-img/foto_receita.png' %}" alt="">
<div class="receipe-content">
<a href="receita.html">
<a href="{% url 'receita' %}">
<h5>Nome da receita</h5>
</a>
</div>
Expand All @@ -144,7 +144,7 @@ <h5>Nome da receita</h5>
<div class="single-best-receipe-area mb-30">
<img src="{% static 'img/bg-img/foto_receita.png' %}" alt="">
<div class="receipe-content">
<a href="receita.html">
<a href="{% url 'receita' %}">
<h5>Nome da receita</h5>
</a>
</div>
Expand All @@ -156,7 +156,7 @@ <h5>Nome da receita</h5>
<div class="single-best-receipe-area mb-30">
<img src="{% static 'img/bg-img/foto_receita.png' %}" alt="">
<div class="receipe-content">
<a href="receita.html">
<a href="{% url 'receita' %}">
<h5>Nome da receita</h5>
</a>
</div>
Expand Down
3 changes: 2 additions & 1 deletion apps/receitas/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
from . import views

urlpatterns = [
path('', views.index, name='index')
path('', views.index, name='index'),
path('receita', views.receita, name='receita')
]
3 changes: 3 additions & 0 deletions apps/receitas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

def index(request):
return render(request, 'index.html')

def receita(request):
return render(request, 'receita.html')

0 comments on commit ab93b6e

Please sign in to comment.