MissingDependencies

    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>
    }
    
    Tag page (Edit tags)
    • No tags
    Page statistics
    4730 view(s), 1 edit(s) and 1016 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments