<% if result.is_text %> <% elsif result.is_table %> <% elsif result.is_asset %> <% end %>
<% if result.editable? && can_manage_my_module?(result.my_module) %> <% end %> <% if can_manage_result?(result) %> <%= form_for :result, url: result_path_of_type(result), method: :patch, html: {id: 'result-archive-form-' + result.id.to_s } do |f| %> <%= f.hidden_field :archived, value: true %> <% end %> <% end %>
<%= result.name %> | <%= t('my_modules.results.published_on_html', timestamp: l(result.created_at, format: :full), user: h(result.user.full_name)) %>
<%= render partial: 'my_modules/result_user_generated', locals: { result: result } %>
<% if can_read_experiment?(@my_module.experiment) %>
<%= render partial: 'result_comments/index', locals: { result: result, comments: result.last_comments, per_page: Constants::COMMENTS_SEARCH_LIMIT } %>
<% end %>