<div class="widget-pages">
    <p>This widget will appear on: <b><%pages.length || 0%></b> page(s)</p>
    <%~if pages.length%>
    <ul>
        <%~loop pages%>
        <%~if Page > 0%>
        <%~set cat = Plugins::UI::fetch_category($Page)%>
        <%~if cat%>
        <li><a href="admin.cgi?do=plugin;plugin=Widgets;func=widgets;page=<%Page%>"><%cat.Full_Name%></a></li>
        <%~endif%>
        <%~else%>
        <li><a href="admin.cgi?do=plugin;plugin=Widgets;func=widgets;page=<%Page%>"><%if Page eq 'home'%>Home<%elsif Page eq 'category'%>Category<%elsif Page eq 'subcategory'%>Subcategory<%elsif Page 'Article'%>Article<%endif%> Page</a></li>
        <%~endif%>
        <%~endloop%>
    </ul>
    <%~endif%>
</div>
