Sha256: 853a8e4e02ab746f651a83cff85f7f5a7aeb206d99ae80348ccde50624a9b296

Contents?: true

Size: 805 Bytes

Versions: 10

Compression:

Stored size: 805 Bytes

Contents

- if current_task.script.present?
  :javascript
    window.editor = ace.edit("script-editor", {
      wrap: true,
      readOnly: true,
      printMarginColumn: false,
    });
    var RubyMode = ace.require("ace/mode/ruby").Mode;
    editor.setTheme("ace/theme/solarized_dark");
    editor.session.setMode(new RubyMode());

    $('#click2detail').click(function() {
      this.remove();
      $('#script-editor').removeClass('collapsed');
      window.editor.resize();
      return false;
    })
    $('#click2full').click(function() {
      $('#task-detail').toggleClass('fullscreen');
      window.editor.resize();
      return false;
    })

- if current_task.description.present?
  :javascript
    $('#description-html').html(marked.parse($('#description-markdown').html()));
    hljs.highlightAll();

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_execution-0.1.12 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.11 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.10 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.9 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.8 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.7 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.5 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.4 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.2 app/views/rails_execution/tasks/_show_scripts.html.haml
rails_execution-0.1.1 app/views/rails_execution/tasks/_show_scripts.html.haml