File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 }
3939}
4040
41- .learning-path -item {
41+ .block -item {
4242 text-align : center ;
4343 border-image-slice : 80 ;
4444 border-image-width : 80px ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 %>
Original file line number Diff line number Diff line change 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 %>
You can’t perform that action at this time.
0 commit comments