mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-28 16:08:22 +08:00
Commands now get styled like code
This commit is contained in:
parent
4389c110cf
commit
efaf5ad721
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Reference in a new issue