Update of /cvsroot/openinteract/OpenInteract2/pkg/comments/template
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4250/template
Modified Files:
comment_list.tmpl comment_form_page.tmpl comment_form.tmpl
comment_detail.tmpl comment.tmpl
Log Message:
update comment templates for better CSS use
Index: comment_list.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/template/comment_list.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** comment_list.tmpl 28 Nov 2004 05:58:25 -0000 1.3
--- comment_list.tmpl 21 Sep 2005 03:37:05 -0000 1.4
***************
*** 11,14 ****
--- 11,15 ----
[% END -%]
+ [% IF comments.size > 0 %]
[% FOREACH comment = comments -%]
***************
*** 16,18 ****
--- 17,23 ----
[% END -%]
+ [% ELSE %]
+ <p>[% MSG( 'comments.no_comments' ) %]</p>
+ [% END %]
+
[% OI.action_execute( 'new_comment_form', object = object ) %]
\ No newline at end of file
Index: comment_form_page.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/template/comment_form_page.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** comment_form_page.tmpl 17 May 2004 14:21:53 -0000 1.3
--- comment_form_page.tmpl 21 Sep 2005 03:37:05 -0000 1.4
***************
*** 2,5 ****
--- 2,7 ----
obj_info = object.object_description;
END -%]
+ <div class="demarcatePage">
+
<h2>[% MSG( 'comments.form_page.title' ) %]</h2>
***************
*** 17,19 ****
[% END %]
! [% PROCESS comments::comment_form %]
\ No newline at end of file
--- 19,23 ----
[% END %]
! [% PROCESS comments::comment_form %]
!
! </div>
\ No newline at end of file
Index: comment_form.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/template/comment_form.tmpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** comment_form.tmpl 4 Mar 2005 15:22:12 -0000 1.5
--- comment_form.tmpl 21 Sep 2005 03:37:05 -0000 1.6
***************
*** 1,5 ****
[%- DEFAULT theme = OI.theme_properties;
PROCESS error_message -%]
-
[% IF is_disabled %]
--- 1,4 ----
***************
*** 57,65 ****
<tr [% PROCESS row_color %] align="center">
<td colspan="2">
! [% INCLUDE form_textarea( name = 'content',
! value = comment.content,
! rows = 8,
! cols = 50,
! wrap = 'virtual' ) -%]
</td>
</tr>
--- 56,64 ----
<tr [% PROCESS row_color %] align="center">
<td colspan="2">
! [% INCLUDE form_textarea( name = 'content',
! value = comment.content,
! rows = 8,
! cols = 50,
! wrap = 'virtual' ) -%]
</td>
</tr>
***************
*** 118,120 ****
</div>
! [% END %]
\ No newline at end of file
--- 117,119 ----
</div>
! [% END %]
Index: comment_detail.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/template/comment_detail.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** comment_detail.tmpl 17 May 2004 14:21:53 -0000 1.3
--- comment_detail.tmpl 21 Sep 2005 03:37:05 -0000 1.4
***************
*** 1,4 ****
--- 1,6 ----
[% PROCESS error_message %]
+ <div class="demarcatePage">
+
<h1>[% MSG( 'comments.detail.title' ) %]</h1>
***************
*** 9,20 ****
[%- summary = comment.get_summary -%]
<p class="commentObject">
! [%- object_title = PROCESS comments::comment_object( url = summary.object_url
! title = summary.object_title ) -%]
! [%- MSG( 'comments.info.object', object_title ) -%]
</p>
[% ELSE -%]
! <p>[% MSG( 'comments.no_comment' ) %]</p>
! [% END -%]
\ No newline at end of file
--- 11,26 ----
[%- summary = comment.get_summary -%]
<p class="commentObject">
! [%- object_title = PROCESS comments::comment_object(
! url = summary.object_url
! title = summary.object_title
! );
! MSG( 'comments.info.object', object_title ); -%]
</p>
[% ELSE -%]
! <p class="commentNone">[% MSG( 'comments.no_comment' ) %]</p>
! [% END -%]
!
! </div>
\ No newline at end of file
Index: comment.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/template/comment.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** comment.tmpl 16 Feb 2004 16:19:49 -0000 1.2
--- comment.tmpl 21 Sep 2005 03:37:05 -0000 1.3
***************
*** 1,3 ****
! <p><span class="commentSubject">[% comment.subject %]</span><br>
<div class="commentContent">
[% IF override_content %][% override_content -%]
--- 1,6 ----
! <div class="commentItem">
!
! <h3 class="commentSubject">[% comment.subject %]</h3>
!
<div class="commentContent">
[% IF override_content %][% override_content -%]
***************
*** 11,12 ****
--- 14,17 ----
OI.date_format( comment.posted_on, '%B %d, %Y %l:%M %p' ) ) %]
</p>
+
+ </div>
\ No newline at end of file
|