Valid path URLs + app URL without index.html
This commit is contained in:
@@ -17,7 +17,7 @@ def gen_obj(bundle_id):
|
|||||||
|
|
||||||
def gen_entry(obj):
|
def gen_entry(obj):
|
||||||
return '''
|
return '''
|
||||||
<a href="/app/{id}/index.html">
|
<a href="/app/{id}/">
|
||||||
<div>
|
<div>
|
||||||
<img src="{img}" width="100" height="100">
|
<img src="{img}" width="100" height="100">
|
||||||
<span class="name">{name}</span><br />
|
<span class="name">{name}</span><br />
|
||||||
@@ -30,7 +30,7 @@ def gen_pager(current, total):
|
|||||||
|
|
||||||
def mklink(i, name, active=False):
|
def mklink(i, name, active=False):
|
||||||
clss = ' class="active"' if active else ''
|
clss = ' class="active"' if active else ''
|
||||||
return '<a href="../{}"{}>{}</a>'.format(i, clss, name)
|
return '<a href="../{}/"{}>{}</a>'.format(i, clss, name)
|
||||||
|
|
||||||
links = ''
|
links = ''
|
||||||
# if current > 1:
|
# if current > 1:
|
||||||
|
|||||||
@@ -18,16 +18,16 @@ def gen_root():
|
|||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
<p>
|
<p>
|
||||||
The source code of the app is available <a href="https://github.com/relikd/appcheck" target="_blank">on GitHub</a>.
|
The source code of the app is available <a href="https://github.com/relikd/appcheck/" target="_blank">on GitHub</a>.
|
||||||
</p>
|
</p>
|
||||||
<h2>Results</h2>
|
<h2>Results</h2>
|
||||||
<p>
|
<p>
|
||||||
If you're just interested in the results, go ahead to <a href="/index/page/1">all apps</a>.
|
If you're just interested in the results, go ahead to <a href="/index/page/1/">all apps</a>.
|
||||||
</p>
|
</p>
|
||||||
<h2>Current research</h2>
|
<h2>Current research</h2>
|
||||||
<p>
|
<p>
|
||||||
We have an ongoing research project open. Your help is highly appreciated. <br>
|
We have an ongoing research project open. Your help is highly appreciated. <br>
|
||||||
For mor infos follow <a href="/help">this link</a>.
|
For mor infos follow <a href="/help/">this link</a>.
|
||||||
</p>
|
</p>
|
||||||
'''))
|
'''))
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ def gen_help():
|
|||||||
|
|
||||||
txt += '''
|
txt += '''
|
||||||
<tr><td>{0}</td>
|
<tr><td>{0}</td>
|
||||||
<td><a href="/app/{1}/index.html">{2}</a></td>
|
<td><a href="/app/{1}/">{2}</a></td>
|
||||||
<td>{3}</td>
|
<td>{3}</td>
|
||||||
<td><a href="{4}" target="_blank">{4}</a></td>
|
<td><a href="{4}" target="_blank">{4}</a></td>
|
||||||
</tr>'''.format(i + 1, bid, x[0], rr, asurl)
|
</tr>'''.format(i + 1, bid, x[0], rr, asurl)
|
||||||
@@ -85,7 +85,7 @@ def gen_search():
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var GET={};
|
var GET={};
|
||||||
window.location.search.substr(1).split("&").forEach(function(x){GET[x.split("=")[0]]=x.split("=")[1]});
|
window.location.search.substr(1).split("&").forEach(function(x){GET[x.split("=")[0]]=x.split("=")[1]});
|
||||||
if (GET["id"]) { window.location = "/app/" + GET["id"] + "/index.html"; }
|
if (GET["id"]) { window.location = "/app/" + GET["id"] + "/"; }
|
||||||
</script>'''))
|
</script>'''))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<ul id="main-nav">
|
<ul id="main-nav">
|
||||||
<li><a href="/index/page/1">All Apps</a></li>
|
<li><a href="/index/page/1/">All Apps</a></li>
|
||||||
<li><a href="/help">Help needed</a></li>
|
<li><a href="/help/">Help needed</a></li>
|
||||||
<li><a class="no-ul" href="https://github.com/relikd/appcheck" target="_blank"><img src="/static/github.svg" alt="GitHub"></a></li>
|
<li><a class="no-ul" href="https://github.com/relikd/appcheck" target="_blank"><img src="/static/github.svg" alt="GitHub"></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user