Skip to content

Commit

Permalink
Add Link to Url Preview (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Feb 13, 2021
1 parent ae1fcf7 commit 6a7b1ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/mindwendel_web/live/idea_live/index_component.html.leex
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
<i class="bi bi-x text-secondary"></i>
<% 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 %>
<hr />
<div class="row">
<div class="col-md-3">
Expand Down

0 comments on commit 6a7b1ff

Please sign in to comment.