     ApmIssues.attributes(id).subject || ""
   end
 
+  defp display_not_found(uuid) do
+    raw "<header><p class='alert alert-danger'>Issue <b>#{uuid}</b> not found.</p></header>"
+  end
+
 end

            conn: conn, id: uuid, parent_id: ApmIssues.parent_id(uuid), 
            issue: ApmIssues.data(issue), children: ApmIssues.children_ids(uuid)
          )
      {uuid, :not_found} -> "Issue #{uuid} not found"
    end
  end

  @doc"""
  Render one issue recursively
  """

    children
    |> Enum.map( fn(child_id) -> 
      case ApmIssues.lookup(child_id) do
        :not_found -> display_not_found(child_id)
        _ -> render_issue(conn,child_id) 
      end
    end)
