Initial commit
This commit is contained in:
		
							
								
								
									
										14
									
								
								templates/blog.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								templates/blog.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
{% extends "templates/base.html" %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
{% if blogs|length == 0 %} 
 | 
			
		||||
<b>Any blog available</b><br/><br/>
 | 
			
		||||
{% else %}
 | 
			
		||||
{% for blog in blogs %}
 | 
			
		||||
    <li><a href="/blog/{{ blog.id }}">{{ blog.name }} : {{ blog.title }}</a></li>
 | 
			
		||||
{% endfor %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if user.is_superuser %}
 | 
			
		||||
    <li><a href="/blog/add">Add a blog</a></li>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user