diff options
Diffstat (limited to 'view/html/recipes.html')
-rw-r--r-- | view/html/recipes.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/view/html/recipes.html b/view/html/recipes.html index dc072a1..c0a0719 100644 --- a/view/html/recipes.html +++ b/view/html/recipes.html @@ -8,12 +8,13 @@ </header> <body> <main> - <p>Here are the available recipes 😋🍳🍔🍕🥘</p> + <p><button onclick="create('/recipe')">create</button></p> +{{if ne (len .) 0}} <p><input id="search" onkeyup="filter()" type="text" placeholder="Search for a recipe ..."></p> - <button onclick="create('/recipe')">add</button> <ul id="recipes">{{range .}} <li><a href="./recipe/{{.Id}}">{{.Title}}</a></li>{{end}} - </ul> + </ul>{{else}} + <p><i>No recipes available.</i></p>{{end}} </main> {{ template "footer" }} <script src="/static/view/static/ceres.js"></script> |