ensl.org/app/views/widgets/_shoutbox.html.erb

17 lines
514 B
Text
Raw Normal View History

<% shoutbox_new = Shoutmsg.new %>
<div id="shoutbox">
<%= render :partial => "shoutmsgs/shoutmsg", :collection => Shoutmsg.recent.box, :locals => {:popup => "$('shoutbox')"} %>
</div>
<%= render :partial => "shoutmsgs/new", :locals => {:shoutmsg => shoutbox_new} %>
<p>
<%= link_to "Shoutbox Recent History", :controller => :shoutmsgs, :action => "index" %><br/>
<%= link_to "Shoutbox Rules", article_path(Article::SB_RULES) %>
</p>
<div class="center box" id="userPopup">
Fetching user info...
</div>