content,
<div xmlns:kid="http://purl.org/kid/ns#" kid:omit="">
<?python
import time
ISSUE = redfoot.namespace("http://redfoot.net/3.0/issue#")
SERVER = redfoot.namespace("http://redfoot.net/3.0/server#")
DC_creator = URIRef("http://purl.org/dc/elements/1.1/creator")
DC_created = URIRef("http://purl.org/dc/terms/created")
issues = set()
for issue in redfoot.subjects(RDF.type, ISSUE.Issue):
label = redfoot.label(issue) or issue
comment = redfoot.comment(issue)
c = redfoot.value(issue, DC_created)
try:
created = time.strftime("%A %d %B, %Y", time.gmtime(float(c)))
except Exception, e:
redfoot.log.warning("Couldn't format timestamp: %s" % e)
created = None
issues.add((c, created, issue, label, comment))
issues = list(issues)
issues.sort()
issues.reverse()
?>
<p><a href="#add_issue">add issue</a> | <a href="resolved/">Resolved Issues</a></p>
<ul class="issues">
<li kid:for="c, created, issue, label, comment in issues">
<h3><a href="${issue.concrete()}">${label}</a></h3>
<div class="meta">
<a href="${issue.concrete()}">issue</a>
<span kid:if="created">created on ${created}</span>.
</div>
<pre>${comment}</pre>
</li>
</ul>
<div class="add_issue">
<?python
allowed = allow(URIRef("%s/issues/add/" % request.host))
from urllib import quote
?>
<h3><a name="add_issue">Add Issue</a></h3>
<div kid:if="allowed" kid:strip="">
<form action="/issues/add/" method="post">
<p><input name="label" type="" style="width: 100%"></input></p>
<p><textarea name="comment" cols="" rows="10" style="width: 100%"></textarea></p>
<p><input name="submit" type="submit" value="Submit Issue" /></p>
</form>
</div>
<div kid:if="not allowed" kid:strip="">
<p kid:if="allow(URIRef('%s/login/'% request.host))">
<a href="/login/?return_uri=${quote(request.uri)}">Login</a> to submit a issue.
</p>
</div>
</div>
</div>
Comments regarding http://redfoot.net/3.0/aspects/issues/all_issues
Login to submit a comment.