MCPcopy Create free account
hub / github.com/adobe/Marinus / create_list_entry

Function create_list_entry

web_server/public/javascripts/utilities.js:197–216  ·  view source on GitHub ↗
(row_name, visible_text, href, include_count = false, icon_name = 'chevronRight', target_location = "")

Source from the content-addressed store, hash-verified

195}
196
197function create_list_entry(row_name, visible_text, href, include_count = false, icon_name = 'chevronRight', target_location = "") {
198 let target_code = "";
199 if (target_location !== "") {
200 target_code = ' target="' + target_location + '" ';
201 }
202
203 let output_image = "";
204 if (icon_name === "chevronRight") {
205 output_image = '<img src="/stylesheets/octicons/svg/chevron-right-24.svg" alt="entry"/>&nbsp;';
206 } else if (icon_name === "lockOn") {
207 output_image = '<img src="/stylesheets/octicons/svg/lock-24.svg" alt="lock"/>&nbsp;';
208 }
209 let output_text = '<a class="list-group-item list-group-item-action" id="' + row_name + '_link" href="' + href + '"' + target_code + '>';
210 output_text = output_text + output_image + visible_text;
211 if (include_count) {
212 output_text = output_text + '<span id="' + row_name + '_count"></span>';
213 }
214 output_text = output_text + '</a>';
215 return (output_text);
216}
217
218function end_list() {
219 return ('</div>');

Callers 6

display_issuersFunction · 0.85
display_issuer_listFunction · 0.85
display_scan_listFunction · 0.85
censysResultFunction · 0.85
initialize_whois_listFunction · 0.85
display_zone_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected