~sirn/fanboi2

ref: 5b436e758084b9777685d5f69a4402a84f1de4c0 fanboi2/fanboi2/templates/partials/_ident.mako -rw-r--r-- 293 bytes
5b436e75Kridsada Thanabulpong templates: display ident_v6 as ID6 8 months ago
                                                                                        
1
2
3
4
5
<%def name="render_ident(ident, ident_type='ident', class_=None)">
    % if ident:
    <span class="${class_ + ' ' if class_ else ''}ident${' ' + ident_type.replace('_', '-') if ident_type != 'ident' else ''}">${'ID6' if ident_type == 'ident_v6' else 'ID'}:${ident}</span>
    % endif
</%def>