COM-FSM
Template:MindTouch > Controls > MissingDependencies

MissingDependencies

Page last modified 14:15, 31 Oct 2010 by Admin
Table of contents
No headers
/***

    !!! DEPRECATED !!! use DependencyErrors template instead

    MissingDependencies(title, link, check) 
***/

// show warning message
<p>
    <strong>
        <span style="color: rgb(255, 0, 0);"> "Warning: "</span>
        if($link) {
            web.link($link, $title);
        } else {
            $title;
        }
        " is missing one or more dependencies."
    </strong>
</p>

<p>
    "Please ensure that the following extensions are installed:"
</p>

// list missing dependencies
if($check) {
    <ul>
        foreach(var check in $check) {
            if(!check.test || !__env[check.test]) {
                <li>
                    if(check.link) {
                        web.link(check.link, check.title);
                    } else {
                        check.title;
                    }
                </li>
            }
        }
    </ul>
}
Powered by MindTouch Core