Sha256: 8dee96859fed16b7501079c2b8766575264d3f77ef333da86b846202a857cc84

Contents?: true

Size: 880 Bytes

Versions: 18

Compression:

Stored size: 880 Bytes

Contents

<?
  title = "<p>Oops!</p><p> What are you looking for?</p>"
  alert = "danger"
  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}}
  </p>
</div>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mutx-0.1.20 lib/mutx/view/tasks/message.mote
mutx-0.1.19 lib/mutx/view/tasks/message.mote
mutx-0.1.18 lib/mutx/view/tasks/message.mote
mutx-0.1.17 lib/mutx/view/tasks/message.mote
mutx-0.1.16 lib/mutx/view/tasks/message.mote
mutx-0.1.15 lib/mutx/view/tasks/message.mote
mutx-0.1.14 lib/mutx/view/tasks/message.mote
mutx-0.1.13 lib/mutx/view/tasks/message.mote
mutx-0.1.12 lib/mutx/view/tasks/message.mote
mutx-0.1.11 lib/mutx/view/tasks/message.mote
mutx-0.1.10 lib/mutx/view/tasks/message.mote
mutx-0.1.9 lib/mutx/view/tasks/message.mote
mutx-0.1.8 lib/mutx/view/tasks/message.mote
mutx-0.1.7 lib/mutx/view/tasks/message.mote
mutx-0.1.6 lib/mutx/view/tasks/message.mote
mutx-0.1.4 lib/mutx/view/tasks/message.mote
mutx-0.1.3 lib/mutx/view/tasks/message.mote
mutx-0.1.2 lib/mutx/view/tasks/message.mote