MissingDependencies

    Inhaltsverzeichnis
    keine Gliederung
    /***
    
        !!! 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>
    }
    
    Tags (Schlagworte bearbeiten)
    • No tags
    Um einen Kommentar zu schreiben, müssen Sie sich anmelden.
    Unterstützt von MindTouch Core