Skip to content

Commit af18e2e

Browse files
committed
Spaces index styling
1 parent 688c742 commit af18e2e

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

app/assets/stylesheets/learning-paths.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939
}
4040

41-
.learning-path-item {
41+
.block-item {
4242
text-align: center;
4343
border-image-slice: 80;
4444
border-image-width: 80px;

app/views/learning_paths/_learning_path.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<li class="masonry-brick media-item large learning-path-item learning-path-bg-<%= (learning_path.id % 4) + 1 -%>">
1+
<li class="masonry-brick media-item large block-item learning-path-bg-<%= (learning_path.id % 4) + 1 -%>">
22
<%= link_to learning_path, class: 'link-overlay' do %>
33
<%= item_order_badge(collection_item) if defined? collection_item %>
44

app/views/spaces/_space.html.erb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<% cache(space, expires_in: 6.hours) do %>
2-
<li class="masonry-brick media-item long">
2+
<li class="masonry-brick media-item block-item">
33
<%= link_to space, class: 'link-overlay' do %>
4-
<%= image_tag get_image_url_for(space), class: "media-image listing_image pull-right" %>
4+
<%# image_tag get_image_url_for(space), class: "media-image listing_image pull-right" %>
55
<h4 class="mb-2 mt-3">
66
<%= space.title %>
77
</h4>
88

9-
<%# if space.materials.length > 0 %>
10-
<!-- <div><strong><%#= pluralize(space.materials.length, 'training material') %></strong></div>-->
11-
<%# end %>
9+
<span class="muted"><%= space.url %></span>
1210

13-
<%# if space.events.length > 0 %>
14-
<!-- <div>-->
15-
<!-- <strong><%#= pluralize(space.events.not_finished.length, 'event') %></strong>-->
16-
<!-- <em>(<%#= pluralize(space.events.finished.length, 'past event') %>)</em>-->
17-
<!-- </div>-->
18-
<%# end %>
11+
<% if space.materials.length > 0 %>
12+
<div><strong><%= pluralize(space.materials.length, 'training material') %></strong></div>
13+
<% end %>
14+
15+
<% if space.events.length > 0 %>
16+
<div>
17+
<strong><%= pluralize(space.events.not_finished.length, 'event') %></strong>
18+
<em>(<%= pluralize(space.events.finished.length, 'past event') %>)</em>
19+
</div>
20+
<% end %>
1921
<% end %>
2022
</li>
2123
<% end %>

app/views/spaces/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</div>
2828

2929
<div class="my-3">
30-
<%= display_attribute(@space, :host) %>
30+
<%= display_attribute(@space, :url) %>
3131

3232
<div class="description">
3333
<%= render_markdown @space.description %>

0 commit comments

Comments
 (0)