source: subversion/sites/other/tilesAtHome_tahngo/templates/homepage.html @ 9790

Last change on this file since 9790 was 9648, checked in by spaetz, 11 years ago

nicer homepage description of the server

File size: 2.5 KB
Line 
1{% extends "base.html" %}
2
3{% block title %}t@h Home{% endblock %}
4{% block heading %}TilesAtHome server{% endblock %}
5{% block content %}
6<h4>About</h4>
7<p>This is the TilesAtHome (t@h) server which distributes render requests to t@h clients and makes the uploaded tile files available. <a href="http://wiki.openstreetmap.org/index.php/Tiles%40home/Install_Guide">Installation instructions</a> for t@h clients are in our wiki, as are <a href="http://wiki.openstreetmap.org/index.php/Tiles%40home">further information</a> on the server. Clients should enter their OSM-email and OSM password in authentication.conf. For planned changes and improvements read the <a href="http://svn.openstreetmap.org/sites/other/tilesAtHome_tahngo/TODO">TODO</a> and let me know if your favorite feature is broken or not implemented yet.</p>
8<h4>Sitemap</h4><ul>
9<li><a href="{% url tah.requests.views.index %}">Render Requests</a> (create, see, upload render requests)</li>
10<li><a href="{% url tah.browse.views.index %}">Browse Statically</a> (Browse the map in a non-javascript viewer)</li>
11<li><a href="{% url tah.browse.views.slippymap %}">Browse dynamically</a> (Browse the map as slippy map and request renderings with a mouseclick)</li>
12<li><a href="{% url tah.user.views.index %}">User</a> (manage user accounts, see user statistics)</li></ul>
13<h4>What's currently going on? (updated every 15 sec.)</h4>
14<div id="log">Loading Log file...</div>
15
16 <script type="text/javascript">
17 var page = "{% url tah.tah_intern.views.show_log %}";
18 function ajax(url,target) {
19   // native XMLHttpRequest object
20   //document.getElementById(target).innerHTML = 'Loading...';
21   if (window.XMLHttpRequest) {
22     req = new XMLHttpRequest();
23     req.onreadystatechange = function() {ajaxDone(target);};
24     req.open("GET", url, true);
25     req.send(null);
26     // IE/Windows ActiveX version
27   } else if (window.ActiveXObject) {
28     req = new ActiveXObject("Microsoft.XMLDOM");
29     if (req) {
30       req.onreadystatechange = function() {ajaxDone(target);};
31       req.open("GET", url, true);
32       req.send(null);
33     }
34   }
35   setTimeout("ajax(page,'log')", 15000);
36 }
37 
38 function ajaxDone(target) {
39   // only if req is "loaded"
40   if (req.readyState == 4) {
41     // only if "OK"
42     if (req.status == 200 || req.status == 304) {
43       results = req.responseText;
44       document.getElementById(target).innerHTML = results;
45     } else {
46       document.getElementById(target).innerHTML="ajax error:\n" +
47       req.statusText;
48     }
49   }
50 }
51
52 ajax(page,'log')
53 </script>
54
55{% endblock %}
Note: See TracBrowser for help on using the repository browser.