scinote-web/app/views/protocol_importers/_protocol_card.html.erb

24 lines
828 B
Text
Raw Normal View History

<div class='protocol-card'
2019-07-04 15:43:05 +08:00
data-id='<%= protocol[:id] %>'
data-protocol-source='<%= protocol[:source] %>'
data-url='<%= team_build_external_protocol_path(current_team.id,) %>'
data-show-url='<%= team_show_external_protocol_path(current_team.id) %>'
data-show-protocol-id='<%= protocol[:uri] %>'>
<p class='protocol-title'><%= protocol[:title] %></p>
<div class='info-line'>
<% if protocol[:published_on] %>
<%= l(Time.at(protocol[:published_on]).to_datetime, format: :full_date) %> •
<% end %>
<%= protocol[:authors] %>
</div>
<div class='card-footer'>
<div class='info-line'>
2019-07-04 15:43:05 +08:00
<%= t('protocol_importers.card.views_and_steps', nr_of_views: protocol[:nr_of_views], nr_of_steps: protocol[:nr_of_steps]) %>
</div>
<div class='info-line button'>
2019-07-04 15:43:05 +08:00
</div>
</div>
2019-06-13 14:49:03 +08:00
</div>