move some templates into one macro
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
{% from 'common/infobox.html' import infobox with context %}
 | 
			
		||||
{% from 'common/macros.html' import infobox with context %}
 | 
			
		||||
<!DOCTYPE HTML>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
{% macro infobox(message, kind=InfoboxKind.INFO) %}
 | 
			
		||||
<div class="{{ "infobox " + InfoboxHTMLClass[kind] }}">
 | 
			
		||||
  <span>
 | 
			
		||||
  <div class="infobox-icon-container">
 | 
			
		||||
    <img src="{{ InfoboxIcons[kind] }}">
 | 
			
		||||
  </div>
 | 
			
		||||
  {{ message }}
 | 
			
		||||
  </span>
 | 
			
		||||
</div>
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
@@ -27,3 +27,14 @@
 | 
			
		||||
  {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
 | 
			
		||||
{% macro infobox(message, kind=InfoboxKind.INFO) %}
 | 
			
		||||
<div class="{{ "infobox " + InfoboxHTMLClass[kind] }}">
 | 
			
		||||
  <span>
 | 
			
		||||
  <div class="infobox-icon-container">
 | 
			
		||||
    <img src="{{ InfoboxIcons[kind] }}">
 | 
			
		||||
  </div>
 | 
			
		||||
  {{ message }}
 | 
			
		||||
  </span>
 | 
			
		||||
</div>
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
{% from 'common/pager.html' import pager %}
 | 
			
		||||
{% from 'common/macros.html' import pager %}
 | 
			
		||||
{% extends "base.html" %}
 | 
			
		||||
{% block title %}browsing topic {{ topic['name'] }}{% endblock %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user