mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
f2d908a06f
Added styling to gathers page Added styling to account page Improved forms styling
19 lines
726 B
Text
19 lines
726 B
Text
<% if cuser %>
|
|
<% if cuser.banned? Ban::TYPE_MUTE %>
|
|
You have been muted.
|
|
<% else %>
|
|
<% scroll = shoutmsg.domain == "shoutbox" ? "" : "$('#{shoutmsg.domain}').scrollTop = $('#{shoutmsg.domain}').scrollHeight;" %>
|
|
<%= form_for(shoutmsg, remote: true, html: { id: "new_#{shoutmsg.domain}", class: 'new-shout' }) do |f| %>
|
|
<% if shoutmsg.shoutable %>
|
|
<%= f.hidden_field :shoutable_type %>
|
|
<%= f.hidden_field :shoutable_id %>
|
|
<% end %>
|
|
<div class="fields">
|
|
<%= f.text_field :text, size: 12, id: "#{shoutmsg.domain}_text", class: "shout_input" %>
|
|
</div>
|
|
<div class="controls">
|
|
<%= submit_tag "Shout!" %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|