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

<h1>Anotatornia pozdrowienie Ci śle, <b><%= 
        Uzytkownik.find(session[:uzid]).login 
%></b>.</h1>
<p>Jest <%= Time.now.to_s(:db) %>. <br/>
  <%= "[" + PoziomyAnotacji.działające_nom.join(", ") + "]<br/>" if DlaEli.nk -%>

  Mamy  <%= c194 = AkapitTranszy.count_diai %> akapit/y/ów,
  w tym <%= AkapitTranszy.ile_zaanotowanych %> 
zweryfikowany/e/ych<% if Rola.anotator?( session[:rola_id ]) %>,
       <br><b> w tym 
<%= AkapitTranszy.ile_zaanotowanych( session[:uzid] ) %> 
przez Ciebie</b><% end %>.

<% if r_wszewid? %> 
<br/>
Jak dotąd,
  pobrano
  <%= p194 = Akapit.ile_pobranych %>
  — 
<% 
  zost194 = c194 - p194
zostext194 = "#{zost194} (#{zost194 / AnoVersion.rozmiar_transzy * 2} transz/a/e)"
if Statusy.count( :conditions => "word_senses < 14" ) < 666 and  zost194 <= 399 %>
     <span style="background-color: #ff0;">
       <b>
	 do pobrania już tylko <%= zostext194 %>!</b></span>
     <% else # do pobrania jeszcze dużo
	  %>
       do pobrania jeszcze <%= zostext194 %>.
       <% end # of wyróżniać czy nie wyróżniać ile jeszcze do pobrania
 end # of if wszewid or not
	  -%>
       </p>

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