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 3de156e commit 0214614Copy full SHA for 0214614
1 file changed
app/views/spaces/_space.html.erb
@@ -1,8 +1,9 @@
1
+<% theme_colour = TeSS::Config.themes[space.theme]&.dig('primary') %>
2
<% cache(space, expires_in: 6.hours) do %>
- <li class="masonry-brick media-item block-item">
3
- <%= link_to space, class: 'link-overlay' do %>
4
- <%# image_tag get_image_url_for(space), class: "media-image listing_image pull-right" %>
5
- <h4 class="mb-2 mt-3">
+ <li class="masonry-brick media-item long">
+ <%= link_to space, class: 'link-overlay', style: (theme_colour ? "border-color: #{theme_colour}" : nil) do %>
+ <%= image_tag get_image_url_for(space), class: "media-image listing_image pull-right" %>
6
+ <h4 class="mb-2 mt-3" style="<%= theme_colour ? "color: #{theme_colour}" : ''-%>">
7
<%= space.title %>
8
</h4>
9
0 commit comments