navbar current decorator
This commit is contained in:
		
							
								
								
									
										29
									
								
								backend/app/templates/explore.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								backend/app/templates/explore.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
{% extends "base.html" %}
 | 
			
		||||
 | 
			
		||||
{% block explorecurrent %}class="current"{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
	<h1>Hello, {{ current_user.username }}!</h1>
 | 
			
		||||
	{% if form %}
 | 
			
		||||
	<form action="" method="post">
 | 
			
		||||
		{{ form.hidden_tag() }}
 | 
			
		||||
		<p>
 | 
			
		||||
			{{ form.post.label }}
 | 
			
		||||
			{{ form.post(cols=32, rows=4) }}
 | 
			
		||||
			{% for error in form.post.errors %}
 | 
			
		||||
			<span style="color: red;">[{{ error }}]</span>
 | 
			
		||||
			{% endfor %}
 | 
			
		||||
		</p>
 | 
			
		||||
		<p>{{ form.submit() }}</p>
 | 
			
		||||
	</form>
 | 
			
		||||
	{% endif %}
 | 
			
		||||
	{% for post in posts %}
 | 
			
		||||
		{% include '_post.html' %}
 | 
			
		||||
	{% endfor %}
 | 
			
		||||
	{% if prev_url %}<a href="{{ prev_url }}">Newer Posts</a>{% endif %}
 | 
			
		||||
	{% if next_url %}<a href="{{ next_url }}">Older Posts</a>{% endif %}
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user