-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display collection items in given order
also show comment if available
- Loading branch information
Showing
8 changed files
with
165 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ | |
margin-bottom: 0; | ||
} | ||
|
||
&.with-left-icon { | ||
.with-left-icon { | ||
display: flex; | ||
|
||
.icon-container { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<% resource = collection_item.resource %> | ||
<%= render partial: resource, locals: { collection_item: collection_item } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,61 @@ | ||
<li class="masonry-brick media-item long"> | ||
<%= link_to event, class: 'link-overlay with-left-icon' do %> | ||
<div class="icon-container hidden-xs"> | ||
<!-- TODO: hybrid events--> | ||
<% if event.online? %> | ||
<i class="icon icon-h2 virtual-event-icon"></i><br/> | ||
<span class="muted">Online</span> | ||
<% else %> | ||
<i class="icon icon-h2 onsite-event-icon"></i><br/> | ||
<span class="muted">Face-to-face</span> | ||
<% end %> | ||
</div> | ||
<%= item_order_badge(collection_item) if defined? collection_item %> | ||
<div class="with-left-icon"> | ||
<div class="icon-container hidden-xs"> | ||
<!-- TODO: hybrid events--> | ||
<% if event.online? %> | ||
<i class="icon icon-h2 virtual-event-icon"></i><br/> | ||
<span class="muted">Online</span> | ||
<% else %> | ||
<i class="icon icon-h2 onsite-event-icon"></i><br/> | ||
<span class="muted">Face-to-face</span> | ||
<% end %> | ||
</div> | ||
|
||
<div class="right-container"> | ||
<div class="masonry-brick-heading"> | ||
<div class="masonry-icons"> | ||
<% if current_user&.is_admin? %> | ||
<%= missing_icon(event) %> | ||
<%= scrape_status_icon(event) %> | ||
<%= suggestion_icon(event) %> | ||
<% end %> | ||
<div class="right-container"> | ||
<div class="masonry-brick-heading"> | ||
<div class="masonry-icons"> | ||
<% if current_user&.is_admin? %> | ||
<%= missing_icon(event) %> | ||
<%= scrape_status_icon(event) %> | ||
<%= suggestion_icon(event) %> | ||
<% end %> | ||
<%= event_status_icon(event) %> | ||
</div> | ||
<% if event.event_types.any? %> | ||
<% event.event_types.each do |t| %> | ||
<div class="sub-heading"><%= EventTypeDictionary.instance.lookup_value(t, 'title') %></div> | ||
<%= event_status_icon(event) %> | ||
</div> | ||
<% if event.event_types.any? %> | ||
<% event.event_types.each do |t| %> | ||
<div class="sub-heading"><%= EventTypeDictionary.instance.lookup_value(t, 'title') %></div> | ||
<% end %> | ||
<% end %> | ||
<% end %> | ||
<h4> | ||
<%= event.title %> | ||
</h4> | ||
</div> | ||
<h4> | ||
<%= event.title %> | ||
</h4> | ||
</div> | ||
|
||
<% if event.has_node? -%> | ||
<%= elixir_node_icon %> | ||
<% end -%> | ||
<% if event.has_node? -%> | ||
<%= elixir_node_icon %> | ||
<% end -%> | ||
|
||
<p><%= neatly_printed_date_range(event.start, event.end) %></p> | ||
<p><%= neatly_printed_date_range(event.start, event.end) %></p> | ||
|
||
<% if event.online? %> | ||
<% if event.online? %> | ||
<p class="visible-xs-block"> | ||
<i class="icon icon-md virtual-event-icon"></i> <span class="muted">Online</span> | ||
</p> | ||
<% else %> | ||
<% location = [event.city, event.country].reject { |field_value| field_value.blank? }.join(", ") %> | ||
<% if location.present? %> | ||
<p class="dont-break-out"><i class="fa fa-map-marker"></i> <%= location %></p> | ||
<% else %> | ||
<% location = [event.city, event.country].reject { |field_value| field_value.blank? }.join(", ") %> | ||
<% if location.present? %> | ||
<p class="dont-break-out"><i class="fa fa-map-marker"></i> <%= location %></p> | ||
<% end %> | ||
<p class="visible-xs-block"> | ||
<i class="icon icon-md onsite-event-icon"></i> <span class="muted">Face-to-face</span> | ||
</p> | ||
<% end %> | ||
<p class="visible-xs-block"> | ||
<i class="icon icon-md onsite-event-icon"></i> <span class="muted">Face-to-face</span> | ||
</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<%= item_comment(collection_item) if defined? collection_item %> | ||
<% end %> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters