[Cpan-forum-commit] rev 59 - in trunk: templates www
svn at pti.co.il
svn at pti.co.il
Wed Feb 2 14:33:01 IST 2005
Author: gabor
Date: 2005-02-02 14:33:01 +0200 (Wed, 02 Feb 2005)
New Revision: 59
Added:
trunk/templates/message_in_thread.tmpl
Modified:
trunk/templates/message.tmpl
trunk/templates/threads.tmpl
trunk/www/style.css
Log:
put the message template of the threaded messages in a spearate file
Modified: trunk/templates/message.tmpl
===================================================================
--- trunk/templates/message.tmpl 2005-02-02 12:25:41 UTC (rev 58)
+++ trunk/templates/message.tmpl 2005-02-02 12:33:01 UTC (rev 59)
@@ -1,3 +1,4 @@
+
<table class="message">
<tr class="message_row_head"><td>
Posted on <span class="date"><TMPL_VAR date></span>
Added: trunk/templates/message_in_thread.tmpl
===================================================================
--- trunk/templates/message_in_thread.tmpl 2005-02-02 12:25:41 UTC (rev 58)
+++ trunk/templates/message_in_thread.tmpl 2005-02-02 12:33:01 UTC (rev 59)
@@ -0,0 +1,30 @@
+<a name="<TMPL_VAR id>">
+<table class="message">
+<tr class="message_row_head"><td>
+ Posted on <span class="date"><TMPL_VAR date></span>
+ by <span class="username"><a href="/users/<TMPL_VAR postername>"><TMPL_VAR postername></a></span>
+ <TMPL_IF parentid>
+ <span class="inresponse">in response to <a href="#<TMPL_VAR parentid>"><TMPL_VAR parentid></a></div>
+
+
+
+ </TMPL_IF>
+</td></tr>
+<tr class="message_row_subject"><td><TMPL_VAR subject></span></td></tr>
+<tr class="message_row_text"><td>
+ <TMPL_VAR text>
+</td></tr>
+<tr class="message_row_foot"><td>
+<TMPL_IF responses>
+ Direct Responses:
+ <TMPL_LOOP responses>
+ <a href="#<TMPL_VAR id>"><TMPL_VAR id></a> |
+ </TMPL_LOOP>
+</TMPL_IF>
+ <TMPL_UNLESS editor>
+ <a href="/response_form/<TMPL_VAR id>">Write a response</a>
+ </TMPL_UNLESS>
+</td></tr>
+</table>
+
+
Modified: trunk/templates/threads.tmpl
===================================================================
--- trunk/templates/threads.tmpl 2005-02-02 12:25:41 UTC (rev 58)
+++ trunk/templates/threads.tmpl 2005-02-02 12:33:01 UTC (rev 59)
@@ -8,26 +8,7 @@
<TMPL_LOOP posts>
<tr class="<TMPL_IF NAME="__odd__">threads_odd<TMPL_ELSE>threads_even</TMPL_IF>">
<td>
-<a name="<TMPL_VAR id>">
- <TMPL_IF parentid>
- In response to <a href="#<TMPL_VAR parentid>"><TMPL_VAR parentid></a>
- </TMPL_IF>
-
- Posted on <span class="date"><TMPL_VAR date></span> by <a href="/users/<TMPL_VAR postername>"><TMPL_VAR postername></a>
-
- <div class="subject"><TMPL_VAR subject></div>
-
- <div class="text"><TMPL_VAR text></div>
-
-
- <TMPL_IF responses>
- Direct Responses:
- <TMPL_LOOP responses>
- <a href="#<TMPL_VAR id>"><TMPL_VAR id></a>
- </TMPL_LOOP>
- <br />
- </TMPL_IF>
- <a href="/response_form/<TMPL_VAR id>">Write a response</a>.
+ <TMPL_INCLUDE NAME="message_in_thread.tmpl">
</td></tr>
</TMPL_LOOP>
</table>
Modified: trunk/www/style.css
===================================================================
--- trunk/www/style.css 2005-02-02 12:25:41 UTC (rev 58)
+++ trunk/www/style.css 2005-02-02 12:33:01 UTC (rev 59)
@@ -103,18 +103,18 @@
vertical-align: baseline;
}
+/*
.threads_odd TD {
background: #dddddd;
border-style: solid;
border-width: 2px;
- border-color: yellow;
}
.threads_even TD {
border-style: solid;
border-width: 2px;
- border-color: yellow;
}
+*/
TD {
margin: 0;
More information about the Cpan-forum-commit
mailing list