ensl.org/app/views/shoutmsgs/_index.html.erb
Luke Barratt f2d908a06f Switched web server to puma
Added styling to gathers page
Added styling to account page
Improved forms styling
2014-04-15 10:59:52 +01:00

18 lines
641 B
Text

<script type="text/javascript">
$(document).ready(function(){
$.PeriodicalUpdater("/shoutmsgs/<%= object.class.to_s %>.js?id2=<%= object.id %>", {
method: "GET",
type: "script",
minTimeout: 10000,
multiplier: 2
});
});
</script>
<% shoutmsg_new = Shoutmsg.new(shoutable_type: object.class.to_s, shoutable_id: object.id) %>
<div id="<%= shoutmsg_new.domain %>" class="shoutbox-messages">
<%= render partial: "shoutmsgs/shoutmsg", collection: object.shoutmsgs.recent.reverse, locals: { popup: 'this' } %>
</div>
<%= render partial: "shoutmsgs/new", locals: { shoutmsg: shoutmsg_new, popup: "this" } %>