Parent: [2cf6cf] (diff)

Child: [b7478c] (diff)

Download this file

forum.html    53 lines (47 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
asdfasdf<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="${g.pyforge_templates}/master.html"/>
<xi:include href="${c.app.templates}/lib.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>ForgeDiscussion Index Page</title>
</head>
<body>
<h1 class="title">$forum.name</h1>
<p>Forum Shortlink: [${forum.shorthand_id()}]</p>
<div>${Markup(g.markdown.convert(forum.description))}</div>
<a href="mailto:$forum.email_address">Post via Email</a>
<div py:if="has_artifact_access('moderate', forum)()">
<a href="moderate/">Moderate Messages</a>
</div>
<div py:if="forum.parent" class="breadcrumbs" >
<ul>${crumbs(forum.breadcrumbs())}</ul>
</div>
<py:if test="forum.subforums">
<h2>SubForums</h2>
${forums_table(parent_id=forum._id)}
</py:if>
<h2>Topics</h2>
<py:if test="announcements">
<h3>Announcements</h3>
${c.announcements_table(value=announcements)}
</py:if>
<form method="post" action="${c.app.script_name}subscribe">
${threads_table(threads)}
${submit_button('Update Subscriptions')}
</form>
<div class="title-pane closed">
<h2 class="title">New Topic</h2>
<div class="content">
<form method="post" action="thread/new">
${text_field('subject', 'Subject')}
${text_area('content', 'Content')}
${submit_button('Create new topic')}
</form>
</div>
</div>
</body>
</html>