<% #
 # This file is part of the Anotatornia suite.
 # 
 # Copyright © 2007, 2008, 2009, 2010 by Instytut Podstaw Informatyki
 # Polskiej Akademii Nauk (IPI PAN; Institute of Computer Science, Polish
 # Academy of Sciences; cf. www.ipipan.waw.pl).  All rights reserved.
 # 
 # This file may be distributed and/or modified under the terms of the
 # GNU General Public License version 3 as published by the Free Software
 # Foundation and appearing in the file COPYING included in the packaging
 # of this file.  (See http://www.gnu.org/licenses/translations.html for
 # unofficial translations.)
 # 
 # A commercial license is available from IPI PAN (contact
 # Michal.Ciesiolka.waw.pl or ipi.waw.pl for more
 # information).  Licensees holding a valid commercial license from IPI
 # PAN may use this file in accordance with that license.
 # 
 # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 # THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 # PURPOSE.
%>

<% tab_akapitow, akcja, no_inf = ogladactwo_lista_akapitow
 -%>

<table>
  
  <% tab_akapitow.each do |aka| 
     akat =  aka.akat0 
     anotid = akat.get_uzid
-%>
  <tr valign="top"  class="<%= cycle('list-line-odd',
			   'list-line-even') %>" >
    <td><%= h aka.akapit_id %>.
<% if r_wszewid? %>
(<%= h aka.akat0.id %>)
<% end -%>
</td>
    <td><%= aka.tresc -%>
<%= if aka.respond_to?( "kcrea" )
    render :partial => 'komentarze', :object => [ akat, :ogladactwo ]
end %>

</td>
    <td>
      <%= link_to( akcja.to_s, 
		   :action => 'ustal_akapit',
##         :transza => @transza, 
      :akapit => aka.akapit_id ,
      :akat => akat,
      :anotator => anotid # dla ustalenia akapitu transzy redundantny,
      # ale służy do zaznaczenia, że prawnym
      # anotatorem akapitu jest ktoś inny od osoby, która teraz anotuje.
      )
      -%></td>
   </tr>
  <% end # of each akapit
     -%>
</table>



<%
### Local Variables: 
### mode: mmm
### End:
-%>
