ItemRef returns the reference string (e.g. "TASK-5") for an item, or empty string.
(item models.Item)
| 93 | |
| 94 | // ItemRef returns the reference string (e.g. "TASK-5") for an item, or empty string. |
| 95 | func ItemRef(item models.Item) string { |
| 96 | if item.CollectionPrefix != "" && item.ItemNumber != nil { |
| 97 | return fmt.Sprintf("%s-%d", item.CollectionPrefix, *item.ItemNumber) |
| 98 | } |
| 99 | return "" |
| 100 | } |
| 101 | |
| 102 | // StatusIcon returns a colorized status indicator. |
| 103 | func StatusIcon(status string) string { |
no outgoing calls
no test coverage detected