Browse Source

hide search and buy form when user is not authenticated

Konrad Mohrfeldt 9 years ago
parent
commit
2d1b9faeca
1 changed files with 8 additions and 6 deletions
  1. 8
    6
      k4ever/main/templates/main/navbar-content.html

+ 8
- 6
k4ever/main/templates/main/navbar-content.html View File

@@ -36,9 +36,11 @@
36 36
 	{% endif %}
37 37
 </ul>
38 38
 
39
-<form class="navbar-search pull-right">
40
-	<span class="brand balance">Kontostand: {{ user.get_profile.balance|floatformat:2 }} €</span>
41
-	<input placeholder="Suche und kaufe..." class="search-query autocomplete"
42
-		type="search" name="search_term" value="Lade Daten..."
43
-		disabled="disabled" />
44
-</form>
39
+{% if user.is_authenticated %}
40
+	<form class="navbar-search pull-right">
41
+		<span class="brand balance">Kontostand: {{ user.get_profile.balance|floatformat:2 }} €</span>
42
+		<input placeholder="Suche und kaufe..." class="search-query autocomplete"
43
+			type="search" name="search_term" value="Lade Daten..."
44
+			disabled="disabled" />
45
+	</form>
46
+{% endif %}

Loading…
Cancel
Save