We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edc5c4a commit 6be0541Copy full SHA for 6be0541
app/views/entries/index.html.erb
@@ -32,9 +32,11 @@
32
<%= link_to entry, class: 'table__link', aria: { label: t('.show') } do %>
33
<%= inline_svg_tag 'images/icons/eye.svg', class: 'icon' %>
34
<% end %>
35
- <%= link_to entry.url, class: 'table__link', aria: { label: t('.go_to_original') } do %>
36
- <%= inline_svg_tag 'images/icons/arrow-top-right-on-square.svg', class: 'icon' %>
37
- <% end %>
+ <%- if entry.url.present? %>
+ <%= link_to entry.url, class: 'table__link', aria: { label: t('.go_to_original') } do %>
+ <%= inline_svg_tag 'images/icons/arrow-top-right-on-square.svg', class: 'icon' %>
38
+ <% end %>
39
+ <%- end %>
40
41
</tr>
42
<%- end %>
0 commit comments