We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b817d6 commit cd2df39Copy full SHA for cd2df39
BrainPortal/app/views/neurohub_portal/welcome.html.erb
@@ -55,9 +55,13 @@
55
56
<div class="grid">
57
<% categories.each do |category| %>
58
- <div class="card">
59
- <div class="btn-text primary card_heading" style="color:<%= category.color %>">
60
- <%= category.title %>
+ <div class="card" >
+ <div class="btn-text primary card_heading"
+ <% if category.color.present? %>
61
+ style="color: <%= category.color %>;>"
62
+ <% end %>
63
+ >
64
+ <%= category.title %>
65
</div>
66
67
<% category.urls.each_with_index do |url, i| %>
0 commit comments