Mercurial > farol > farol
comparison farol/templates/macros.j2 @ 53:249b3ad750b1
Add Descriptions for the Threat fields
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 07 Oct 2014 17:08:28 +0200 |
parents | df5182d0787f |
children | 42915aaa6888 |
comparison
equal
deleted
inserted
replaced
52:b9704abca0c9 | 53:249b3ad750b1 |
---|---|
154 <p class="form-control-static">{{ value }}</p> | 154 <p class="form-control-static">{{ value }}</p> |
155 </div> | 155 </div> |
156 </div> | 156 </div> |
157 {% endmacro %} | 157 {% endmacro %} |
158 | 158 |
159 {% macro examples(list) %} | 159 {% macro examples(list, title='') %} |
160 <p><strong>Example{{ 's' if list | length > 1 }}:</strong></p> | 160 <p><strong>{{ title + ' ' if title }}Example{{ 's' if list | length > 1 }}:</strong></p> |
161 {% if list | length == 1 %} | 161 {% if list | length == 1 %} |
162 <samp>{{ list[0] }}</samp> | 162 <samp>{{ list[0] }}</samp> |
163 {% else %} | 163 {% else %} |
164 <ul> | 164 <ul> |
165 {%- for elem in list %} | 165 {%- for elem in list %} |