Преглед изворни кода

Beginning work on a settings page.

pull/24/head
Ben Kurtovic пре 12 година
родитељ
комит
309cb30358
5 измењених фајлова са 30 додато и 8 уклоњено
  1. +11
    -6
      pages/index.mako
  2. +10
    -0
      pages/settings.mako
  3. +5
    -2
      pages/support/header.mako
  4. +2
    -0
      pages/surveyor.mako
  5. +2
    -0
      pages/swmt.mako

+ 11
- 6
pages/index.mako Прегледај датотеку

@@ -3,6 +3,8 @@

tools = [
("Home", "home", "index", True, None),
("Settings", "settings", "settings", True, None),
("DIVIDER"),
("Copyvio Detector", "copyvios", "copyvios", True, "Blah"),
("EarwigBot Status", "earwigbot", "earwigbot", True, "Blah"),
("Contribution Surveyor", "surveyor", "surveyor", False, "Blah"),
@@ -16,12 +18,15 @@
<%def name="get_tools()"><% return tools %></%def>\
<%include file="/support/header.mako" args="environ=environ, title='Home', slug='home'"/>
<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
% endfor
<%include file="/support/footer.mako" args="environ=environ"/>

+ 10
- 0
pages/settings.mako Прегледај датотеку

@@ -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"/>

+ 5
- 2
pages/support/header.mako Прегледај датотеку

@@ -31,8 +31,11 @@
<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="links"><span class="light">&gt;</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):
<span class="light">&#124;</span>
% endif


+ 2
- 0
pages/surveyor.mako Прегледај датотеку

@@ -1,2 +1,4 @@
<%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"/>

+ 2
- 0
pages/swmt.mako Прегледај датотеку

@@ -1,2 +1,4 @@
<%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"/>

Loading…
Откажи
Сачувај