[Rt-commit] [svn] r1301 - in rtfm/branches/2.1-TESTING/html/RTFM: . Article/Elements Elements

alexmv at pallas.eruditorum.org alexmv at pallas.eruditorum.org
Tue Aug 3 12:52:06 EDT 2004


Author: alexmv
Date: Tue Aug  3 12:52:06 2004
New Revision: 1301

Added:
   rtfm/branches/2.1-TESTING/html/RTFM/Elements/ShowTopic
Modified:
   rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowSearchResults
   rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowTopics
   rtfm/branches/2.1-TESTING/html/RTFM/Topics.html
Log:
 * Add and move ShowTopic


Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowSearchResults
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowSearchResults	(original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowSearchResults	Tue Aug  3 12:52:06 2004
@@ -69,7 +69,7 @@
 ><TD COLSPAN="4"><small>
 % my $Topics = $article->Topics;
 % while (my $t = $Topics->Next) {
-<& /RTFM/Article/Elements/ShowTopic, topic => $t->TopicObj &><br />
+<& /RTFM/Elements/ShowTopic, topic => $t->TopicObj &><br />
 % }
 </small></TD>
 </TR>

Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowTopics
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowTopics	(original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/Elements/ShowTopics	Tue Aug  3 12:52:06 2004
@@ -23,7 +23,7 @@
 <ul>
 % my @topics;
 % while (my $t = $topics->Next) {
-<li><& ShowTopic, topic => $t->TopicObj &></li>
+<li><& /RTFM/Elements/ShowTopic, topic => $t->TopicObj &></li>
 % }
 </ul>
 % } else {

Added: rtfm/branches/2.1-TESTING/html/RTFM/Elements/ShowTopic
==============================================================================
--- (empty file)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Elements/ShowTopic	Tue Aug  3 12:52:06 2004
@@ -0,0 +1,33 @@
+%# BEGIN LICENSE BLOCK
+%# 
+%#  Copyright (c) 2002-2003 Jesse Vincent <jesse at bestpractical.com>
+%#  
+%#  This program is free software; you can redistribute it and/or modify
+%#  it under the terms of version 2 of the GNU General Public License 
+%#  as published by the Free Software Foundation.
+%# 
+%#  A copy of that license should have arrived with this
+%#  software, but in any event can be snarfed from www.gnu.org.
+%# 
+%#  This program is distributed in the hope that it will be useful,
+%#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+%#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+%#  GNU General Public License for more details.
+%# 
+%# END LICENSE BLOCK
+
+% for (@path) {
+<% $_->ParentObj->Id ? " > " : "" %><a href="<% $RT::WebPath %>/RTFM/Topics.html?class=<% $_->ObjectId %>&id=<% $_->Id %>"><% $_->Name %></a>
+% }
+
+<%args>
+$topic
+</%args>
+
+<%init>
+my @path;
+while ($topic->Id) {
+    unshift @path, $topic;
+    $topic = $topic->ParentObj;
+}
+</%init>
\ No newline at end of file

Modified: rtfm/branches/2.1-TESTING/html/RTFM/Topics.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Topics.html	(original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Topics.html	Tue Aug  3 12:52:06 2004
@@ -27,7 +27,7 @@
 % if ($id != 0) {
 % my $t = RT::FM::Topic->new($session{'CurrentUser'});
 % $t->Load($id);
-&gt; <& /RTFM/Article/Elements/ShowTopic, topic => $t &>
+&gt; <& /RTFM/Elements/ShowTopic, topic => $t &>
 % }
 <br />
 


More information about the Rt-commit mailing list