subroutineside_iconprivate
subroutine side_icon(e, b)
Write the icon of entity e in a sidebar: a letter, with what it stands for as its tooltip.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| e | type(entity_t) | in | the entity | |
| b | type(buffer_t) | inout | the HTML |
Calls
Called by
Source
Show the code
subroutine side_icon(e, b)
type(entity_t), intent(in) :: e !! the entity
type(buffer_t), intent(inout) :: b !! the HTML
character(len=:), allocatable :: letter, word
call icon_of(e, letter, word)
if (len(letter) == 0) return
call add(b, '<span class="ico ico-'//letter_class(letter)//'" title="'//word//'" aria-hidden="true">'//letter//'</span>')
end subroutine side_icon