2019-04-30 23:32:55 +08:00
|
|
|
<div class="sketch-container" data-sketch-id="<%= sketch.id %>" >
|
|
|
|
<img src class="sketch-image">
|
|
|
|
<%= hidden_field_tag :description, sketch.description %>
|
|
|
|
<div class="sketch-name"><%= truncate(sketch.name, length: Constants::FILENAME_TRUNCATION_LENGTH) %></div>
|
|
|
|
<div class="sketch-object">
|
2019-05-12 02:51:01 +08:00
|
|
|
<% if sketch.object&.protocol&.my_module %>
|
2019-04-30 23:32:55 +08:00
|
|
|
<%= t('marvinjs.task') %>: <%= truncate(sketch.object.protocol.my_module.name,
|
|
|
|
length: Constants::FILENAME_TRUNCATION_LENGTH) %>
|
2019-05-03 21:24:28 +08:00
|
|
|
<% end %>
|
2019-04-30 23:32:55 +08:00
|
|
|
</div>
|
|
|
|
</div>
|