Skip to content

Commit cd2df39

Browse files
grid title colors
1 parent 5b817d6 commit cd2df39

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

BrainPortal/app/views/neurohub_portal/welcome.html.erb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@
5555

5656
<div class="grid">
5757
<% categories.each do |category| %>
58-
<div class="card">
59-
<div class="btn-text primary card_heading" style="color:<%= category.color %>">
60-
<%= category.title %>
58+
<div class="card" >
59+
<div class="btn-text primary card_heading"
60+
<% if category.color.present? %>
61+
style="color: <%= category.color %>;>"
62+
<% end %>
63+
>
64+
<%= category.title %>
6165
</div>
6266

6367
<% category.urls.each_with_index do |url, i| %>

0 commit comments

Comments
 (0)