Sha256: f64a0c3471b6f32760794f25f65e5e2c154c9cb552f5eacb1fcf78f6cd6706c8

Contents?: true

Size: 1.04 KB

Versions: 41

Compression:

Stored size: 1.04 KB

Contents

<?
  title = "<p>Click on result or return to tasks</p>"
  alert = "info"
  buttons = "<a href='/tasks' class='btn btn-info' >Go to Tasks</a>"

  result_id = args[:result_id]
  result = Mutx::Results::Result.get(result_id)

  if result
    type = result.task_type.capitalize
    task_name = result.task_name

    if result.has_started_message?
      title = result.get_started_message!

      alert = "success"
      buttons = "
        <a href='/#{type.downcase}s/#{task_name}' class='btn btn-info' >Go to '#{task_name}'</a>
        <a href='/#{type.downcase}s' class='btn btn-default' >Go to #{type.capitalize}s</a>
      "
    end

  end
?>

<div class="alert alert-{{alert}}" role="alert">

  <H3>
    <!--<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>-->&nbsp;{{title}}
  </H3>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>
    {{buttons}}
    <a href='/results/{{result_id}}/log', '_blank', 'toolbar=no, scrollbars=yes, resizable=yes, top=300, left=300, width=800, height=600';" class='btn btn-primary'>Go to Result</a>
  </p>
</div>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
mutx-0.1.69 lib/mutx/view/tasks/message.mote
mutx-0.1.68 lib/mutx/view/tasks/message.mote
mutx-0.1.67 lib/mutx/view/tasks/message.mote
mutx-0.1.66 lib/mutx/view/tasks/message.mote
mutx-0.1.65 lib/mutx/view/tasks/message.mote
mutx-0.1.64 lib/mutx/view/tasks/message.mote
mutx-0.1.63 lib/mutx/view/tasks/message.mote
mutx-0.1.62 lib/mutx/view/tasks/message.mote
mutx-0.1.61 lib/mutx/view/tasks/message.mote
mutx-0.1.60 lib/mutx/view/tasks/message.mote
mutx-0.1.59 lib/mutx/view/tasks/message.mote
mutx-0.1.58 lib/mutx/view/tasks/message.mote
mutx-0.1.57 lib/mutx/view/tasks/message.mote
mutx-0.1.56 lib/mutx/view/tasks/message.mote
mutx-0.1.55 lib/mutx/view/tasks/message.mote
mutx-0.1.54 lib/mutx/view/tasks/message.mote
mutx-0.1.53 lib/mutx/view/tasks/message.mote
mutx-0.1.52 lib/mutx/view/tasks/message.mote
mutx-0.1.51 lib/mutx/view/tasks/message.mote
mutx-0.1.50 lib/mutx/view/tasks/message.mote