MissingDependencies

    內容表格
    沒有標頭
    /***
    
        !!! 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>
    }
    
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core