Changeset 44
- Timestamp:
- 02/14/06 13:45:35 (3 years ago)
- Files:
-
- trunk/agree.pl (modified) (1 diff)
- trunk/doc-markup-samples/debug.html (modified) (1 diff)
- trunk/doc-markup-samples/gplv3-debug-compat.html (modified) (2 diffs)
- trunk/doc-markup-samples/gplv3-draft-1.html (modified) (2 diffs)
- trunk/doc-markup-samples/gplv3-draft-1.xml (modified) (1 diff)
- trunk/doc-markup-samples/gplv3-idra.html (modified) (2 diffs)
- trunk/rtNoAuth/agree.html (added)
- trunk/rtNoAuth/autogen2.html (added)
- trunk/rtNoAuth/changeshown-devel.html (modified) (2 diffs)
- trunk/rtNoAuth/changeshown.html (modified) (2 diffs)
- trunk/rtNoAuth/query.html (added)
- trunk/rtNoAuth/readsay.html (modified) (8 diffs)
- trunk/rtNoAuth/submitcomment.html (modified) (6 diffs)
- trunk/rtNoAuth/xmlresults-compat.html (modified) (7 diffs)
- trunk/rtNoAuth/xmlresults-devel.html (modified) (6 diffs)
- trunk/rtNoAuth/xmlresults.html (modified) (9 diffs)
- trunk/rtNoAuth/xmlresultsnew.html (modified) (5 diffs)
- trunk/selectxpath.xsl (modified) (2 diffs)
- trunk/stet.css (modified) (4 diffs)
- trunk/stet.js (modified) (14 diffs)
- trunk/stetsubs.pl (modified) (1 diff)
- trunk/various-experiments/debugcompatspan.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/agree.pl
r38 r44 39 39 use MIME::Entity; 40 40 use MIME::Base64; 41 41 print STDERR "entering agree.pl\n"; 42 42 $id = param('rtid'); 43 43 $opn = param('opn'); 44 44 45 do "xmlpass.pl"; 46 45 require "/var/www/stet/xmlpass.pl"; 46 my ($username,$password) = userpass(); 47 print STDERR "$username $password\n"; 47 48 if (($name, $pass) = split(/:/, decode_base64(cookie('__ac')))) { 48 49 $name =~ s/\"//g; 49 $server = Frontier::Client->new(url => 'http://cs_auth:eeSahp1n@gplv3.fsf.org:8800/launch/acl_users/Users/acl_users',50 $server = Frontier::Client->new(url => "http://$username:$password@gplv3.fsf.org:8800/launch/acl_users/Users/acl_users", 50 51 username => $username, 51 52 password => $password); trunk/doc-markup-samples/debug.html
r38 r44 3 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <title>GNU GENERAL PUBLIC LICENSE</title> 5 <script type="text/javascript" src="stet-d rafter.js"></script><script type="text/javascript" language="javascript">5 <script type="text/javascript" src="stet-devel.js"></script><script type="text/javascript" language="javascript"> 6 6 window.onload = initPage(); 7 7 </script><link rel="stylesheet" type="text/css" href="stet.css"> trunk/doc-markup-samples/gplv3-debug-compat.html
r42 r44 1 <!DOCTYPE xhtml 2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 4 <html> 2 5 <head> 3 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 7 <title>GNU GENERAL PUBLIC LICENSE</title> 5 <script type="text/javascript" src="stet .js"></script><script type="text/javascript" language="javascript">8 <script type="text/javascript" src="stet-compat.js"></script><script type="text/javascript" language="javascript"> 6 9 window.onload = initPage(); 7 10 </script><link rel="stylesheet" type="text/css" href="stet.css"> … … 9 12 <body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF"> 10 13 <div id="topbar" class="topbar"> 11 <span id="statustext" class="statustext">Loading comments. If you're still reading this after about 15 seconds, we do not completely support your browser yet. You may need to <a href="/comments/email.html">email your comments</a> instead, or try another recent Gecko-based browser. But you can <a href="http://gplv3.fsf.org/comments/rt/readsay.html?Query=%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC">browse</a> and <a href="http://gplv3.fsf.org/comments/rt/changeshown.html?came_from=rt/readsay.html">search</a> commentson any browser.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span>14 <span id="statustext" class="statustext">Loading comments. If you're still reading this, it's a strong indication that we do not properly support your browser yet. You may need to <a href="/comments/email.html">email your comments</a> instead, or try another recent Gecko-based browser. You can, however, <a href="http://gplv3.fsf.org/comments/rt/readsay.html?Query=%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC">browse comments</a> on any browser.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span> 12 15 </div> 13 16 <div class="portlet" id="portlet-dogear"><div class="portletBody"><img alt="" src="http://gplv3.fsf.org/dogear.png"></div></div> trunk/doc-markup-samples/gplv3-draft-1.html
r38 r44 1 <!DOCTYPE html 2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 4 <html> 2 5 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 4 7 <title>GNU GENERAL PUBLIC LICENSE</title> 5 8 <script type="text/javascript" src="stet.js"></script><script type="text/javascript" language="javascript"> 6 9 window.onload = initPage(); 7 </script><link rel="stylesheet" type="text/css" href="stet.css" >10 </script><link rel="stylesheet" type="text/css" href="stet.css"/> 8 11 </head> 9 12 <body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF"> … … 11 14 <span id="statustext" class="statustext">Loading comments. If you're still reading this after about 15 seconds, we do not completely support your browser yet. You may need to <a href="/comments/email.html">email your comments</a> instead, or try another recent Gecko-based browser. But you can <a href="http://gplv3.fsf.org/comments/rt/readsay.html?Query=%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC">browse</a> and <a href="http://gplv3.fsf.org/comments/rt/changeshown.html?came_from=rt/readsay.html">search</a> comments on any browser.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span> 12 15 </div> 13 <div class="portlet" id="portlet-dogear"><div class="portletBody"><img alt="" src="http://gplv3.fsf.org/dogear.png" ></div></div>16 <div class="portlet" id="portlet-dogear"><div class="portletBody"><img alt="" src="http://gplv3.fsf.org/dogear.png"/></div></div> 14 17 <h1 id="portal-logo"><a href="http://gplv3.fsf.org" accesskey="1">GPLv3</a></h1> 15 18 <ul id="portal-globalnav"> trunk/doc-markup-samples/gplv3-draft-1.xml
r20 r44 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <?xml-stylesheet href="selectxpath.xsl" type="text/xsl" ?> 3 <!DOCTYPE gpl SYSTEM " gpl3.dtd">3 <!DOCTYPE gpl SYSTEM "http://gplv3.fsf.org/comments/gpl3.dtd"> 4 4 <!-- $Id$ --> 5 5 <gpl> trunk/doc-markup-samples/gplv3-idra.html
r43 r44 3 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <title>GNU GENERAL PUBLIC LICENSE</title> 5 <script type="text/javascript" src="stet .js"></script><script type="text/javascript" language="javascript">5 <script type="text/javascript" src="stet-idra.js"></script><script type="text/javascript" language="javascript"> 6 6 window.onload = initPage(); 7 7 </script><link rel="stylesheet" type="text/css" href="stet.css"> … … 9 9 <body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF"> 10 10 <div id="topbar" class="topbar"> 11 <span id="statustext" class="statustext"> Loading comments. If you're still reading this after about 15 seconds, we do not completely support your browser yet. You may need to <a href="/comments/email.html">email your comments</a> instead, or try another recent Gecko-based browser. But you can <a href="http://gplv3.fsf.org/comments/rt/readsay.html?Query=%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC">browse</a> and <a href="http://gplv3.fsf.org/comments/rt/changeshown.html?came_from=rt/readsay.html">search</a> comments on any browser.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span>11 <span id="statustext" class="statustext">This is a debug page for the Firefox bug. You could <a href="/comments/email.html">email your comments</a>, or <a href="http://gplv3.fsf.org/comments/rt/readsay.html?Query=%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC">browse comments</a>.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span> 12 12 </div> 13 13 <div class="portlet" id="portlet-dogear"><div class="portletBody"><img alt="" src="http://gplv3.fsf.org/dogear.png"></div></div> trunk/rtNoAuth/changeshown-devel.html
r38 r44 1 %# {{{ BEGIN BPS TAGGED BLOCK 2 %# 3 %# Copyright (C) 2006 Software Freedom Law Center, Inc. 4 %# Modified-By: Orion Montoya <orion@mdcclv.com> 5 %# 6 %# This software gives you freedom; it is licensed to you under version 7 %# 3 of the GNU Affero General Public License, along with the 8 %# additional permission in the following paragraph. 9 %# 10 %# This notice constitutes a grant of such permission as is necessary 11 %# to combine or link this software, or a modified version of it, with 12 %# Request Tracker (RT), published by Jesse Vincent and Best Practical 13 %# Solutions, LLC, or a derivative work of RT, and to copy, modify, and 14 %# distribute the resulting work. RT is licensed under version 2 of 15 %# the GNU General Public License. 16 %# 17 %# This software is distributed WITHOUT ANY WARRANTY, without even the 18 %# implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR 19 %# PURPOSE. See the GNU Affero General Public License for further 20 %# details. 21 %# 22 %# You should have received a copy of the GNU Affero General Public 23 %# License, version 3, and the GNU General Public License, version 2, 24 %# along with this software. If not, see <http://www.gnu.org/licenses/>. 25 %# 26 %# COPYRIGHT: 27 %# 28 %# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 29 %# <jesse@bestpractical.com> 30 %# 31 %# (Except where explicitly superseded by other copyright notices) 32 %# 33 %# 34 %# LICENSE: 35 %# 36 %# This work is made available to you under the terms of Version 2 of 37 %# the GNU General Public License. A copy of that license should have 38 %# been provided with this software, but in any event can be snarfed 39 %# from www.gnu.org. 40 %# 41 %# This work is distributed in the hope that it will be useful, but 42 %# WITHOUT ANY WARRANTY; without even the implied warranty of 43 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 44 %# General Public License for more details. 45 %# 46 %# You should have received a copy of the GNU General Public License 47 %# along with this program; if not, write to the Free Software 48 %# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 49 %# 50 %# 51 %# }}} END BPS TAGGED BLOCK 52 % 1 <!-- Copyright (C) 2006 Software Freedom Law Center, Inc. 2 -- Author: Orion Montoya <orion@mdcclv.com> 3 -- 4 -- This software gives you freedom; it is licensed to you under version 5 -- 3 of the GNU Affero General Public License, along with the 6 -- additional permission in the following paragraph. 7 -- 8 -- This notice constitutes a grant of such permission as is necessary 9 -- to combine or link this software, or a modified version of it, with 10 -- Request Tracker (RT), published by Jesse Vincent and Best Practical 11 -- Solutions, LLC, or a derivative work of RT, and to copy, modify, and 12 -- distribute the resulting work. RT is licensed under version 2 of 13 -- the GNU General Public License. 14 -- 15 -- This software is distributed WITHOUT ANY WARRANTY, without even the 16 -- implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR 17 -- PURPOSE. See the GNU Affero General Public License for further 18 -- details. 19 -- 20 -- You should have received a copy of the GNU Affero General Public 21 -- License, version 3, and the GNU General Public License, version 2, 22 -- along with this software. If not, see <http://www.gnu.org/licenses/>. 23 --> 53 24 <html> 54 25 <head> … … 1058 1029 $RowsPerPage => 30 1059 1030 $HideResults => 0 1060 $came_from => 'http://gplv3.fsf.org/comments/ debug'1031 $came_from => 'http://gplv3.fsf.org/comments/gplv3-draft-1' 1061 1032 $Delete => 1 1062 1033 $NewQuery => 1 trunk/rtNoAuth/changeshown.html
r38 r44 1 %# {{{ BEGIN BPS TAGGED BLOCK 2 %# 3 %# Copyright (C) 2006 Software Freedom Law Center, Inc. 4 %# Modified-By: Orion Montoya <orion@mdcclv.com> 5 %# 6 %# This software gives you freedom; it is licensed to you under version 7 %# 3 of the GNU Affero General Public License, along with the 8 %# additional permission in the following paragraph. 9 %# 10 %# This notice constitutes a grant of such permission as is necessary 11 %# to combine or link this software, or a modified version of it, with 12 %# Request Tracker (RT), published by Jesse Vincent and Best Practical 13 %# Solutions, LLC, or a derivative work of RT, and to copy, modify, and 14 %# distribute the resulting work. RT is licensed under version 2 of 15 %# the GNU General Public License. 16 %# 17 %# This software is distributed WITHOUT ANY WARRANTY, without even the 18 %# implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR 19 %# PURPOSE. See the GNU Affero General Public License for further 20 %# details. 21 %# 22 %# You should have received a copy of the GNU Affero General Public 23 %# License, version 3, and the GNU General Public License, version 2, 24 %# along with this software. If not, see <http://www.gnu.org/licenses/>. 25 %# 26 %# COPYRIGHT: 27 %# 28 %# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 29 %# <jesse@bestpractical.com> 30 %# 31 %# (Except where explicitly superseded by other copyright notices) 32 %# 33 %# 34 %# LICENSE: 35 %# 36 %# This work is made available to you under the terms of Version 2 of 37 %# the GNU General Public License. A copy of that license should have 38 %# been provided with this software, but in any event can be snarfed 39 %# from www.gnu.org. 40 %# 41 %# This work is distributed in the hope that it will be useful, but 42 %# WITHOUT ANY WARRANTY; without even the implied warranty of 43 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 44 %# General Public License for more details. 45 %# 46 %# You should have received a copy of the GNU General Public License 47 %# along with this program; if not, write to the Free Software 48 %# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 49 %# 50 %# 51 %# }}} END BPS TAGGED BLOCK 52 % 1 <!-- Copyright (C) 2006 Software Freedom Law Center, Inc. 2 -- Author: Orion Montoya <orion@mdcclv.com> 3 -- 4 -- This software gives you freedom; it is licensed to you under version 5 -- 3 of the GNU Affero General Public License, along with the 6 -- additional permission in the following paragraph. 7 -- 8 -- This notice constitutes a grant of such permission as is necessary 9 -- to combine or link this software, or a modified version of it, with 10 -- Request Tracker (RT), published by Jesse Vincent and Best Practical 11 -- Solutions, LLC, or a derivative work of RT, and to copy, modify, and 12 -- distribute the resulting work. RT is licensed under version 2 of 13 -- the GNU General Public License. 14 -- 15 -- This software is distributed WITHOUT ANY WARRANTY, without even the 16 -- implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR 17 -- PURPOSE. See the GNU Affero General Public License for further 18 -- details. 19 -- 20 -- You should have received a copy of the GNU Affero General Public 21 -- License, version 3, and the GNU General Public License, version 2, 22 -- along with this software. If not, see <http://www.gnu.org/licenses/>. 23 --> 53 24 <html> 54 25 <head> … … 1058 1029 $RowsPerPage => 30 1059 1030 $HideResults => 0 1060 $came_from => 'http://gplv3.fsf.org/comments/gplv3-draft-1 .xml'1031 $came_from => 'http://gplv3.fsf.org/comments/gplv3-draft-1' 1061 1032 $Delete => 1 1062 1033 $NewQuery => 1 trunk/rtNoAuth/readsay.html
r38 r44 65 65 </span><span id="login" class="login">you could <a href="http://gplv3.fsf.org/login_form?came_from=/comments/rt/readsay.html?<% $Tickets ? 'Query='.$ARGS{'Query'} : 'id='.$ARGS{'id'} %>">login</a></span></div> 66 66 % } 67 <& header -devel.html, name => $name &>67 <& header.html, name => $name &> 68 68 <div id="readsaymain"> 69 69 <span id="listactions"> … … 87 87 % my $showactions = shift; 88 88 % my $deletelink = shift; 89 <div class="onecomment"> 90 <h4><% thingType(\$item) %> <a href="readsay.html?id=<% $item->id %>"><% $item->id %>: <% $item->Subject %></a> 89 % if (!$deletelink) { 90 % if ($resp == 1) { 91 <form action="readsay.html" method="POST" name="TicketUpdate" enctype="multipart/form-data"> 92 <input type="hidden" name="id" value="<% $item->id %>"> 93 % } 94 % } 95 96 % if ($item->QueueObj->CurrentUserHasRight('SeeQueue')) { 97 <div class="onecomment<% ($item->QueueObj->Name =~ /Drafter/) && " Drafter" %>"> 98 <h4><% ($item->QueueObj->Name =~ /Drafter/) && " Drafter's " %><% thingType(\$item) %> <a href="readsay.html?id=<% $item->id %>"><% $item->id %>: <% $item->Subject %></a> 91 99 % if (($HasIssueRights) && ($showactions) && ($deletelink)) { 92 100 <span class="TktInput">[dissociate: <INPUT TYPE=CHECKBOX NAME="<% $deletelink %>" value="1">]</span> … … 125 133 % my $child = RT::Ticket->new($CurrentUser); 126 134 % $child->Load($link->BaseURI->Object->id); 127 % my $deletelink = "DeleteLink-". $link->Base ."-". $link->Type ;135 % my $deletelink = "DeleteLink-". $link->Base ."-". $link->Type."-"; 128 136 <% displayTicket(\$child,$showactions,$deletelink) %> 129 137 % } 130 138 <br/> 131 139 % if (($HasIssueRights) && ($showactions) && (!$deletelink)) { 132 140 <br/> … … 135 143 % } 136 144 % if (($showactions) & (!$deletelink)){ 137 % if ($resp == 1) { 138 <form action="readsay.html" method="POST" name="TicketUpdate" enctype="multipart/form-data"> 139 <input type="hidden" name="id" value="<% $item->id %>"> 140 % } 141 145 <br/> 142 146 % if ($HasIssueRights) { 143 <span class="TktLabel">Parents:</span> 147 <span class="TktLabel">Parents:</span><br/> 144 148 <span class="TktInput indent">add new: <INPUT NAME="<% $item->id %>-MemberOf"> <span class="inputcaption">[comment id numbers, space separated]</span></span> 145 149 % } … … 153 157 <A HREF="<% $link->Target %>"><% $link->Target %></A> 154 158 % if ($HasIssueRights) { 155 <span class="TktInput">[delete: <INPUT TYPE=CHECKBOX NAME="DeleteLink- <% $link->Base %>-<% $link->Type %>" value="1">]</span>159 <span class="TktInput">[delete: <INPUT TYPE=CHECKBOX NAME="DeleteLink--<% $link->Base %>-<% $link->Type %>" value="1">]</span> 156 160 % } 157 161 <br/> … … 224 228 % } 225 229 % } # should close "if $resp == 1" after picker 226 % } 230 % } 227 231 </div> 232 % } 233 % else { 234 <div class="onecomment formHelpIsh">You do not have permission to view comment number <% $item->id %><br/> <br/></div> 235 236 % } 228 237 % return ''; 229 238 % } … … 295 304 my $item = $$itemref; 296 305 if ($item->Queue == 5) { 297 return " issue";306 return "Issue"; 298 307 } 299 308 else { 300 return " comment";309 return "Comment"; 301 310 } 302 311 } … … 344 353 } 345 354 else { 346 unless (($Transaction->CreatorObj->Name =~ "RT_System") || ($Transaction->BriefDescription =~ "NoteText|NoteSelection|NodeId ")) {355 unless (($Transaction->CreatorObj->Name =~ "RT_System") || ($Transaction->BriefDescription =~ "NoteText|NoteSelection|NodeId|Agreeer")) { 347 356 348 357 $allcomments .= "<div class=\"formHelpIsh\">".$Transaction->BriefDescription." by ".userlink(\$item,\$Transaction)." <span class=\"date\">on ".doDate(\$Transaction)."</span></div>\n"; trunk/rtNoAuth/submitcomment.html
r38 r44 1 %#2 1 %# Copyright (C) 2005, 2006 Software Freedom Law Center, Inc. 3 2 %# Author: Orion Montoya <orion@mdcclv.com> … … 41 40 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 42 41 <response> 42 <d><% $drafter %></d> 43 43 <cs>Your comment <em><% $scrubber->scrub($notesubj) %></em> was submitted. <a href="/comments/rt/changeshown.html">change query</a></cs> 44 44 <annotation> … … 51 51 <ua>unagree</ua> 52 52 <at>1</at> 53 <qn><% $queue %></qn> 53 54 </annotation> 54 55 </response> … … 69 70 my $scrubber = HTML::Scrubber->new( allow => [ qw[ a b i u br ] ] ); 70 71 71 72 73 72 my ($CurrentUser, $resp, $name) = getUser("x"); 74 my ($dompath, $url, $urlpath, $selectedtext, $notesubj, $start, $startid, $end, $endid, $notetext, $ queue, $realqueue, $id);73 my ($dompath, $url, $urlpath, $selectedtext, $notesubj, $start, $startid, $end, $endid, $notetext, $realqueue, $id, $drafter); 75 74 76 75 if(%ARGS) { … … 95 94 $notetext = URI::Escape::uri_unescape($ARGS{'NoteText'}); 96 95 97 $ARGS{'queue'} ? $queue = $ARGS{'queue'} : $queue = "Inbox"; 98 96 print STDERR "q arg is ".$queue."\n"; 97 # $queue ? $queue = $queue : $queue = "Inbox"; 98 # print STDERR "wq is $queue\n"; 99 99 my $ThisQueue = RT::Queue->new($CurrentUser); 100 100 $ThisQueue->Load($queue); 101 if ($CurrentUser->HasRight( Right => 'CreateTicket', Object => $ThisQueue )) { 101 102 if ($ThisQueue->CurrentUserHasRight('CreateTicket')) { 102 103 $realqueue = $queue; 104 $drafter = $queue; 103 105 } 104 106 else { 105 107 $realqueue = "Inbox"; 106 108 } 107 109 print STDERR "rq is $realqueue\n"; 108 110 109 111 if ($resp == 1) { … … 133 135 $r->content_type('text/xml'); 134 136 </%INIT> 135 137 <%ARGS> 138 $queue => "Inbox" 139 </%ARGS> trunk/rtNoAuth/xmlresults-compat.html
r40 r44 24 24 % 25 25 % 26 % 26 27 <response> 27 28 % if ($Tickets) { 28 %# my $tick = $Tickets->Next; 29 <cs>Showing comments where <% humanQuery($ARGS{'Query'}) |n %> <a class="rsslink" href="<% $rsslink %>">[rss]</a> <a href="<% $listlink %>">[list]</a> ( found <% $Tickets->CountAll()%>, showing <% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %>: 29 <d><% $drafter %></d> 30 <cs> 31 <say>Showing comments </say> 32 <say>Showing comments </say> 33 <q><% humanQuery($ARGS{'Query'}) |n %></q> 34 <r><% $rsslink %></r> 35 <l><% $listlink %></l> 36 <ra>http://gplv3.fsf.org/comments/gplv3-draft-1?Query=%20Creator%20=%20'ratiodoc'%20%20AND%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC&OrderBy=id&StartAt=1&Rows=80</ra> 37 <t><% $Tickets->CountAll()%></t> 38 <rng><% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %></rng> 30 39 % if ($Tickets->CountAll() > $Rows) { 31 40 % if ($StartAt > 1 ) { 32 <a href="/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&Rows=<%$Rows%>&StartAt=<% (($StartAt - $Rows) < 0) ? 1 : ($StartAt - $Rows) |n%>">prev</a>41 <pr>/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&Rows=<%$Rows%>&StartAt=<% (($StartAt - $Rows) < 0) ? 1 : ($StartAt - $Rows) |n%></pr> 33 42 % } 34 % if (($Tickets->CountAll() > $Rows) && ($Tickets->CountAll() > $StartAt + $Rows)) {35 | 43 % if ($Tickets->CountAll() > $StartAt + $Rows) { 44 <nx>/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&Rows=<%$Rows%>&StartAt=<% $StartAt + $Rows %></nx> 36 45 % } 37 % if ($Tickets->CountAll() > $StartAt + $Rows) { 38 <a href="/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&Rows=<%$Rows%>&StartAt=<% $StartAt + $Rows %>">next</a> 39 % } 40 % } 41 %# ) <a href="/comments/rt/changeshown.html?came_from=<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>">change</a> 42 ) <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">change</a> 46 % } 43 47 </cs> 44 %45 48 <%perl> 46 49 $Tickets->GotoFirstItem; … … 52 55 </%perl> 53 56 % } elsif ($Ticket) { 54 <cs>Showing comment <a href="/comments/rt/readsay.html?id=<% $ARGS{'id'} %>"><% $ARGS{'id'} %></a> <a href="<% $listlink %>">[see thread]</a> <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">change</a> </cs> 57 <d><% $drafter %></d> 58 <cs> 59 <say>Showing comment </say> 60 <ci><% $ARGS{'id'} %></ci> 61 <l><% $listlink %></l> 62 </cs> 55 63 % } 56 64 % if ($Ticket || $Tickets) { … … 63 71 <i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 64 72 <u><% $item->CreatorObj->Name %></u> 65 % my ($agree,$agr_count) = showAgree(\$item );73 % my ($agree,$agr_count) = showAgree(\$item,$name); 66 74 <ua><% $agree |n %></ua> 67 75 <at><% $agr_count %></at> 68 76 <id><% $item->id %></id> 77 <qn><% $item->QueueObj->Name %></qn> 69 78 </annotation> 70 79 % $Ticket = ''; … … 76 85 % } 77 86 % else { 78 <cs>No comments found. <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1"> change query</a> </cs>87 <cs>No comments found. <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search again</a> </cs> 79 88 % } 80 89 </response> … … 99 108 100 109 my $rsslink = "/comments/rt/rssresults.rdf?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})); 101 my $listlink = "/comments/rt/readsay.html?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})) ;110 my $listlink = "/comments/rt/readsay.html?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})) . "&Order=DESC"; 102 111 # my $printargs = param('Query')." (".$Tickets->CountAll()." found)"; 103 112 … … 109 118 my ($Tickets, $Ticket); 110 119 120 my $drafter = ''; 121 my $DrafterQueue = RT::Queue->new($CurrentUser); 122 $DrafterQueue->Load('Drafter'); 123 if ($DrafterQueue->CurrentUserHasRight('SeeQueue')) { 124 $drafter = "drafter"; 125 } 126 111 127 if ($ARGS{'Query'}) { 128 my $Qargs = ''; 129 unless ($ARGS{'Query'} =~ /Queue/) { 130 $Qargs = " AND 'Queue.Name' != 'Drafter'"; 131 if ($drafter) { 132 $Qargs = ''; 133 } 134 } 135 112 136 $Tickets = RT::Tickets->new($CurrentUser); 113 $Tickets->FromSQL($ARGS{'Query'}); 137 # exclude, from this view, comments whose selection got messed up: 138 $Tickets->FromSQL($ARGS{'Query'}." AND 'CF.NoteStartNodeId' NOT LIKE 'login' $Qargs"); 114 139 $Tickets->OrderBy( FIELD => 'id', ORDER => $ARGS{'Order'}); 115 140 } 116 141 elsif ($ARGS{'id'}) { 117 142 $Ticket = RT::Ticket->new($CurrentUser); 118 $Ticket = LoadTicket($ARGS{'id'}); 143 print STDERR "loading ticket '".$ARGS{'id'}."'\n"; 144 # konqueror does something weird with the arg, and forcing it to an int fixes it 145 my $argh = $ARGS{'id'} + 0; 146 $Ticket = LoadTicket($argh); 147 print STDERR "loaded ticket '".$Ticket->id."'\n"; 119 148 } 120 149 121 #my $Tickets = RT::Tickets->new($CurrentUser); 122 #$Tickets->FromSQL($ARGS{'Query'}); 150 123 151 124 152 … … 131 159 $StartAt => 1 132 160 $Order => 'DESC' 161 $Query => "'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'"; 133 162 </%ARGS> trunk/rtNoAuth/xmlresults-devel.html
r38 r44 1 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2 %# 2 3 %# Copyright (C) 2006 Software Freedom Law Center, Inc. 3 4 %# Author: Orion Montoya <orion@mdcclv.com> … … 23 24 %# along with this software. If not, see <http://www.gnu.org/licenses/>. 24 25 % 25 %26 %27 26 <response> 28 27 % if ($Tickets) { … … 41 40 % } 42 41 % } 43 ) <a href="/comments/rt/changeshown -devel.html?came_from=debug">search</a>42 ) <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search</a> 44 43 </cs> 45 44 % … … 53 52 </%perl> 54 53 % } elsif ($Ticket) { 55 <cs>Showing comment <a href="/comments/rt/readsay.html?id=<% $ARGS{'id'} %>"><% $ARGS{'id'} %></a> <a href="<% $listlink %>">[see thread]</a> <a href="/comments/rt/changeshown -devel.html?came_from=debug">search</a> </cs>54 <cs>Showing comment <a href="/comments/rt/readsay.html?id=<% $ARGS{'id'} %>"><% $ARGS{'id'} %></a> <a href="<% $listlink %>">[see thread]</a> <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search</a> </cs> 56 55 % } 57 56 % if ($Ticket || $Tickets) { … … 64 63 <i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 65 64 <u><% $item->CreatorObj->Name %></u> 66 % my ($agree,$agr_count) = showAgree(\$item );65 % my ($agree,$agr_count) = showAgree(\$item,$name); 67 66 <ua><% $agree |n %></ua> 68 67 <at><% $agr_count %></at> … … 78 77 % } 79 78 % else { 80 <cs>No comments found. <a href="/comments/rt/changeshown -devel.html?came_from=debug">search again</a> </cs>79 <cs>No comments found. <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search again</a> </cs> 81 80 % } 82 81 </response> trunk/rtNoAuth/xmlresults.html
r14 r44 26 26 <response> 27 27 % if ($Tickets) { 28 %# my $tick = $Tickets->Next; 29 <cs>Showing comments where <% humanQuery($ARGS{'Query'}) |n %> <a class="rsslink" href="<% $rsslink %>">[rss]</a> <a href="<% $listlink %>">[list]</a> ( found <% $Tickets->CountAll()%>, showing <% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %>: 28 <d><% $drafter %></d> 29 <cs>Showing comments: <% humanQuery($ARGS{'Query'}) |n %> <a class="rsslink" href="<% $rsslink %>">[rss]</a> <a href="<% $listlink %>">[list]</a> <a href="http://gplv3.fsf.org/comments/gplv3-draft-1?Query=%20Creator%20=%20'ratiodoc'%20%20AND%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC&OrderBy=id&StartAt=1&Rows=80">[rationale]</a> <br/> 30 ( found <% $Tickets->CountAll()%>, showing <% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %>: 30 31 % if ($Tickets->CountAll() > $Rows) { 31 32 % if ($StartAt > 1 ) { 32 33 <a href="/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&Rows=<%$Rows%>&StartAt=<% (($StartAt - $Rows) < 0) ? 1 : ($StartAt - $Rows) |n%>">prev</a> 33 34 % } 34 % if (($Tickets->CountAll() > $Rows) && ($Tickets->CountAll() >$StartAt + $Rows)) {35 % if (($Tickets->CountAll() > $Rows) && ($Tickets->CountAll() < $StartAt + $Rows)) { 35 36 | 36 37 % } … … 39 40 % } 40 41 % } 41 %# ) <a href="/comments/rt/changeshown.html?came_from=<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>">change</a> 42 ) <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">change</a> 42 ) <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search</a> 43 43 </cs> 44 44 % … … 52 52 </%perl> 53 53 % } elsif ($Ticket) { 54 <cs>Showing comment <a href="/comments/rt/readsay.html?id=<% $ARGS{'id'} %>"><% $ARGS{'id'} %></a> <a href="<% $listlink %>">[see thread]</a> <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1"> change</a> </cs>54 <cs>Showing comment <a href="/comments/rt/readsay.html?id=<% $ARGS{'id'} %>"><% $ARGS{'id'} %></a> <a href="<% $listlink %>">[see thread]</a> <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search</a> </cs> 55 55 % } 56 56 % if ($Ticket || $Tickets) { … … 63 63 <i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 64 64 <u><% $item->CreatorObj->Name %></u> 65 % my ($agree,$agr_count) = showAgree(\$item );65 % my ($agree,$agr_count) = showAgree(\$item,$name); 66 66 <ua><% $agree |n %></ua> 67 67 <at><% $agr_count %></at> 68 68 <id><% $item->id %></id> 69 <qn><% $item->QueueObj->Name %></qn> 69 70 </annotation> 70 71 % $Ticket = ''; … … 76 77 % } 77 78 % else { 78 <cs>No comments found. <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1"> change query</a> </cs>79 <cs>No comments found. <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search again</a> </cs> 79 80 % } 80 81 </response> … … 99 100 100 101 my $rsslink = "/comments/rt/rssresults.rdf?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})); 101 my $listlink = "/comments/rt/readsay.html?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})) ;102 my $listlink = "/comments/rt/readsay.html?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})) . "&Order=DESC"; 102 103 # my $printargs = param('Query')." (".$Tickets->CountAll()." found)"; 103 104 … … 109 110 my ($Tickets, $Ticket); 110 111 112 my $drafter = ''; 113 my $DrafterQueue = RT::Queue->new($CurrentUser); 114 $DrafterQueue->Load('Drafter'); 115 if ($DrafterQueue->CurrentUserHasRight('SeeQueue')) { 116 $drafter = "drafter"; 117 } 118 111 119 if ($ARGS{'Query'}) { 120 my $Qargs = ''; 121 unless ($ARGS{'Query'} =~ /Queue/) { 122 $Qargs = " AND 'Queue.Name' != 'Drafter'"; 123 if ($drafter) { 124 $Qargs = ''; 125 } 126 } 127 112 128 $Tickets = RT::Tickets->new($CurrentUser); 113 $Tickets->FromSQL($ARGS{'Query'}); 129 # exclude, from this view, comments whose selection got messed up: 130 $Tickets->FromSQL($ARGS{'Query'}." AND 'CF.NoteStartNodeId' NOT LIKE 'login' $Qargs"); 114 131 $Tickets->OrderBy( FIELD => 'id', ORDER => $ARGS{'Order'}); 115 132 } … … 119 136 } 120 137 121 #my $Tickets = RT::Tickets->new($CurrentUser); 122 #$Tickets->FromSQL($ARGS{'Query'}); 138 123 139 124 140 … … 131 147 $StartAt => 1 132 148 $Order => 'DESC' 149 $Query => "'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'"; 133 150 </%ARGS> trunk/rtNoAuth/xmlresultsnew.html
r38 r44 26 26 <response> 27 27 % if ($Tickets) { 28 %# my $tick = $Tickets->Next; 28 <d><% $drafter %></d> 29 29 <cs>Showing comments: <% humanQuery($ARGS{'Query'}) |n %> <a class="rsslink" href="<% $rsslink %>">[rss]</a> <a href="<% $listlink %>">[list]</a> <a href="http://gplv3.fsf.org/comments/gplv3-draft-1?Query=%20Creator%20=%20'ratiodoc'%20%20AND%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&Order=DESC&OrderBy=id&StartAt=1&Rows=80">[rationale]</a> <br/> 30 30 ( found <% $Tickets->CountAll()%>, showing <% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %>: … … 40 40 % } 41 41 % } 42 %# ) [some rendering problems noted] <a href="/comments/rt/changeshown.html?came_from=<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>">search</a>43 42 ) <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search</a> 44 43 </cs> … … 64 63 <i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 65 64 <u><% $item->CreatorObj->Name %></u> 66 % my ($agree,$agr_count) = showAgree(\$item );65 % my ($agree,$agr_count) = showAgree(\$item,$name); 67 66 <ua><% $agree |n %></ua> 68 67 <at><% $agr_count %></at> 69 68 <id><% $item->id %></id> 69 <qn><% $item->QueueObj->Name %></qn> 70 70 </annotation> 71 71 % $Ticket = ''; … … 110 110 my ($Tickets, $Ticket); 111 111 112 my $drafter = ''; 113 my $DrafterQueue = RT::Queue->new($CurrentUser); 114 $DrafterQueue->Load('Drafter'); 115 if ($DrafterQueue->CurrentUserHasRight('SeeQueue')) { 116 $drafter = "drafter"; 117 } 118 112 119 if ($ARGS{'Query'}) { 120 my $Qargs = ''; 121 unless ($ARGS{'Query'} =~ /Queue/) { 122 $Qargs = " AND 'Queue.Name' != 'Drafter'"; 123 if ($drafter) { 124 $Qargs = ''; 125 } 126 } 127 113 128 $Tickets = RT::Tickets->new($CurrentUser); 114 129 # exclude, from this view, comments whose selection got messed up: 115 $Tickets->FromSQL($ARGS{'Query'}." AND 'CF.NoteStartNodeId' NOT LIKE 'login' ");130 $Tickets->FromSQL($ARGS{'Query'}." AND 'CF.NoteStartNodeId' NOT LIKE 'login' $Qargs"); 116 131 $Tickets->OrderBy( FIELD => 'id', ORDER => $ARGS{'Order'}); 117 132 } … … 121 136 } 122 137 123 #my $Tickets = RT::Tickets->new($CurrentUser); 124 #$Tickets->FromSQL($ARGS{'Query'}); 138 125 139 126 140 trunk/selectxpath.xsl
r38 r44 1 <!-- Copyright (C) 2005 Software Freedom Law Center, Inc.1 <!-- Copyright (C) 2005, 2006 Software Freedom Law Center, Inc. 2 2 -- Author: Orion Montoya <orion@mdcclv.com> 3 3 -- … … 25 25 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 26 26 version="1.0"> 27 27 28 28 <xsl:output method="html"/> 29 29 30 <xsl:template match="/ ">30 <xsl:template match="/gpl"> 31 31 <html> 32 32 <head> 33 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 33 34 <title><xsl:value-of select="//head/title"/></title> 34 35 <script type="text/javascript" src="stet.js"/> trunk/stet.css
r38 r44 199 199 #maintext { 200 200 201 float:left; 202 203 /* position: absolute; */ 201 float:left; 204 202 margin-left: 3em; 205 203 margin-top: 2em; 206 204 float: left; 207 /* left: 0; */208 /* top: 0; */209 /* margin-right: 33%; */210 /* border: 1px dotted #666; */211 205 width: 50%; 212 206 color: #000; … … 219 213 width: 80%; 220 214 } 215 ::-moz-selection{ 216 background:#f1efb9; 217 color:#000; 218 } 219 220 ::selection { 221 background:#f1efb9; 222 color:#000; 223 } 224 225 .highlight::-moz-selection { 226 background: #AF0078; 227 color:#fff; 228 } 229 230 .highlight::selection { 231 background: #AF0078; 232 color:#fff; 233 } 221 234 222 235 .noteify { 223 /* display: none; */224 /* float: left; */225 /* left: 80%; */226 /* top: 0; */227 width: 30%;228 236 font-size: smaller; 229 237 left: 55%; 230 238 float: right; 231 239 position: absolute; 232 /* margin-left: 68%; */233 /* border: 1px dotted #666; */234 240 z-index: 90; 235 241 background: #f0ecb3; … … 239 245 .annotation { 240 246 font-size: 10pt; 241 /* font-size: smaller; */242 247 color: #000; 243 248 font-weight: normal; 244 249 position: absolute; 245 /* position: relative; */246 /* float: right; */247 /* margin-left: 100%; */248 250 left: 55%; 249 /* right: -%; */250 251 width: 40%; 251 252 border: 1px solid #FFFF00; 252 253 background: #f0ecb3; 253 /* background: #FFFF99; */ 254 /* z-index: 10; */ 255 /* clear: right; */ 254 256 255 } 257 256 … … 259 258 background: #F0F0F0; 260 259 } 261 262 260 .Issues { 263 background: #A3F 3A0;261 background: #A3FFD6; 264 262 } 265 263 trunk/stet.js
r38 r44 34 34 var ticketObj = new Object; 35 35 ticketObj.rtidsBySn = new Object; 36 var drafter = ''; 37 var filename; 36 38 37 39 var base64Chars = new Array( … … 54 56 function initPage() { 55 57 statusbox("Please wait while we load some comments."); 56 varfilename = location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.length);58 filename = location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.length); 57 59 if((!filename.length) || (filename.match(/index/)) || (filename.match(/comments$/)) || (filename.match(/debug/))) { 58 60 filename = 'gplv3-draft-1'; 59 61 } 60 62 if(window.location.search.length) { 61 // loadXMLDoc('/comments/rt/xmlresults.html',window.location.search.substring(1)); 62 loadXMLDoc('/comments/rt/xmlresultsnew.html',window.location.search.substring(1)); 63 loadXMLDoc('/comments/rt/xmlresults.ht