ensl.org/app/views/widgets/_shoutbox.html.erb
Absurdon dec054eed8 removed shoutmsg history
removed compmod council group from staff page
fixed some errors with missing database entries
2018-09-21 17:30:43 +02:00

22 lines
791 B
Text

<div class="widget shoutbox">
<h4><%= t('widget.shoutbox') %></h4>
<div class="widget-content-wrapper">
<div id="shoutbox" class="transcript">
<%= render partial: "shoutmsgs/shoutmsg", collection: Shoutmsg.recent.box, locals: { popup: "$('shoutbox')" } %>
</div>
</div>
<%= render partial: "shoutmsgs/new", locals: { shoutmsg: Shoutmsg.new } %>
<%= link_to "Shoutbox Rules", article_path(Article::SB_RULES) %>
</div>
<script type="text/javascript">
$(document).ready(function () {
$.PeriodicalUpdater("/shoutmsgs/index.js", {
method: "GET",
type: "script",
minTimeout: 20000,
multiplier: 3,
maxTimeout: 300000
});
});
</script>