Commit cd4c85fc60a367febeb0fbf2742ac934a2d8c0f4

Authored by totoro
1 parent 6774f8f3

Change the type of value of change_list_item from String to HTML_Off_Form which …

…can allow to show link or anything else
Showing 1 changed file with 20 additions and 3 deletions   Show diff stats
web/widgets/css_helper.anubis
@@ -116,14 +116,31 @@ public type ChangeListItem: @@ -116,14 +116,31 @@ public type ChangeListItem:
116 change_list_item( 116 change_list_item(
117 String icon, 117 String icon,
118 String label, 118 String label,
119 - String value). 119 + HTML_Off_Form value).
120 120
121 public define ChangeListItem 121 public define ChangeListItem
122 change_list_item 122 change_list_item
123 ( 123 (
  124 + String icon,
124 String label, 125 String label,
125 String value 126 String value
126 )= 127 )=
  128 + change_list_item(icon, label, text(value)).
  129 +
  130 +public define ChangeListItem
  131 + change_list_item
  132 + (
  133 + String label,
  134 + String value
  135 + )=
  136 + change_list_item("", label, text(value)).
  137 +
  138 +public define ChangeListItem
  139 + change_list_item
  140 + (
  141 + String label,
  142 + HTML_Off_Form value
  143 + )=
127 change_list_item("", label, value). 144 change_list_item("", label, value).
128 145
129 define HTML_Row(HTML_Off_Form) 146 define HTML_Row(HTML_Off_Form)
@@ -137,12 +154,12 @@ define HTML_Row(HTML_Off_Form) @@ -137,12 +154,12 @@ define HTML_Row(HTML_Off_Form)
137 row([], 154 row([],
138 if icon = "" then 155 if icon = "" then
139 [ cell([core_attrs([class("label")])],text(label)), 156 [ cell([core_attrs([class("label")])],text(label)),
140 - cell(text(value)) 157 + cell(value)
141 ] 158 ]
142 else 159 else
143 [ cell([core_attrs([class("icon "+icon)])],text("")), 160 [ cell([core_attrs([class("icon "+icon)])],text("")),
144 cell([core_attrs([class("label")])],text(label)), 161 cell([core_attrs([class("label")])],text(label)),
145 - cell(text(value)) 162 + cell(value)
146 ] 163 ]
147 ) 164 )
148 . 165 .