Skip to content

Commit

Permalink
implement the resource preview for samples #1961
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Aug 16, 2024
1 parent 52efdb7 commit e4833d8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/assets/_resource_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%= list_item_contributors resource -%>
<%= list_item_simple_list resource.creators, t('contributor').capitalize -%>
<%= list_item_simple_list resource.creators, t('creator').capitalize.pluralize -%>
<%= list_item_description resource.description -%>
</div>
Expand Down
17 changes: 16 additions & 1 deletion app/views/samples/_resource_preview.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
<strong>Preview Not Yet Implemented</strong>
<% unless resource.nil? -%>

<div data-tooltip='<%= tooltip(h(resource.title)) %>'>
<p class="title">
<%= list_item_title resource -%>
</p>

<%= render :partial => 'projects/show_project_relationship', :locals => {:resource => resource, :list_item => false} -%>
<%= list_item_contributors resource -%>
<%= list_item_simple_list resource.creators, t('creator').capitalize.pluralize -%>
<%= sample_type_list_item_attribute(t('sample_type'),resource) %>
</div>

<% end -%>

0 comments on commit e4833d8

Please sign in to comment.