Skip to content

Commit

Permalink
FTO Issue #11486 - Remove extra plus signs from code (#11540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkwenan authored Oct 25, 2022
1 parent 1486f57 commit 3855d15
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/views/dashboard_v2/_topicCard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
<div class="col-md-4 card-responsive mb-2 pr-1">
<div class="card">
<a <% if @widget %>target="_blank"<% end %> href="<%= node.path %>">
+ <% if node.main_image %>
+ <img class="card-img-top" style="margin-bottom: 10px;" aria-hidden="true" src="<%= node.main_image.path(:default) %>" />
+ <% elsif node.scraped_image %>
+ <img class="card-img-top" style="margin-bottom: 10px;" aria-hidden="true" src="<%= node.scraped_image %>" />
+ <% else %>
+ <div class="imgg" style="background:#ddd; margin-bottom: 10px;overflow:hidden;">
+ <img src="https://storage.googleapis.com/publiclab-production/public/system/images/photos/000/045/449/medium/paint-bucket.png" style="width: 100%;padding: 15% 30%;opacity: 0.3;">
+ </div>
+ <% end %>
+ </a>
<% if node.main_image %>
<img class="card-img-top" style="margin-bottom: 10px;" aria-hidden="true" src="<%= node.main_image.path(:default) %>" />
<% elsif node.scraped_image %>
<img class="card-img-top" style="margin-bottom: 10px;" aria-hidden="true" src="<%= node.scraped_image %>" />
<% else %>
<div class="imgg" style="background:#ddd; margin-bottom: 10px;overflow:hidden;">
<img src="https://storage.googleapis.com/publiclab-production/public/system/images/photos/000/045/449/medium/paint-bucket.png" style="width: 100%;padding: 15% 30%;opacity: 0.3;">
</div>
<% end %>
</a>
<div class="card-body">
<h5 style="margin-bottom: 0px;" class="text-truncate"><a style="color: inherit; text-decoration: none;" <% if @widget %>target="_blank"<% end %> href="<%= node.path %>" style="color: black"><%= (node.type == 'note') ? node.title : node.latest.title %></a></h5>
<div style="font-size:1.0em;color:darkgray;">
Expand Down

0 comments on commit 3855d15

Please sign in to comment.