assemblymade/coderwall

View on GitHub
app/views/opportunities/index.js.erb

Summary

Maintainability
Test Coverage
$('ul.jobs').append("<%= escape_javascript(render @jobs) %>");
if (<%= @jobs_left %> <= 20) {
        $('.new-more').hide()
        } else {
        $('.new-more').attr('href', '<%= jobs_path(:location => params[:location].parameterize, :skill => params[:skill], :page => @page+1) %>')
        }