Commands now get styled like code

This commit is contained in:
Zanz2 2018-02-07 13:51:22 +01:00
parent 4389c110cf
commit efaf5ad721
2 changed files with 5 additions and 1 deletions

View file

@ -393,6 +393,10 @@ module ProtocolsIoHelper
pe_array = %w(
name description os_name os_version
)
key['source_data']['name'] =
'<pre><code>' +
not_null(key['source_data']['name']) +
'</code></pre>'
trans_text = 'protocols.protocols_io_import.comp_append.command.'
newj[i.to_s]['description'] += pio_stp(
key['source_data'], pe_array, trans_text

View file

@ -87,7 +87,7 @@
<% step_info_string += not_null(key['source_data']['description']) %>
<br>
<strong><%= key['name']+': ' %></strong>
<%= prepare_for_view(key['source_data']['name'],ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_SMALL,'table').html_safe %>
<%= prepare_for_view('<pre><code>'+key['source_data']['name']+'</code></pre>',ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_SMALL,'table').html_safe %>
<br>
<%= t('protocols.protocols_io_import.preview.s_desc') %>
<%= prepare_for_view(key['source_data']['description'],ProtocolsIoHelper::PIO_ELEMENT_RESERVED_LENGTH_SMALL,'table').html_safe %>