mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
<%
|
|
visible_timelines = if user_signed_in? && current_user == content.user
|
|
content.timelines
|
|
else
|
|
[]
|
|
end
|
|
%>
|
|
|
|
<div id="timelines_panel" class="row panel">
|
|
<div class="row">
|
|
<div class="col s12 m10 offset-m1">
|
|
<%= render partial: 'notice_dismissal/messages/14' %>
|
|
|
|
<% if visible_timelines.any? %>
|
|
<%= content.name %> appears in the following timelines:
|
|
|
|
<ul>
|
|
<% visible_timelines.each do |timeline| %>
|
|
<li>
|
|
<%= link_to edit_timeline_path(timeline) do %>
|
|
<div class="hoverable card">
|
|
<div class="card-image" style="height: 140px;">
|
|
<%= image_tag timeline.random_public_image(format: :medium), style: 'height: 140px' %>
|
|
<span class="card-title">
|
|
<%= timeline.name.presence || 'Untitled Timeline' %>
|
|
</span>
|
|
<!--
|
|
<a class="btn-floating halfway-fab waves-effect waves-light red">
|
|
<i class="material-icons">search</i>
|
|
</a>
|
|
-->
|
|
</div>
|
|
<div class="card-content black-text">
|
|
<% if timeline.universe_id? %>
|
|
<p class="right">
|
|
<%= link_to timeline.universe, class: "#{Universe.color}-text" do %>
|
|
<i class="material-icons left"><%= Universe.icon %></i>
|
|
<%= timeline.universe.name %>
|
|
<% end %>
|
|
</p>
|
|
<% end %>
|
|
<p>
|
|
<strong><%= timeline.subtitle %></strong>
|
|
</p>
|
|
<p>
|
|
<%= timeline.description %>
|
|
</p>
|
|
<p class="grey-text">
|
|
Last edited <%= time_ago_in_words timeline.updated_at %> ago
|
|
</p>
|
|
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div> |