public
Fork of trevorturk/el-dorado
Description: Localized version of El Dorado using Gibberish. Dutch language included.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/jxl/el-dorado.git
Search Repo:
jxl (author)
Sun May 04 05:26:18 -0700 2008
commit  1936ba7778c8af9340b424911174bcc96d10ad65
tree    c9f6e4e13925b50eb05cf83f1e5cb8d441927c0a
parent  f38ed782aeb5ab49a83bf6538231c06ad74b8cab
el-dorado / app / views / messages / index.html.erb
100644 29 lines (26 sloc) 1.224 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div class="info-left">
  <span class="title"><%= 'Chat'[:chat] %></span>
  <span class="detail" id="chatters"><%= render :partial => 'chatters' %></span>
</div>
<div style="clear:both;"> </div>
 
<% if logged_in? && params[:page].blank? %>
  <div class="info-left" style="width:100%;">
    <% @message = Message.new unless @message %>
    <% remote_form_for @message, :loading => "$('message_body').clear();" do |f| -%>
      <%= f.text_field :body, :value => '', :style => "width:70%;" %>&nbsp;
      <%= submit_tag "Send"[:send] %>&nbsp;
      <%= link_to('Upload a New File'[:add_file], new_upload_path, :popup => ['height=530,width=820,status=1']) %>
    <% end %>
  </div>
  <div style="clear:both;"> </div>
<% end %>
 
<table cellspacing="0" class="messages-index">
  <tbody id="messages-index">
    <%= render :partial => 'messages' %>
  </tbody>
</table>
 
<% unless params[:page] %>
  <%= periodically_call_remote :url => refresh_messages_path, :method => 'get', :frequency => 3 %>
  <%= periodically_call_remote :url => refresh_chatters_path, :method => 'get', :frequency => 10 %>
  <%= javascript_tag "$('message_body').focus();$('message_body').writeAttribute('autocomplete', 'off');" if logged_in? %>
<% end %>