|
Revision 406, 1.1 kB
(checked in by eevee, 11 months ago)
|
|
Database refactoring. Renamed columns and tables to be more consistent and more readable. (#58)
|
| Line | |
|---|
| 1 | [% PROCESS 'common.tt' %] |
|---|
| 2 | [% PROCESS 'forum/common.tt' %] |
|---|
| 3 | |
|---|
| 4 | [% IF forum.blurb %]<div class="forum-blurb">[% forum.blurb %]</div>[% END %] |
|---|
| 5 | [% this_pagelist = pagelist(skip, c.site_opts.page_sizes.threads, forum.thread_count, "/forum/${forum.id}", c.req.params); this_pagelist %] |
|---|
| 6 | [% INCLUDE show_announcements announcements_rs=announcements_rs %] |
|---|
| 7 | [% forum_flags = BLOCK %] |
|---|
| 8 | [% FOREACH flag IN forum.flags.split(',') %] |
|---|
| 9 | <img src="/images/icons/[% flag %].png" alt="[[% flag %]]" title="[% flag %]" class="forumicon"/> [% flag | ucfirst %][% IF !loop.last %]; [%+ END %] |
|---|
| 10 | [% END %] |
|---|
| 11 | [% END %] |
|---|
| 12 | [% IF forum.flags %][% forum_flags = forum_flags _ '<br/>' %][% END %] |
|---|
| 13 | [% forum_flags %] |
|---|
| 14 | [% INCLUDE threads_start %] |
|---|
| 15 | [% IF threads_rs.is_empty %] |
|---|
| 16 | [% INCLUDE threads_message message='Either no threads exist, or all existing threads are blocked from your view.' %] |
|---|
| 17 | [% ELSE %] |
|---|
| 18 | [% WHILE (t = threads_rs.next) %] |
|---|
| 19 | [% INCLUDE threads_each thread=t %] |
|---|
| 20 | [% END %] |
|---|
| 21 | [% END %] |
|---|
| 22 | [% INCLUDE threads_end %] |
|---|
| 23 | [% forum_flags %] |
|---|
| 24 | [% this_pagelist %] |
|---|
| 25 | |
|---|
| 26 | <h1>Create a new thread</h1> |
|---|
| 27 | [%+ INCLUDE post_form id=forum.id url=c.uri('Forum::Create', 'thread') %] |
|---|