Software Freedom Law Center

Changeset 44

Show
Ignore:
Timestamp:
02/14/06 13:45:35 (3 years ago)
Author:
orion
Message:


Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/agree.pl

    r38 r44  
    3939use MIME::Entity; 
    4040use MIME::Base64; 
    41  
     41print STDERR "entering agree.pl\n"; 
    4242$id = param('rtid'); 
    4343$opn = param('opn'); 
    4444 
    45 do "xmlpass.pl"; 
    46  
     45require "/var/www/stet/xmlpass.pl"; 
     46my ($username,$password) = userpass(); 
     47print STDERR "$username $password\n"; 
    4748if (($name, $pass) = split(/:/, decode_base64(cookie('__ac')))) { 
    4849     $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"
    5051                                    username => $username, 
    5152                                    password =>  $password); 
  • trunk/doc-markup-samples/debug.html

    r38 r44  
    33<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    44<title>GNU GENERAL PUBLIC LICENSE</title> 
    5 <script type="text/javascript" src="stet-drafter.js"></script><script type="text/javascript" language="javascript"> 
     5<script type="text/javascript" src="stet-devel.js"></script><script type="text/javascript" language="javascript"> 
    66window.onload = initPage(); 
    77</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"> 
    14<html> 
    25<head> 
    36<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    47<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"> 
    69window.onload = initPage(); 
    710</script><link rel="stylesheet" type="text/css" href="stet.css"> 
     
    912<body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF"> 
    1013<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&amp;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> 
     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&amp;Order=DESC">browse comments</a> on any browser.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span> 
    1215</div> 
    1316<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"> 
    14<html> 
    25<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"/
    47<title>GNU GENERAL PUBLIC LICENSE</title> 
    58<script type="text/javascript" src="stet.js"></script><script type="text/javascript" language="javascript"> 
    69window.onload = initPage(); 
    7 </script><link rel="stylesheet" type="text/css" href="stet.css"
     10</script><link rel="stylesheet" type="text/css" href="stet.css"/
    811</head> 
    912<body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF"> 
     
    1114<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&amp;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> 
    1215</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> 
    1417<h1 id="portal-logo"><a href="http://gplv3.fsf.org" accesskey="1">GPLv3</a></h1> 
    1518<ul id="portal-globalnav"> 
  • trunk/doc-markup-samples/gplv3-draft-1.xml

    r20 r44  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<?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"> 
    44<!-- $Id$ --> 
    55<gpl> 
  • trunk/doc-markup-samples/gplv3-idra.html

    r43 r44  
    33<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    44<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"> 
    66window.onload = initPage(); 
    77</script><link rel="stylesheet" type="text/css" href="stet.css"> 
     
    99<body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF"> 
    1010<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&amp;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&amp;Order=DESC">browse comments</a>.</span><span id="querydiv" style="display:none"></span><span id="login" class="login"></span> 
    1212</div> 
    1313<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--> 
    5324<html> 
    5425<head> 
     
    10581029$RowsPerPage => 30 
    10591030$HideResults => 0 
    1060 $came_from => 'http://gplv3.fsf.org/comments/debug
     1031$came_from => 'http://gplv3.fsf.org/comments/gplv3-draft-1
    10611032$Delete => 1 
    10621033$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--> 
    5324<html> 
    5425<head> 
     
    10581029$RowsPerPage => 30 
    10591030$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
    10611032$Delete => 1 
    10621033$NewQuery => 1 
  • trunk/rtNoAuth/readsay.html

    r38 r44  
    6565</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> 
    6666% } 
    67 <& header-devel.html, name => $name &> 
     67<& header.html, name => $name &> 
    6868<div id="readsaymain"> 
    6969<span id="listactions"> 
     
    8787% my $showactions = shift; 
    8888% 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> 
    9199%      if (($HasIssueRights) && ($showactions) && ($deletelink)) { 
    92100            <span class="TktInput">[dissociate: <INPUT TYPE=CHECKBOX NAME="<% $deletelink %>" value="1">]</span> 
     
    125133%    my $child = RT::Ticket->new($CurrentUser); 
    126134%    $child->Load($link->BaseURI->Object->id); 
    127 % my $deletelink = "DeleteLink-". $link->Base ."-". $link->Type
     135% my $deletelink = "DeleteLink-". $link->Base ."-". $link->Type."-"
    128136<% displayTicket(\$child,$showactions,$deletelink) %> 
    129137%   } 
    130  
     138<br/> 
    131139%  if (($HasIssueRights) && ($showactions) && (!$deletelink)) { 
    132140<br/> 
     
    135143%  } 
    136144% 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/> 
    142146%  if ($HasIssueRights) { 
    143     <span class="TktLabel">Parents:</span> 
     147    <span class="TktLabel">Parents:</span><br/> 
    144148       <span class="TktInput indent">add new: <INPUT NAME="<% $item->id %>-MemberOf"> <span class="inputcaption">[comment id numbers, space separated]</span></span> 
    145149%  } 
     
    153157        <A HREF="<% $link->Target %>"><% $link->Target %></A> 
    154158%       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> 
    156160%           } 
    157161 <br/> 
     
    224228%      } 
    225229%  } # should close "if $resp == 1" after picker 
    226 % }  
     230% } 
    227231 </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% } 
    228237% return ''; 
    229238% } 
     
    295304    my $item = $$itemref; 
    296305if ($item->Queue == 5) { 
    297     return "issue"; 
     306    return "Issue"; 
    298307} 
    299308else { 
    300     return "comment"; 
     309    return "Comment"; 
    301310} 
    302311} 
     
    344353        } 
    345354            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")) { 
    347356                
    348357                    $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 %# 
    21%# Copyright (C) 2005, 2006   Software Freedom Law Center, Inc. 
    32%# Author: Orion Montoya <orion@mdcclv.com> 
     
    4140<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
    4241<response> 
     42<d><% $drafter %></d> 
    4343<cs>Your comment <em><% $scrubber->scrub($notesubj) %></em> was submitted.  <a href="/comments/rt/changeshown.html">change query</a></cs> 
    4444<annotation> 
     
    5151<ua>unagree</ua> 
    5252<at>1</at> 
     53<qn><% $queue %></qn> 
    5354</annotation> 
    5455</response> 
     
    6970my $scrubber = HTML::Scrubber->new( allow => [ qw[ a b i u br ] ] ); 
    7071 
    71  
    72  
    7372my ($CurrentUser, $resp, $name) = getUser("x"); 
    74 my ($dompath, $url, $urlpath, $selectedtext, $notesubj, $start, $startid, $end, $endid, $notetext, $queue, $realqueue, $id); 
     73my ($dompath, $url, $urlpath, $selectedtext, $notesubj, $start, $startid, $end, $endid, $notetext, $realqueue, $id, $drafter); 
    7574 
    7675if(%ARGS) { 
     
    9594 $notetext = URI::Escape::uri_unescape($ARGS{'NoteText'}); 
    9695 
    97 $ARGS{'queue'} ? $queue = $ARGS{'queue'} : $queue = "Inbox"; 
    98  
     96print STDERR "q arg is ".$queue."\n"; 
     97# $queue ? $queue = $queue : $queue = "Inbox"; 
     98# print STDERR "wq is $queue\n"; 
    9999my $ThisQueue = RT::Queue->new($CurrentUser); 
    100100  $ThisQueue->Load($queue); 
    101   if ($CurrentUser->HasRight( Right => 'CreateTicket', Object => $ThisQueue )) { 
     101 
     102  if ($ThisQueue->CurrentUserHasRight('CreateTicket')) { 
    102103      $realqueue = $queue; 
     104      $drafter = $queue; 
    103105  } 
    104106  else { 
    105107      $realqueue = "Inbox"; 
    106108  } 
    107  
     109print STDERR "rq is $realqueue\n"; 
    108110 
    109111if ($resp == 1) { 
     
    133135$r->content_type('text/xml'); 
    134136</%INIT> 
    135  
     137<%ARGS> 
     138$queue => "Inbox" 
     139</%ARGS> 
  • trunk/rtNoAuth/xmlresults-compat.html

    r40 r44  
    2424% 
    2525% 
     26% 
    2627<response> 
    2728% 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&amp;Order=DESC&amp;OrderBy=id&amp;StartAt=1&amp;Rows=80</ra> 
     37<t><% $Tickets->CountAll()%></t> 
     38<rng><% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %></rng> 
    3039%   if ($Tickets->CountAll() > $Rows) { 
    3140%       if ($StartAt > 1 ) { 
    32              <a href="/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&amp;Rows=<%$Rows%>&amp;StartAt=<% (($StartAt - $Rows) < 0) ? 1 : ($StartAt - $Rows) |n%>">prev</a
     41<pr>/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&amp;Rows=<%$Rows%>&amp;StartAt=<% (($StartAt - $Rows) < 0) ? 1 : ($StartAt - $Rows) |n%></pr
    3342%       } 
    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 %>&amp;Rows=<%$Rows%>&amp;StartAt=<% $StartAt + $Rows %></nx> 
    3645% } 
    37 %       if ($Tickets->CountAll() > $StartAt + $Rows) { 
    38              <a href="/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&amp;Rows=<%$Rows%>&amp;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% } 
    4347</cs> 
    44 %  
    4548<%perl>  
    4649    $Tickets->GotoFirstItem; 
     
    5255</%perl> 
    5356% } 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> 
    5563% } 
    5664% if ($Ticket || $Tickets) { 
     
    6371<i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 
    6472<u><% $item->CreatorObj->Name %></u> 
    65 % my ($agree,$agr_count) = showAgree(\$item); 
     73% my ($agree,$agr_count) = showAgree(\$item,$name); 
    6674<ua><% $agree |n %></ua> 
    6775<at><% $agr_count %></at> 
    6876<id><% $item->id %></id> 
     77<qn><% $item->QueueObj->Name %></qn> 
    6978</annotation> 
    7079% $Ticket = ''; 
     
    7685% } 
    7786% 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> 
    7988% } 
    8089</response> 
     
    99108 
    100109my $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'}))
     110my $listlink = "/comments/rt/readsay.html?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})) . "&Order=DESC"
    102111#  my $printargs = param('Query')." (".$Tickets->CountAll()." found)"; 
    103112 
     
    109118my ($Tickets, $Ticket); 
    110119 
     120my $drafter = ''; 
     121my $DrafterQueue = RT::Queue->new($CurrentUser); 
     122$DrafterQueue->Load('Drafter'); 
     123if ($DrafterQueue->CurrentUserHasRight('SeeQueue')) { 
     124  $drafter = "drafter"; 
     125} 
     126 
    111127if ($ARGS{'Query'}) { 
     128my $Qargs = ''; 
     129unless ($ARGS{'Query'} =~ /Queue/) { 
     130 $Qargs = " AND 'Queue.Name' != 'Drafter'"; 
     131if ($drafter) { 
     132 $Qargs = ''; 
     133} 
     134} 
     135 
    112136    $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"); 
    114139    $Tickets->OrderBy( FIELD => 'id', ORDER => $ARGS{'Order'}); 
    115140} 
    116141elsif ($ARGS{'id'}) { 
    117142    $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"; 
    119148} 
    120149 
    121 #my $Tickets = RT::Tickets->new($CurrentUser); 
    122 #$Tickets->FromSQL($ARGS{'Query'}); 
     150 
    123151 
    124152 
     
    131159$StartAt => 1 
    132160$Order => 'DESC' 
     161$Query => "'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'"; 
    133162</%ARGS> 
  • trunk/rtNoAuth/xmlresults-devel.html

    r38 r44  
    11<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
     2%#  
    23%# Copyright (C) 2006   Software Freedom Law Center, Inc. 
    34%# Author: Orion Montoya <orion@mdcclv.com> 
     
    2324%# along with this software.  If not, see <http://www.gnu.org/licenses/>. 
    2425% 
    25 % 
    26 % 
    2726<response> 
    2827% if ($Tickets) { 
     
    4140%       } 
    4241%   } 
    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>  
    4443</cs> 
    4544%  
     
    5352</%perl> 
    5453% } 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> 
    5655% } 
    5756% if ($Ticket || $Tickets) { 
     
    6463<i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 
    6564<u><% $item->CreatorObj->Name %></u> 
    66 % my ($agree,$agr_count) = showAgree(\$item); 
     65% my ($agree,$agr_count) = showAgree(\$item,$name); 
    6766<ua><% $agree |n %></ua> 
    6867<at><% $agr_count %></at> 
     
    7877% } 
    7978% 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> 
    8180% } 
    8281</response> 
  • trunk/rtNoAuth/xmlresults.html

    r14 r44  
    2626<response> 
    2727% 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&amp;Order=DESC&amp;OrderBy=id&amp;StartAt=1&amp;Rows=80">[rationale]</a> <br/>  
     30( found <% $Tickets->CountAll()%>, showing <% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %>: 
    3031%   if ($Tickets->CountAll() > $Rows) { 
    3132%       if ($StartAt > 1 ) { 
    3233             <a href="/comments/<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>?Query=<% $ARGS{'Query'} |n %>&amp;Rows=<%$Rows%>&amp;StartAt=<% (($StartAt - $Rows) < 0) ? 1 : ($StartAt - $Rows) |n%>">prev</a> 
    3334%       } 
    34 %   if (($Tickets->CountAll() > $Rows) && ($Tickets->CountAll() > $StartAt + $Rows)) { 
     35%   if (($Tickets->CountAll() > $Rows) && ($Tickets->CountAll() < $StartAt + $Rows)) { 
    3536| 
    3637% } 
     
    3940%       } 
    4041%   } 
    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>  
    4343</cs> 
    4444%  
     
    5252</%perl> 
    5353% } 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> 
    5555% } 
    5656% if ($Ticket || $Tickets) { 
     
    6363<i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 
    6464<u><% $item->CreatorObj->Name %></u> 
    65 % my ($agree,$agr_count) = showAgree(\$item); 
     65% my ($agree,$agr_count) = showAgree(\$item,$name); 
    6666<ua><% $agree |n %></ua> 
    6767<at><% $agr_count %></at> 
    6868<id><% $item->id %></id> 
     69<qn><% $item->QueueObj->Name %></qn> 
    6970</annotation> 
    7071% $Ticket = ''; 
     
    7677% } 
    7778% 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> 
    7980% } 
    8081</response> 
     
    99100 
    100101my $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'}))
     102my $listlink = "/comments/rt/readsay.html?" . (($ARGS{'Query'}) ? ("Query=".$ARGS{'Query'}) : ("id=".$ARGS{'id'})) . "&Order=DESC"
    102103#  my $printargs = param('Query')." (".$Tickets->CountAll()." found)"; 
    103104 
     
    109110my ($Tickets, $Ticket); 
    110111 
     112my $drafter = ''; 
     113my $DrafterQueue = RT::Queue->new($CurrentUser); 
     114$DrafterQueue->Load('Drafter'); 
     115if ($DrafterQueue->CurrentUserHasRight('SeeQueue')) { 
     116  $drafter = "drafter"; 
     117} 
     118 
    111119if ($ARGS{'Query'}) { 
     120my $Qargs = ''; 
     121unless ($ARGS{'Query'} =~ /Queue/) { 
     122 $Qargs = " AND 'Queue.Name' != 'Drafter'"; 
     123if ($drafter) { 
     124 $Qargs = ''; 
     125} 
     126} 
     127 
    112128    $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"); 
    114131    $Tickets->OrderBy( FIELD => 'id', ORDER => $ARGS{'Order'}); 
    115132} 
     
    119136} 
    120137 
    121 #my $Tickets = RT::Tickets->new($CurrentUser); 
    122 #$Tickets->FromSQL($ARGS{'Query'}); 
     138 
    123139 
    124140 
     
    131147$StartAt => 1 
    132148$Order => 'DESC' 
     149$Query => "'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'"; 
    133150</%ARGS> 
  • trunk/rtNoAuth/xmlresultsnew.html

    r38 r44  
    2626<response> 
    2727% if ($Tickets) { 
    28 %#    my $tick = $Tickets->Next; 
     28<d><% $drafter %></d> 
    2929<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&amp;Order=DESC&amp;OrderBy=id&amp;StartAt=1&amp;Rows=80">[rationale]</a> <br/>  
    3030( found <% $Tickets->CountAll()%>, showing <% $StartAt %>-<% (($StartAt + $Rows) > $Tickets->CountAll()) ? $Tickets->CountAll() : ($StartAt + $Rows - 1) %>: 
     
    4040%       } 
    4141%   } 
    42 %# ) [some rendering problems noted] <a href="/comments/rt/changeshown.html?came_from=<% stripCrap($Tickets->First->FirstCustomFieldValue('NoteUrl')) %>">search</a>  
    4342) <a href="/comments/rt/changeshown.html?came_from=gplv3-draft-1">search</a>  
    4443</cs> 
     
    6463<i><% $item->FirstCustomFieldValue('NoteStartNodeId') %></i> 
    6564<u><% $item->CreatorObj->Name %></u> 
    66 % my ($agree,$agr_count) = showAgree(\$item); 
     65% my ($agree,$agr_count) = showAgree(\$item,$name); 
    6766<ua><% $agree |n %></ua> 
    6867<at><% $agr_count %></at> 
    6968<id><% $item->id %></id> 
     69<qn><% $item->QueueObj->Name %></qn> 
    7070</annotation> 
    7171% $Ticket = ''; 
     
    110110my ($Tickets, $Ticket); 
    111111 
     112my $drafter = ''; 
     113my $DrafterQueue = RT::Queue->new($CurrentUser); 
     114$DrafterQueue->Load('Drafter'); 
     115if ($DrafterQueue->CurrentUserHasRight('SeeQueue')) { 
     116  $drafter = "drafter"; 
     117} 
     118 
    112119if ($ARGS{'Query'}) { 
     120my $Qargs = ''; 
     121unless ($ARGS{'Query'} =~ /Queue/) { 
     122 $Qargs = " AND 'Queue.Name' != 'Drafter'"; 
     123if ($drafter) { 
     124 $Qargs = ''; 
     125} 
     126} 
     127 
    113128    $Tickets = RT::Tickets->new($CurrentUser); 
    114129# 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"); 
    116131    $Tickets->OrderBy( FIELD => 'id', ORDER => $ARGS{'Order'}); 
    117132} 
     
    121136} 
    122137 
    123 #my $Tickets = RT::Tickets->new($CurrentUser); 
    124 #$Tickets->FromSQL($ARGS{'Query'}); 
     138 
    125139 
    126140 
  • trunk/selectxpath.xsl

    r38 r44  
    1 <!-- Copyright (C) 2005   Software Freedom Law Center, Inc. 
     1<!-- Copyright (C) 2005, 2006   Software Freedom Law Center, Inc. 
    22--   Author: Orion Montoya <orion@mdcclv.com> 
    33-- 
     
    2525<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    2626  version="1.0"> 
    27    
     27 
    2828  <xsl:output method="html"/> 
    2929 
    30   <xsl:template match="/"> 
     30  <xsl:template match="/gpl"> 
    3131    <html> 
    3232      <head> 
     33        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    3334        <title><xsl:value-of select="//head/title"/></title> 
    3435        <script type="text/javascript" src="stet.js"/> 
  • trunk/stet.css

    r38 r44  
    199199#maintext {  
    200200 
    201 float:left; 
    202  
    203 /*        position: absolute; */ 
     201        float:left; 
    204202        margin-left: 3em; 
    205203        margin-top: 2em; 
    206204        float: left; 
    207 /*         left: 0; */ 
    208 /*         top: 0; */ 
    209 /*      margin-right: 33%; */ 
    210 /*         border: 1px dotted #666; */ 
    211205        width: 50%; 
    212206        color: #000; 
     
    219213        width: 80%; 
    220214} 
     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} 
    221234 
    222235.noteify {  
    223 /*         display: none; */ 
    224 /*      float: left; */ 
    225 /*      left: 80%; */ 
    226 /*         top: 0; */ 
    227            width: 30%; 
    228236font-size: smaller; 
    229237left: 55%; 
    230238float: right; 
    231239position: absolute; 
    232 /* margin-left: 68%; */ 
    233 /*         border: 1px dotted #666; */ 
    234240z-index: 90; 
    235241background: #f0ecb3; 
     
    239245.annotation {  
    240246font-size: 10pt; 
    241 /* font-size: smaller; */ 
    242247color: #000; 
    243248font-weight: normal; 
    244249position: absolute; 
    245 /* position: relative; */ 
    246 /* float: right; */ 
    247 /* margin-left: 100%; */ 
    248250left: 55%; 
    249 /* right: -%; */ 
    250251width: 40%; 
    251252border: 1px solid #FFFF00; 
    252253background: #f0ecb3;  
    253 /* background: #FFFF99; */ 
    254 /* z-index: 10; */ 
    255 /* clear: right; */ 
     254 
    256255 } 
    257256 
     
    259258background: #F0F0F0; 
    260259} 
    261  
    262260.Issues { 
    263 background: #A3F3A0
     261background: #A3FFD6
    264262} 
    265263 
  • trunk/stet.js

    r38 r44  
    3434var ticketObj = new Object; 
    3535ticketObj.rtidsBySn = new Object; 
     36var drafter = ''; 
     37var filename; 
    3638 
    3739var base64Chars = new Array( 
     
    5456function initPage() { 
    5557  statusbox("Please wait while we load some comments."); 
    56   var filename = location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.length);  
     58  filename = location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.length);  
    5759  if((!filename.length) || (filename.match(/index/)) || (filename.match(/comments$/)) || (filename.match(/debug/))) { 
    5860    filename = 'gplv3-draft-1'; 
    5961  } 
    6062if(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