Skip to content

Commit 8751129

Browse files
committed
Remove protips#queue and anything associated with it
These are leftovers of coderwall@82359ea
1 parent 7b1d45f commit 8751129

File tree

4 files changed

+1
-22
lines changed

4 files changed

+1
-22
lines changed

app/assets/javascripts/backbone/views/ProtipView.js.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ window.ProtipView = Backbone.View.extend(
66
"click .upvote,.small-upvote": "upvote"
77
"click .flag": "flag"
88
"click .user-flag": "user_flag"
9-
"click .queue": "queue"
109
"click .feature": "feature"
1110
"click .like": "like"
1211

@@ -32,9 +31,6 @@ window.ProtipView = Backbone.View.extend(
3231
user_flag: (e)->
3332
$(e.target).addClass('user-flagged')
3433

35-
queue: ->
36-
$(@).toggleClass('queued')
37-
3834
feature: ->
3935
$(@).toggleClass('featured')
4036

app/assets/javascripts/protips.js.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ window.registerToggles = ->
219219
$(@).toggleClass('flagged')
220220
$('.user-flag').on 'click', ->
221221
$(@).addClass('user-flagged')
222-
$('.queue').on 'click', ->
223-
$(@).toggleClass('queued')
224222
$('.feature').on 'click', ->
225223
$(@).toggleClass('featured')
226224
$('.like').on 'click', ->

app/assets/stylesheets/new-new-home.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -503,21 +503,6 @@
503503
}
504504
}
505505
}
506-
.queue {
507-
&:before {
508-
content: "l";
509-
}
510-
&:after {
511-
content: "Queue for Hackernews";
512-
}
513-
background-position: 0px -14px;
514-
&.queued {
515-
&:after {
516-
content: "Queued for Hackernews";
517-
}
518-
color: #e68b42 !important;
519-
}
520-
}
521506
.reviewed {
522507
color: #fff;
523508
&:before {

app/controllers/protips_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class ProtipsController < ApplicationController
22

33
before_action :access_required, only: [:new, :create, :edit, :update, :destroy, :me]
44
before_action :require_skills_first, only: [:new, :create]
5-
before_action :lookup_protip, only: %i(show edit update destroy upvote tag flag queue feature delete_tag)
5+
before_action :lookup_protip, only: %i(show edit update destroy upvote tag flag feature delete_tag)
66
before_action :reformat_tags, only: [:create, :update]
77
before_action :verify_ownership, only: [:edit, :update, :destroy]
88
before_action :ensure_single_tag, only: [:subscribe, :unsubscribe]

0 commit comments

Comments
 (0)