view local recipes

This commit is contained in:
vabene1111
2019-11-14 08:57:50 +01:00
parent 76bf49eaad
commit 16cf81ab4a
4 changed files with 11 additions and 3 deletions

View File

@@ -96,6 +96,7 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
window.open(this.responseText);
link.attr("href", this.responseText);
link.show();
$('#div_loader').hide();

View File

@@ -7,7 +7,11 @@
{% block content %}
<h3>{{ recipe.name }}</h3>
<h3>{{ recipe.name }} <a href="{% url 'edit_recipe' recipe.pk %}"><i class="fas fa-pencil-alt"></i></a></h3>
{% if recipe.all_tags %}
{{ recipe.all_tags }}
<br/>
{% endif %}
<br/>
<div class="card" style="width: 18rem;">
<div class="card-body">