2014-04-06 14:14:03 +00:00
|
|
|
<div class="widget shoutbox">
|
|
|
|
<h4><%= t('widget.shoutbox') %></h4>
|
2014-04-08 23:28:46 +00:00
|
|
|
<div class="widget-content-wrapper">
|
2014-04-15 09:59:52 +00:00
|
|
|
<div id="shoutbox" class="transcript">
|
2014-05-19 20:16:46 +00:00
|
|
|
<%= render partial: "shoutmsgs/shoutmsg", collection: Shoutmsg.recent.box, locals: { popup: "$('shoutbox')" } %>
|
2014-04-06 14:14:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-05-19 20:16:46 +00:00
|
|
|
<%= render partial: "shoutmsgs/new", locals: { shoutmsg: Shoutmsg.new } %>
|
2014-04-09 00:50:07 +00:00
|
|
|
<%= link_to "Shoutbox Rules", article_path(Article::SB_RULES) %>
|
2015-04-27 22:36:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2015-06-13 15:49:02 +00:00
|
|
|
$(document).ready(function () {
|
|
|
|
$.PeriodicalUpdater("/shoutmsgs/index.js", {
|
|
|
|
method: "GET",
|
|
|
|
type: "script",
|
|
|
|
minTimeout: 20000,
|
|
|
|
multiplier: 3,
|
|
|
|
maxTimeout: 300000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|