def _make_module_menu(malware):
html = ""
html += "<div>"
html += "<ul class=\"nav nav-pills modules-pills\">"
for i, m in enumerate(malware.module_status):
module_class = Module.get_module_by_name(m.module_cls_name)
module_name = module_class.module_name()
active = ""
if i is 0:
active = "active"
html += "<li id=\"menu_module_malware_{}_{}\" class=\"menu_module_malware menu_module_malware_{} {}\"><a href=\"#\" onclick=\"show_module_malware({},{})\">{}</a></li>".format(str(malware.uid),str(m.id),str(malware.uid),active,str(malware.uid),str(m.id),escape(module_name))
html += "</ul>"
html += "</div>"
return html
评论列表
文章目录