Less restrictive anti-bandwidth-theft code. Fixes a problem
[cocanwiki.git] / templates / host_menu.html
index 940b65c..71e542b 100644 (file)
@@ -1,13 +1,38 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-<title>Global settings</title>
-<meta name="robots" content="noindex,nofollow"/>
+<title>Sitewide settings</title>
 <meta name="author" content="http://www.merjis.com/" />
 <link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
+<link rel="alternate stylesheet" href="/_css/easytoread.css" type="text/css" title="High contrast, big fonts"/>
 </head><body>
 
-<h1>Global settings</h1>
+<h1><span>Sitewide settings</span></h1>
+
+<ul>
+<li> <a href="/_bin/largest_pages.cmo">Largest pages</a> </li>
+<li> <a href="/_bin/dead_ends.cmo">Dead end pages</a> </li>
+<li> <a href="/_bin/broken_links.cmo">Broken links</a> </li>
+
+<li> <a href="/_bin/edit_sitemenu.cmo">Edit site menu</a> </li>
+
+::if(can_manage_users)::
+<li> <a href="/_users">Users</a> </li>
+::end::
+
+::if(can_manage_contacts)::
+<li> <a href="/_bin/contacts.cmo">Contact forms</a> </li>
+::end::
+
+::if(can_edit_global_css)::
+<li> <a href="/_bin/edit_host_css_form.cmo">Edit global stylesheet</a> </li>
+::end::
+
+</ul>
+
+::if(can_manage_site)::
+
+<h2>Site management</h2>
 
 <table class="left_table">
 <tr>
 <tr>
 <th> Global stylesheet: </th>
 <td> ::if(has_global_css)::<a href="/_global.css">View global stylesheet</a>::else::No global stylesheet for this site.::end::<br/>
-<a href="/_bin/edit_host_css_form.cmo">Edit global stylesheet ...</a> </td>
+::if(can_edit_global_css)::
+<a href="/_bin/edit_host_css_form.cmo">Edit global stylesheet ...</a>
+::end::
+</td>
+</tr>
+<tr>
+<th> Allow anyone to see the site: </th>
+<td> ::if(view_anon)::Yes::else::No (private / intranet site)::end:: </td>
 </tr>
 <tr>
 <th> Allow anonymous edits: </th>
 <td> ::if(search_box)::Yes::else::No::end:: </td>
 </tr>
 <tr>
+<th> Navigation box: </th>
+<td> ::if(navigation)::Yes::else::No::end:: </td>
+</tr>
+<tr>
 <th> Theme: </th>
 <td> ::if(has_theme_css)::<strong>::theme_name_html::</strong> <br/> ::theme_description_html:: ::else:: Standard wiki theme ::end:: </td>
 </tr>
 <ul>
 <li> <a href="/_bin/rebuild_links.cmo">Rebuild link structure</a>
 </ul>
-
-<ul id="topmenu" class="menu">
-<li class="first"> <a href="/">Home&nbsp;page</a> </li>
-<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent&nbsp;changes</a> </li>
-</ul>
-
-<div id="menu_div">
-<ul id="bottommenu" class="menu">
-<li class="first"> <a href="/">Home&nbsp;page</a> </li>
-::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
 ::end::
-<li> <a href="/_sitemap">Sitemap</a> </li>
-</ul>
-</div>
-
-<div id="footer_div">
-<hr/>
-
-<ul id="footer" class="menu">
-<li class="first"> <a href="/copyright">Copyright &copy; ::year::</a> </li>
-<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
-</ul>
-</div>
 
+::include(footer.html)::
 </body>
 </html>
\ No newline at end of file