@@ -3,6 +3,8 @@ | |||||
tools = [ | tools = [ | ||||
("Home", "home", "index", True, None), | ("Home", "home", "index", True, None), | ||||
("Settings", "settings", "settings", True, None), | |||||
("DIVIDER"), | |||||
("Copyvio Detector", "copyvios", "copyvios", True, "Blah"), | ("Copyvio Detector", "copyvios", "copyvios", True, "Blah"), | ||||
("EarwigBot Status", "earwigbot", "earwigbot", True, "Blah"), | ("EarwigBot Status", "earwigbot", "earwigbot", True, "Blah"), | ||||
("Contribution Surveyor", "surveyor", "surveyor", False, "Blah"), | ("Contribution Surveyor", "surveyor", "surveyor", False, "Blah"), | ||||
@@ -16,12 +18,15 @@ | |||||
<%def name="get_tools()"><% return tools %></%def>\ | <%def name="get_tools()"><% return tools %></%def>\ | ||||
<%include file="/support/header.mako" args="environ=environ, title='Home', slug='home'"/> | <%include file="/support/header.mako" args="environ=environ, title='Home', slug='home'"/> | ||||
<h1>My Tools</h1> | <h1>My Tools</h1> | ||||
% for name, tool, link, complete, desc in tools: | |||||
% if desc: | |||||
<div class="toolbox"> | |||||
<p class="toolname"><a class="dark" href="${pretty}/${link}"><span class="medium">${tool}:</span> ${name}</a></p> | |||||
<p class="tooldesc">${desc}</p> | |||||
</div> | |||||
% for tool in tools: | |||||
% if tool != "DIVIDER": | |||||
<% name, tool, link, complete, desc = tool %> | |||||
% if desc: | |||||
<div class="toolbox"> | |||||
<p class="toolname"><a class="dark" href="${pretty}/${link}"><span class="medium">${tool}:</span> ${name}</a></p> | |||||
<p class="tooldesc">${desc}</p> | |||||
</div> | |||||
% endif | |||||
% endif | % endif | ||||
% endfor | % endfor | ||||
<%include file="/support/footer.mako" args="environ=environ"/> | <%include file="/support/footer.mako" args="environ=environ"/> |
@@ -0,0 +1,10 @@ | |||||
<%include file="/support/header.mako" args="environ=environ, title='Settings'"/> | |||||
<h1>Settings</h1> | |||||
<p>This page contains some configurable options for this Toolserver site. Settings are saved as cookies. You can view and delete all cookies generated by this site at the bottom of this page.</p> | |||||
<h2>Options</h2> | |||||
<ul> | |||||
<li>Default site:</li> | |||||
<li>Background</li> | |||||
</ul> | |||||
<h2>Cookies</h2> | |||||
<%include file="/support/footer.mako" args="environ=environ"/> |
@@ -31,8 +31,11 @@ | |||||
<div id="header"> | <div id="header"> | ||||
<p id="heading"><a class="dark" href="${pretty}">earwig</a><span class="light">@</span><a class="mid" href="https://wiki.toolserver.org/">toolserver</a><span class="light">:</span><a class="dark" href="${this}">${slug}</a></p> | <p id="heading"><a class="dark" href="${pretty}">earwig</a><span class="light">@</span><a class="mid" href="https://wiki.toolserver.org/">toolserver</a><span class="light">:</span><a class="dark" href="${this}">${slug}</a></p> | ||||
<p id="links"><span class="light">></span> | <p id="links"><span class="light">></span> | ||||
% for num, (name, tool, link, complete, desc) in enumerate(tools, 1): | |||||
<abbr title="${name}${' (incomplete)' if not complete else ''}"><a class="${'dark' if complete else 'mid'}" href="${pretty}/${link}">${tool}</a></abbr> | |||||
% for num, tool in enumerate(tools, 1): | |||||
% if tool != "DIVIDER": | |||||
<% name, tool, link, complete, desc = tool %> | |||||
<abbr title="${name}${' (incomplete)' if not complete else ''}"><a class="${'dark' if complete else 'mid'}" href="${pretty}/${link}">${tool}</a></abbr> | |||||
% endif | |||||
% if num < len(tools): | % if num < len(tools): | ||||
<span class="light">|</span> | <span class="light">|</span> | ||||
% endif | % endif | ||||
@@ -1,2 +1,4 @@ | |||||
<%include file="/support/header.mako" args="environ=environ, title='Contribution Surveyor'"/> | <%include file="/support/header.mako" args="environ=environ, title='Contribution Surveyor'"/> | ||||
<h1>Contribution Surveyor</h1> | |||||
<p>This tool does not exist yet. Watch this space for updates.</p> | |||||
<%include file="/support/footer.mako" args="environ=environ"/> | <%include file="/support/footer.mako" args="environ=environ"/> |
@@ -1,2 +1,4 @@ | |||||
<%include file="/support/header.mako" args="environ=environ, title='SWMT Helper'"/> | <%include file="/support/header.mako" args="environ=environ, title='SWMT Helper'"/> | ||||
<h1>SWMT Helper</h1> | |||||
<p>This tool does not exist yet. Watch this space for updates.</p> | |||||
<%include file="/support/footer.mako" args="environ=environ"/> | <%include file="/support/footer.mako" args="environ=environ"/> |