diff --git a/lib/mindwendel_web/live/idea_live/index_component.html.leex b/lib/mindwendel_web/live/idea_live/index_component.html.leex index 8fb9c9ca..a5d24f8e 100644 --- a/lib/mindwendel_web/live/idea_live/index_component.html.leex +++ b/lib/mindwendel_web/live/idea_live/index_component.html.leex @@ -8,9 +8,14 @@ <% end %> - <%= text_to_html(idea.body) %> + <%= unless idea.link do %> + <%= text_to_html(idea.body) %> + <% end %> <%= if idea.link do %> + <%= link to: idea.link.url do %> + <%= text_to_html(idea.body) %> + <% end %>