Sha256: 3ccf33f5dcd2141360baed727b50cf8dcabd3f5b698e87a0deef6ecc1dbe4d77
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
$('#hist-gem-modal').html("<%= j(render partial: 'hist/modal_popup') %>"); $('#hist-gem-modal').modal('show'); <% if @aceMode == :json %> $(function() { var mode = "ace/mode/json"; var left_content = JSON.stringify(<%= @diff_escaped[:left].html_safe %>, null, '\t'); var right_content = JSON.stringify(<%= @diff_escaped[:right].html_safe %>, null, '\t'); histInstantiateHistory(mode, "<%=@height%>", left_content, right_content); }); <% elsif @aceMode == :yaml %> $(function() { var mode = "ace/mode/yaml"; var left_content = `<%= YAML.dump(@diff[:left]) %>`; var right_content = `<%= YAML.dump(@diff[:right]) %>`; histInstantiateHistory(mode, "<%=@height%>", left_content, right_content); }); <% elsif @aceMode == :text %> $(function() { var mode = "ace/mode/text"; var left_content = `<%= @diff[:left].to_s %>`; var right_content = `<%= @diff[:right].to_s %>`; histInstantiateHistory(mode, "<%=@height%>", left_content, right_content); // ActiveSupport::JSON.decode(@diff[:version])["doc_files"].first["ocr"].to_s // ActiveSupport::JSON.decode(@diff[:current])["doc_files"].first["ocr"].to_s, }); <% elsif @aceMode == :html %> $(function() { var mode = "ace/mode/html"; var left_content = `<%= @diff[:left].html_safe %>`; var right_content = `<%= @diff[:right].html_safe %>`; histInstantiateHistory(mode, "<%=@height%>", left_content, right_content); // ActiveSupport::JSON.decode(@diff[:version])["doc_files"].first["ocr"].to_s // ActiveSupport::JSON.decode(@diff[:current])["doc_files"].first["ocr"].to_s, }); <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hist-0.2.0 | app/views/hist/versions/diff.js.erb |