diff --git a/web/widgets/css_helper.anubis b/web/widgets/css_helper.anubis index 4a8fca7..c20c613 100644 --- a/web/widgets/css_helper.anubis +++ b/web/widgets/css_helper.anubis @@ -116,14 +116,31 @@ public type ChangeListItem: change_list_item( String icon, String label, - String value). + HTML_Off_Form value). public define ChangeListItem change_list_item ( + String icon, String label, String value )= + change_list_item(icon, label, text(value)). + +public define ChangeListItem + change_list_item + ( + String label, + String value + )= + change_list_item("", label, text(value)). + +public define ChangeListItem + change_list_item + ( + String label, + HTML_Off_Form value + )= change_list_item("", label, value). define HTML_Row(HTML_Off_Form) @@ -137,12 +154,12 @@ define HTML_Row(HTML_Off_Form) row([], if icon = "" then [ cell([core_attrs([class("label")])],text(label)), - cell(text(value)) + cell(value) ] else [ cell([core_attrs([class("icon "+icon)])],text("")), cell([core_attrs([class("label")])],text(label)), - cell(text(value)) + cell(value) ] ) . -- libgit2 0.21.4