capscan.lua

changeset 2
b89fe0449b96
parent 1
ce892ac8bec2
child 4
9a4a18d11166
equal deleted inserted replaced
1:ce892ac8bec2 2:b89fe0449b96
91 report:write("Entity capabilities validity for contacts of ", jid); 91 report:write("Entity capabilities validity for contacts of ", jid);
92 report:write[[</head> 92 report:write[[</head>
93 <body> 93 <body>
94 ]]; 94 ]];
95 95
96 report:write[[<style type="text/css">
97 .good-hash { background-color: #33aa33; }
98 .bad-hash { background-color: #aa3333; }
99 .no-hash { background-color: #ffffff; }
100 .unknown-hash { background-color: #aaaa33; }
101 </style>
102 ]]
103
104
105 local contact_jids = array.collect(keys(contacts)):sort(); 96 local contact_jids = array.collect(keys(contacts)):sort();
106 97
107 report:write("<h1>Entity capabilities report for contacts of ", jid, "</h1>\n"); 98 report:write("<h1>Entity capabilities report for contacts of ", jid, "</h1>\n");
108 report:write("<p>", tostring(#contact_jids), " contacts</p>\n"); 99 report:write("<p>", tostring(#contact_jids), " contacts</p>\n");
109 100

mercurial