This is a sample Code (some German words inside, sorry for that)
void ticket_rd_view(ticket_t *self) { if (ticket_is_free(self)) return rd_deleted(); // guard ticket_rd_navbar(__func__, self); div_start(style(margin_left(20), margin_right(20))); ht_table_start( join( onclick_redirect_when(current_user->is.ticket_schreibrecht, callback_with(ticket_rd_edit, self)), class("dialog"), style( width_prz(100), style_if(current_user->is.ticket_schreibrecht, cursor_pointer()) ))); TR TH6 if(self->is.erledigt) { cat("Ticketdaten vom erledigten Ticket anzeigen"); } else { cat("Ticketdaten vom offenen Ticket anzeigen"); } ...