diff --git a/cookbook/models.py b/cookbook/models.py index 44d8d8f83..f5d6c0ac4 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -67,7 +67,7 @@ class Recipe(models.Model): @property def all_tags(self): - return ', '.join([(x.icon + x.name) for x in self.keywords.all()]) + return ' '.join([(x.icon + x.name) for x in self.keywords.all()]) class RecipeIngredients(models.Model): diff --git a/cookbook/templates/index.html b/cookbook/templates/index.html index 2323b72a4..71741487a 100644 --- a/cookbook/templates/index.html +++ b/cookbook/templates/index.html @@ -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(); diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 302e78fa8..8be5a7a96 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -7,7 +7,11 @@ {% block content %} -