Fix a few typos in views and models

This commit is contained in:
Ari Timonen 2019-08-14 09:30:56 +03:00
parent f156ed3060
commit 23b545779d
4 changed files with 3 additions and 5 deletions

View file

@ -19,7 +19,7 @@ class GatherMap < ActiveRecord::Base
def to_s
self.map.to_s
endD
end
def init_variables
self.votes = 0

View file

@ -10,5 +10,4 @@
<%= render partial: "list", locals: { bans: @bans.ineffective } %>
<%= link_to 'New Ban', new_ban_path, class: 'button' %>
</div>
</div>

View file

@ -10,7 +10,7 @@
</h1>
<div class="controls">
<% if cuser %>
<%= link_to '#', data:{on: :click, call: 'QuoteText',args: "#{comment.id}, 'comments'"} >
<%= link_to '#', data:{on: :click, call: 'QuoteText',args: "#{comment.id}, 'comments'"} %>
<% if comment.can_update? cuser %>
<%= link_to icon('pencil'), edit_comment_path(comment) %>
<% end %>

View file

@ -69,7 +69,6 @@
<div class="controls">
<% if post.topic.posts.build.can_create? cuser %>
<%= # link_to_function 'Quote Reply', "QuoteText(#{post.id}); $('#reply').fadeIn('slow') ", class: 'button tiny' %>
<%= link_to '#', data:{on: :click, call: 'QuoteText', args: "#{post.id}"}, class: 'button tiny' %>
<% end %>
<% if post.can_update? cuser %>