Skip to content

Commit

Permalink
add faster way to delete spam that has been showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Nov 24, 2017
1 parent 266814e commit 134870c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# A sample Gemfile
source "https://rubygems.org"
ruby "1.8.7"

ruby '1.8.7'

gem "rack", "~> 1.1.0"
gem "geokit", "~> 1.6.7"
Expand All @@ -10,3 +11,4 @@ gem "json", "~> 1.8.1"
gem "mysql", "~> 2.9.1"
gem "fastercsv", "~> 1.5.5"
gem "rake", '~> 0.9.2.2'
gem "sqlite3"
6 changes: 5 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ GEM
geokit (1.6.7)
multi_json (>= 1.3.2)
google-v3-geocoder (1.0.0)
geokit (>= 1.5.0)
geokit (>= 1.5.0)
json
json (1.8.1)
multi_json (1.10.1)
mysql (2.9.1)
rack (1.1.6)
rake (0.9.2.2)
sqlite3 (1.3.11)

PLATFORMS
ruby
Expand All @@ -27,3 +27,7 @@ DEPENDENCIES
mysql (~> 2.9.1)
rack (~> 1.1.0)
rake (~> 0.9.2.2)
sqlite3

BUNDLED WITH
1.10.6
3 changes: 1 addition & 2 deletions app/controllers/organizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def destroy
@organization.destroy

respond_to do |format|
# format.html { redirect_to(organizations_url) }
format.html { redirect_to :action => 'index', :controller => "search" }
format.html { redirect_to :action => (if params[:recent] then 'recent' else 'index' end), :controller => "search" }
format.xml { head :ok }
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/search/_teaser.html.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%- show_state = true if local_assigns[:show_state].nil? -%>
<%- show_class = true if local_assigns[:show_class].nil? -%>
<div id='listing_<%=entry.id%>' class='listing <%= "listing_merge_target" if is_merge_target(entry) %>'>
<b><%= show_link entry %></b><br />
<b><%= show_link entry %></b><% if is_admin? %> (<%= link_to 'delete', url_for(entry) + "?recent=1", :confirm => 'Are you sure?', :method => :delete %>)<% end %><br />
<%- if entry.respond_to? "website" and !entry.website.blank? -%>
<i><%= website_link(entry.website, :shorten => true) %></i><br/>
<%- end -%>
Expand Down

0 comments on commit 134870c

Please sign in to comment.