Sha256: a3d9e31d637dbc505c04996971e1a04c2ccc1a53525865f005010e42dd724d45

Contents?: true

Size: 804 Bytes

Versions: 68

Compression:

Stored size: 804 Bytes

Contents

<h4>Harmful Thoughts</h4>
<% if ThinkFeelDoEngine::HarmfulThoughtVizPresenter.new(thoughts.harmful.map(&:pattern_id)).display_viz? %>
  <div id="ThoughtVizContainer">
    <div id="ThoughtVizTooltip"></div>
  </div>
<% else %>
  <p class="text-info">Not enough harmful thoughts yet exist for graphical display.</p>
<% end %>

<script type="text/javascript">
    var TT = null, thoughtsWithPatterns;

    thoughtsWithPatterns = 
      <%= raw(thoughts.to_json(:methods => "pattern", :only => [:content, :challenging_thought, :act_as_if])) %>
      $(document).on('page:change', function(){

<% unless link_to_view.nil? %>

    TT = new sc.thoughtTracker(true,<%= sanitize("\"home:" + link_to_view + "\"") %>);

<% else %>

	if(TT == null) TT = new sc.thoughtTracker(true,"solo");

<% end %>
});

</script>

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/thoughts/distortion_viz.html.erb