(row_name, visible_text, href, include_count = false, icon_name = 'chevronRight', target_location = "")
| 195 | } |
| 196 | |
| 197 | function 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"/> '; |
| 206 | } else if (icon_name === "lockOn") { |
| 207 | output_image = '<img src="/stylesheets/octicons/svg/lock-24.svg" alt="lock"/> '; |
| 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 | |
| 218 | function end_list() { |
| 219 | return ('</div>'); |
no outgoing calls
no test coverage detected