'tickets' can use 'threads' now
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@706 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -8,29 +8,18 @@
|
||||
<legend>{form_thread_legend}</legend>
|
||||
|
||||
<p class="withnext">{title}:</p>
|
||||
<input class="edit" type="text" name="subject" value="">
|
||||
<input class="edit" type="text" name="subject" value="[item_subject]">
|
||||
|
||||
|
||||
[# !! change names form_emacs_content_thread and form_emacs_content_ticket]
|
||||
|
||||
<p class="withnext">{form_emacs_content_thread}</p>
|
||||
<textarea class="multitext" rows="10" cols="60" name="itemcontent"></textarea>
|
||||
|
||||
<p class="withnext">{form_emacs_content_type}</p>
|
||||
|
||||
<select name="contenttype" class="contenttype">
|
||||
<option value="0">{form_emacs_content_type_text}</option>
|
||||
<option selected value="1">{form_emacs_content_type_formatted_text}</option>
|
||||
[if-one user_can_use_html]<option value="2">{form_emacs_content_type_html}</option>[end]
|
||||
[if-one user_can_use_bbcode]<option value="3">{form_emacs_content_type_bbcode}</option>[end]
|
||||
[if-one user_can_use_raw]<option value="4">{form_emacs_content_type_raw}</option>[end]
|
||||
</select>
|
||||
|
||||
|
||||
[if mount_thread_arg_is "subject"]
|
||||
<p class="withnext">{suggested_url}:</p>
|
||||
<input class="edit" type="text" name="url" value="[item_url]">
|
||||
[end]
|
||||
|
||||
[include "fun_emacs_post.html"]
|
||||
|
||||
[if-no user_logged]
|
||||
<p class="withnext">{nick}:</p>
|
||||
<input class="edit" type="text" name="guestname" value="">
|
||||
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
|
||||
|
||||
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
|
||||
<input class="edit" type="text" name="rebus">
|
||||
@@ -39,3 +28,4 @@
|
||||
<input class="submit" type="submit" value="{button_thread_submit}">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -15,14 +15,6 @@
|
||||
<input class="edit" type="text" name="url" value="[item_url]">
|
||||
[end]
|
||||
|
||||
[if-any mount_type_is "thread" mount_thread_arg_is "subject"]
|
||||
<p class="withnext">{title}:</p>
|
||||
<input class="edit" type="text" name="subject" value="[item_subject]">
|
||||
|
||||
<p class="withnext">{suggested_url}:</p>
|
||||
<input class="edit" type="text" name="url" value="[item_url]">
|
||||
[end]
|
||||
|
||||
[include "fun_emacs_post.html"]
|
||||
|
||||
[if-no user_logged]
|
||||
|
||||
46
html/fun_reply.html
Executable file
46
html/fun_reply.html
Executable file
@@ -0,0 +1,46 @@
|
||||
<h1>{thread_header_reply}</h1>
|
||||
|
||||
[include "error.html"]
|
||||
|
||||
|
||||
<form id="additem" method="post" action="[doc_base_url][dir][item_url]/reply">
|
||||
<fieldset>
|
||||
<legend>{form_thread_reply}</legend>
|
||||
|
||||
[if mount_thread_arg_is "subject"]
|
||||
<p class="withnext">{title}:</p>
|
||||
<input class="edit" type="text" name="subject" value="">
|
||||
|
||||
<p class="withnext">{suggested_url}:</p>
|
||||
<input class="edit" type="text" name="url" value="">
|
||||
[end]
|
||||
|
||||
|
||||
[if mount_type_is "thread"]<p class="withnext">{form_emacs_content_thread}</p>[end]
|
||||
<textarea class="multitext" rows="10" cols="60" name="itemcontent"></textarea>
|
||||
|
||||
|
||||
<p class="withnext">{form_emacs_content_type}</p>
|
||||
|
||||
<select name="contenttype" class="contenttype">
|
||||
<option value="0">{form_emacs_content_type_text}</option>
|
||||
<option selected value="1">{form_emacs_content_type_formatted_text}</option>
|
||||
[if user_can_use_html]<option value="2">{form_emacs_content_type_html}</option>[end]
|
||||
[if user_can_use_bbcode]<option value="3">{form_emacs_content_type_bbcode}</option>[end]
|
||||
[if user_can_use_raw]<option value="4">{form_emacs_content_type_raw}</option>[end]
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
[if-no user_logged]
|
||||
<p class="withnext">{nick}:</p>
|
||||
<input class="edit" type="text" name="guestname" value="">
|
||||
|
||||
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
|
||||
<input class="edit" type="text" name="rebus">
|
||||
[end]
|
||||
|
||||
<input class="submit" type="submit" value="{add}">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
27
html/fun_showthreads.html
Executable file
27
html/fun_showthreads.html
Executable file
@@ -0,0 +1,27 @@
|
||||
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="withinfo"[end]>[dir_last_subject]</h1>[end]
|
||||
[if mount_page_arg_is "info"][include "dir_last_info.html"][end]
|
||||
|
||||
|
||||
[if thread_can_create]
|
||||
<ul class="itemmenu">
|
||||
<li><a href="[doc_base_url][dir]createthread">{thread_create_new}</a></li>
|
||||
</ul>
|
||||
[end]
|
||||
|
||||
|
||||
[if thread_sort_tab]
|
||||
<table class="forum">
|
||||
<tr><th>{thread_tab_title}</th><th>{thread_tab_author}</th><th>{thread_tab_replies}</th><th>{thread_tab_last_post}</th></tr>
|
||||
[for thread_sort_tab]
|
||||
<tr>
|
||||
<td><a href="[doc_base_url][dir][thread_sort_tab_url]">[thread_sort_tab_subject]</a></td> [# dodac sprawdzanie subject empty]
|
||||
<td class="smallfont">[thread_sort_tab_user]</td><td class="smallfont">[thread_sort_tab_replies]</td>
|
||||
<td class="smallfont">[thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])</td>
|
||||
</tr>
|
||||
[end]
|
||||
</table>
|
||||
[end]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
[if mount_page_arg_is "info"][include "dir_last_info.html"][end]
|
||||
|
||||
|
||||
[if-one ticket_can_create]
|
||||
[if ticket_can_create]
|
||||
<ul class="itemmenu">
|
||||
<li><a href="[doc_base_url][dir]createticket">{ticket_create_new}</a></li>
|
||||
</ul>
|
||||
@@ -17,6 +17,12 @@
|
||||
[for ticket_tab]
|
||||
<th>[ticket_tab_param]</th>
|
||||
[end]
|
||||
|
||||
[if winix_has_plugin "thread"]
|
||||
<th>{thread_tab_author}</th>
|
||||
<th>{thread_tab_replies}</th>
|
||||
<th>{thread_tab_last_post}</th>
|
||||
[end]
|
||||
</tr>
|
||||
|
||||
[for tickets_tab]
|
||||
@@ -29,6 +35,13 @@
|
||||
<td>[tickets_tab_conf_tab_value]</td>
|
||||
[end]
|
||||
[end]
|
||||
|
||||
[if winix_has_plugin "thread"]
|
||||
<td>[thread_sort_tab_user]</td>
|
||||
<td>[if thread_sort_tab_has_thread][thread_sort_tab_replies][end]</td>
|
||||
<td>[if thread_sort_tab_has_thread][thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])[end]</td>
|
||||
[end]
|
||||
|
||||
</tr>
|
||||
[end]
|
||||
|
||||
|
||||
@@ -1,43 +1,29 @@
|
||||
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="withinfo"[end]>[dir_last_subject]</h1>[end]
|
||||
[if mount_page_arg_is "info"][include "dir_last_info.html"][end]
|
||||
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="withinfo"[end]>[item_subject]</h1>[end]
|
||||
[if mount_page_arg_is "info"][include "item_info.html"][end]
|
||||
|
||||
[if-one thread_can_create]
|
||||
|
||||
[if thread_can_reply]
|
||||
<ul class="itemmenu">
|
||||
[if-one thread_can_create]<li><a href="[doc_base_url][dir]createthread">{thread_create_new}</a></li>[end]
|
||||
<li><a href="[doc_base_url][dir][item_url]/reply">{thread_reply_in_this_thread}</a></li>
|
||||
</ul>
|
||||
[end]
|
||||
|
||||
[if-one thread_tab]
|
||||
<table class="forum">
|
||||
<tr><th>{thread_tab_title}</th><th>{thread_tab_author}</th><th>{thread_tab_replies}</th><th>{thread_tab_last_post}</th></tr>
|
||||
[for thread_tab]
|
||||
<tr>
|
||||
<td><a href="[doc_base_url][dir][thread_tab_url]">[thread_tab_subject]</a></td>
|
||||
<td class="smallfont">[thread_tab_author]</td><td class="smallfont">[thread_tab_answers]</td>
|
||||
<td class="smallfont">[thread_tab_last_item_date_modification_nice] ([thread_tab_last_item_user])</td>
|
||||
</tr>
|
||||
[end]
|
||||
</table>
|
||||
[end]
|
||||
|
||||
|
||||
|
||||
|
||||
[if-one thread_is]
|
||||
[if-one dir_can_use_emacs]
|
||||
<ul class="itemmenu">
|
||||
<li><a href="[doc_base_url][dir]emacs">{thread_reply_in_this_thread}</a></li>
|
||||
</ul>
|
||||
[end]
|
||||
|
||||
[for item_tab]
|
||||
<div class="threadbox[if-index item_tab odd] threadboxcolor[end]">
|
||||
[if-one item_tab_can_use_emacs]<a class="threadedit" href="[item_tab_link]/emacs">\[{edit}\]</a>[end]
|
||||
[if mount_thread_arg_is "subject"]<h2[if mount_thread_arg_is "info"] class="withinfo"[end]>[item_tab_subject]</h2>[end]
|
||||
[if mount_thread_arg_is "info"][include "item_tab_info.html"][end]
|
||||
[item_tab_print_content]
|
||||
</div>
|
||||
[end]
|
||||
|
||||
<div class="threadbox">
|
||||
[if item_can_write]<a class="threadedit" href="[item_link]/emacs">\[{edit}\]</a>[end]
|
||||
[if mount_thread_arg_is "subject"]<h2[if mount_thread_arg_is "info"] class="withinfo"[end]>[item_subject]</h2>[end]
|
||||
[if mount_thread_arg_is "info"][include "item_info.html"][end]
|
||||
[item_print_content]
|
||||
</div>
|
||||
|
||||
|
||||
[for thread_sort_tab]
|
||||
<div class="threadbox[if-index even] threadboxcolor[end]">
|
||||
[if thread_sort_tab_can_write]<a class="threadedit" href="[thread_sort_tab_link]/emacs">\[{edit}\]</a>[end]
|
||||
[if mount_thread_arg_is "subject"]<h2[if mount_thread_arg_is "info"] class="withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
|
||||
[if mount_thread_arg_is "info"][include "thread_sort_tab_info.html"][end]
|
||||
[thread_sort_tab_print_content]
|
||||
</div>
|
||||
[end]
|
||||
|
||||
|
||||
|
||||
@@ -35,18 +35,22 @@
|
||||
[item_print_content]
|
||||
</div>
|
||||
|
||||
[if-one dir_can_use_emacs]
|
||||
|
||||
[if thread_can_reply]
|
||||
<ul class="itemmenu">
|
||||
<li><a href="[doc_base_url][dir]emacs">{ticket_reply_in_this_thread}</a></li>
|
||||
<li><a href="[doc_base_url][dir][item_url]/reply">{thread_reply_in_this_thread}</a></li>
|
||||
</ul>
|
||||
[end]
|
||||
|
||||
[for item_tab]
|
||||
<div class="threadbox[if-index item_tab odd] threadboxcolor[end]">
|
||||
[if mount_thread_arg_is "subject"]<h2[if mount_thread_arg_is "info"] class="withinfo"[end]>[item_tab_subject]</h2>[end]
|
||||
[if mount_thread_arg_is "info"][include "item_tab_info.html"][end]
|
||||
[item_tab_print_content]
|
||||
|
||||
[for thread_sort_tab]
|
||||
<div class="threadbox[if-index even] threadboxcolor[end]">
|
||||
[if thread_sort_tab_can_write]<a class="threadedit" href="[thread_sort_tab_link]/emacs">\[{edit}\]</a>[end]
|
||||
[if mount_thread_arg_is "subject"]<h2[if mount_thread_arg_is "info"] class="withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
|
||||
[if mount_thread_arg_is "info"][include "thread_sort_tab_info.html"][end]
|
||||
[thread_sort_tab_print_content]
|
||||
</div>
|
||||
[end]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<p class="[if-index item_tab odd]itemtabinfo[else][if mount_thread_arg_is "subject"]itemtabinfo[else]itemtabinfo2[end][end]">
|
||||
<p class="[if-index odd]itemtabinfo[else][if mount_thread_arg_is "subject"]itemtabinfo[else]itemtabinfo2[end][end]">
|
||||
|
||||
{added_by}: [item_tab_user], [item_tab_date_creation_nice][if-no item_tab_dates_equal],
|
||||
{last_modified}[if-one item_tab_users_different] {by}: [item_tab_modification_user],[else]:[end]
|
||||
|
||||
8
html/thread_sort_tab_info.html
Executable file
8
html/thread_sort_tab_info.html
Executable file
@@ -0,0 +1,8 @@
|
||||
<p class="[if-index odd]itemtabinfo[else][if mount_thread_arg_is "subject"]itemtabinfo[else]itemtabinfo2[end][end]">
|
||||
|
||||
{added_by}: [thread_sort_tab_user], [thread_sort_tab_date_creation_nice][if-no thread_sort_tab_dates_equal],
|
||||
{last_modified}[if thread_sort_tab_users_different] {by}: [thread_sort_tab_modification_user],[else]:[end]
|
||||
[thread_sort_tab_date_modification_nice]
|
||||
[end]
|
||||
|
||||
</p>
|
||||
Reference in New Issue
Block a user