13
13
<img src="/images/logo-760x150-papiamentu.info.png" alt="logo papiamentu.info"/>
15
<%= fb_connect_javascript_tag %>
16
<%= init_fb_connect "XFBML"%>
15
<%= fb_connect_javascript_tag %>
16
<%= init_fb_connect "XFBML"%>
18
18
<% if logged_in? %>
19
<div class="header">Welcome, <%= current_user.name %>. <%= link_to "Log out", logout_path, { :title => "Log out" } %>
20
<div class="settings"></div>
21
<% if current_user.administrator %>
22
<%= link_to 'Edit Users', users_path %><br />
23
<%= link_to 'QwAds Admin', '/rads/admin' %>
25
<% if current_user.facebook_user? %>
26
<fb:profile-pic uid="<%= current_user.fb_user_id%>" facebook-logo="true" size="thumb" ></fb:profile-pic>
27
<p><a href="#" onclick='FB.Connect.logoutAndRedirect("/logout")'>Logout</a></p>
20
Bon bini, <%= h current_user.name %>.
21
<div class="settings">
23
<% if current_user.administrator %>
24
<%= link_to 'Edit Users', users_path %><br />
25
<%= link_to 'QwAds Admin', '/rads/admin' %><br />
27
<% if current_user.facebook_user? %>
28
<p><a href="#" onclick='FB.Connect.logoutAndRedirect("/logout")'>Logout</a></p>
30
<%= link_to "Log out", logout_path, { :title => "Log out" } %>
33
34
<div id="Welcome_area">
38
39
<div id="Login_area" style="display:none">
39
40
<table cellspacing="0" cellpadding="0" border="0">
41
<td><%= render( :partial => "partials/login_form" ) %></td>
42
<td><%= render( :partial => "partials/fb_login_form" ) %></td>
42
<td><%= render( :partial => "partials/login_form" ) %></td>
43
<td><%= render( :partial => "partials/fb_login_form" ) %></td>
47
<%= 'style="display:none"' if not flash[:user] -%>
48
<% @user = flash[:user] if flash[:user] -%>
48
<%= 'style="display:none"' if not flash[:user] -%>
49
<% @user = flash[:user] if flash[:user] -%>
51
<%= render( :partial => "partials/signup_form" ) %>
52
<%= render( :partial => "partials/signup_form" ) %>
86
87
<div id="Word_area">
87
88
<h1><%= h(@word.word) %></h1>
88
89
<%= h(@word.pap_description) if not @word.pap_description.empty? %>
89
<%= '<br />English: ' + h(@word.english) if not @word.english.empty? %>
90
<%= '<!-- <br />English: ' + h(@word.english) + ' -->' if not @word.english.empty? %>
93
Ami ta pensa e palabra "<%= h @word.word %>" ta korrekto:
94
<span id="votes<%= @word.id %>">
95
<%= render :partial => 'partials/votes' %>
91
100
<div id="Status_area">
92
101
<%= 'This word is <strong>approved</strong> by ' + @word.judged_by.name + nice_date(@word.judged_at) if @word.approved? %>
244
<div id="right_content_area" style="display: none;">
245
<div id="FindWord_area">
248
<li><%= Word.count_approved %> approved words</li>
249
<li><%= Word.count_undecided %> undecided</li>
250
<li style="list-style: none">our goal is 15.000 approved<br />words by september 2009</li>
254
<div id="FindWord_area">
256
<% form_tag "/word/find_word" do -%>
257
<% if flash[:too_many_words] %>
258
<%= text_field_with_auto_complete :word, :word, { :value => params[:word][:word], :size => 25 }, :method => 'get', :skip_style => true -%>
260
<%= text_field_with_auto_complete :word, :word, { :value => '', :size => 25 }, :method => 'get', :skip_style => true -%>
262
<%= submit_tag 'Find' %>
266
<div class="recent_stuff">
267
<% if (list = Word.recently_updated) and not list.empty? %>
268
<h1>Recently Updated:</h1>
270
<% list.each do |w| %>
271
<li><%= link_to h(w.word), :action => w.word %><span class="nice_date"><%= nice_date(w.updated_at) %></span></li>
275
<% if list = Word.recently_added(:approved) and not list.empty? %>
276
<h1>Recently Approved:</h1>
278
<% list.each do |w| %>
279
<li><%= link_to h(w.word), :action => w.word %><span class="nice_date"><%= nice_date(w.judged_at) %></span></li>
283
<% if list = Word.recently_added(:undecided) and not list.empty? %>
284
<h1>Recently Added:</h1>
286
<% list.each do |w| %>
287
<li><%= link_to h(w.word), :action => w.word %><span class="nice_date"><%= nice_date(w.created_at) %></span></li>
291
<% if list = Word.recently_added(:deleted) and not list.empty? %>
292
<h1>Recently Deleted:</h1>
294
<% list.each do |w| %>
295
<li><%= link_to h(w.word), :action => w.word %><span class="nice_date"><%= nice_date(w.judged_at) %></span></li>
301
<div class="recent_stuff">
302
<% if (list = Word.recently_updated) and not list.empty? %>
303
<h1>Recently Updated:</h1>
305
<% list.each do |w| %>
306
<li><%= link_to h(w.word), :action => w.word %></li>
310
<% if (list = Word.most_viewed) and not list.empty? %>
311
<h1>Most Viewed Words:</h1>
313
<% list.each do |w| %>
314
<li><%= w.views %> <%= link_to h(w.word), :action => w.word %></li>
321
<div class="recent_stuff">
324
<% User.find(:all, :order => 'created_at DESC', :limit => 7).each do |u|-%>
325
<li><%=link_to h(u.name), user_path(u) -%></li>
331
<% if not logged_in? %>
332
<div class="rads_skyscraper">
333
<%= show_rads_banner :skyscraper -%>
336
<div class="google_skyscraper">
337
<script type="text/javascript"><!--
338
google_ad_client = "pub-3451554630885019";
339
google_ad_width = 160;
340
google_ad_height = 600;
341
google_ad_format = "160x600_as";
342
google_ad_type = "text";
343
google_ad_channel = "";
344
google_color_border = "75470B";
345
google_color_bg = "F5E1B0";
346
google_color_link = "C53200";
347
google_color_text = "221400";
348
google_color_url = "D58C20";
349
google_ui_features = "rc:6";
352
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
357
<div style="clear: both;"></div>