Skip to content

Commit 5e2b5a6

Browse files
committed
Render the value column only if item[:value] exists
1 parent 9ef7a62 commit 5e2b5a6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/views/generic_object/_textual_none.html.haml

Whitespace-only changes.

app/views/shared/summary/_textual.html.haml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
:onclick => item[:link] ? click : ""}
2121
%td.label
2222
= item[:label]
23-
%td
24-
= render :partial => "shared/summary/icon_or_image", :locals => {:item => item}
25-
= !item[:value].kind_of?(Array) ? item[:value] : render(:partial => "shared/summary/textual_multivalue", :locals => {:items => item[:value]})
23+
- if item[:value]
24+
%td
25+
= render :partial => "shared/summary/icon_or_image", :locals => {:item => item}
26+
= !item[:value].kind_of?(Array) ? item[:value] : render(:partial => "shared/summary/textual_multivalue", :locals => {:items => item[:value]})

0 commit comments

Comments
 (0)