diff --git a/app/assets/javascripts/pq.js b/app/assets/javascripts/pq.js index 91707f44d..bd503e2b9 100644 --- a/app/assets/javascripts/pq.js +++ b/app/assets/javascripts/pq.js @@ -141,13 +141,13 @@ var document, $, ga; var filteredQuestionCount = 0; $question.each(function (i, li) { // Count the total number of questions - if ( $(li).has('a.question-uin').length ) { + if ( $(li).has('h2').length ) { totalQuestionCount++; } }); $question.each(function (i, li) { // Count the number of filtered questions - if ( $(li).has('a.question-uin').length && $(li).css("display") != "none" ) { + if ( $(li).has('h2').length && $(li).css("display") != "none" ) { filteredQuestionCount++; } }); diff --git a/app/assets/stylesheets/pq.scss b/app/assets/stylesheets/pq.scss index 976035f6b..d8796f917 100644 --- a/app/assets/stylesheets/pq.scss +++ b/app/assets/stylesheets/pq.scss @@ -390,9 +390,13 @@ textarea.form-control { font-size: 1.6rem; text-align: right; } -.question-type { + +.question h2 { color: #555; font-weight: bold; +} + +.question-type { margin-left: 7px; } diff --git a/app/views/early_bird_dashboard/index.html.slim b/app/views/early_bird_dashboard/index.html.slim index 5298b38bc..ff5e31368 100644 --- a/app/views/early_bird_dashboard/index.html.slim +++ b/app/views/early_bird_dashboard/index.html.slim @@ -45,7 +45,7 @@ - @questions.each do |question| li.question h2 - = link_to(question.uin, {controller: 'pqs', action: 'show', id: question.uin}, :class => "question-uin") + = question.uin - if question.question_type == 'NamedDay' span.question-type | Named Day - if question.transferred