<% #
 # 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.
%>

<div id="main">
<%= render :partial => '/layouts/notice' -%>
<%= render :partial => '/layouts/powitalny' -%>

<% unless DlaEli.nk -%>
<p>
Na konfrontację oczekuje/ą 
<%= ZdaniaTranszy.ile_zaanotowanych(session[:uzid], :do_konfrontacji)
%> zdanie/nia/ń.
</p>
<% end # of unless nk
   -%>


<%= render :partial => 'layouts/bug_reports' -%>

<h1>Lista transz</h1>


<%= h(@anotator.login) %>,  masz przypisane i nie zakończone:

<div id="lista_transz">
<%= render :partial => 'lista_transz', :object => @anotator.transze_otwarte %>
</div>


<% if DlaEli.x -%>
<div id="odbierz_transze">
  <%= render :partial => 'prosba_link', :object =>  @anotator.uzytkownik_id -%>
</div>

<div id="lista_odebranych">
<%= render :partial => 'lista_odebranych', :object => @odebrania_transz -%>
</div>
<% end # of if dla Eli
   -%>


<% if session[:transze_zamkniete_pokaz] %>
<h1> Transze zakończone </h1>
<%= link_to '[ukryj transze zakończone]',
    {:action => 'transze_zamkniete_ukryj'}, {} %>
<%= render :partial => 'lista_transz', :object => @anotator.transze_zamkniete %>

<% elsif @sa_transze_zamkniete # not session[:transze_zamkniete_pokaz]
%>
  <div>
<%= link_to '[pokaż transze zakończone]',
    {:action => 'transze_zamkniete_pokaz'}, {} %>
</div>
<% end # of pokaz/ukryj tr. zamknięte
%>
</div>

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