From 23b545779d39ba50bfac78a82f08299dc14cc099 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Wed, 14 Aug 2019 09:30:56 +0300 Subject: [PATCH] Fix a few typos in views and models --- app/models/gather_map.rb | 2 +- app/views/bans/index.html.erb | 3 +-- app/views/comments/_comment.html.erb | 2 +- app/views/posts/_post.html.erb | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/models/gather_map.rb b/app/models/gather_map.rb index 3b10f2c..e63ab4a 100644 --- a/app/models/gather_map.rb +++ b/app/models/gather_map.rb @@ -19,7 +19,7 @@ class GatherMap < ActiveRecord::Base def to_s self.map.to_s - endD + end def init_variables self.votes = 0 diff --git a/app/views/bans/index.html.erb b/app/views/bans/index.html.erb index 6dffffc..d3bf979 100644 --- a/app/views/bans/index.html.erb +++ b/app/views/bans/index.html.erb @@ -10,5 +10,4 @@ <%= render partial: "list", locals: { bans: @bans.ineffective } %> <%= link_to 'New Ban', new_ban_path, class: 'button' %> - - \ No newline at end of file + \ No newline at end of file diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 0643014..692df64 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -10,7 +10,7 @@
<% 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 %> diff --git a/app/views/posts/_post.html.erb b/app/views/posts/_post.html.erb index c4e46b7..6b8cf60 100644 --- a/app/views/posts/_post.html.erb +++ b/app/views/posts/_post.html.erb @@ -69,7 +69,6 @@
<% 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 %>