Skip to content

Commit

Permalink
Merge remote branch 'edavis10/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lest committed May 6, 2010
2 parents a73fbe7 + 1d4080e commit a505e8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/models/question_mailer.rb
@@ -1,4 +1,6 @@
class QuestionMailer < Mailer
unloadable

def asked_question(journal)
question = journal.question
subject "[Question ##{question.issue.id}] #{question.issue.subject}"
Expand Down
6 changes: 3 additions & 3 deletions lib/question_kanban_hooks.rb
Expand Up @@ -46,7 +46,7 @@ def view_kanbans_user_name(context = {})

protected

def updated_note_icon(issue)
def updated_note_icon(issue, title)
if issue && issue.journals.present?
# Get the last Journal with a note and see if that "could" have
# been an answer.
Expand All @@ -55,7 +55,7 @@ def updated_note_icon(issue)
question_askees = issue.questions.collect(&:assigned_to_id)

if last_journal_with_note && question_askees.include?(last_journal_with_note.user_id)
return image_tag('comment.png', :class => 'updated-note')
return image_tag('comment.png', :class => 'updated-note', :style=> 'left:0px', :alt => title, :title => title)
end
end

Expand All @@ -70,6 +70,6 @@ def question_icon(color, issue)
title = l(:question_text_ratio_questions_answered, :ratio => "#{answered_questions}/#{total_questions}")
link_to(image_tag("question-#{color}.png", :plugin => 'question_plugin', :title => title, :class => "kanban-question #{color}"),
{ :controller => 'issues', :action => 'show', :id => issue }) +
updated_note_icon(issue)
updated_note_icon(issue, title)
end
end

0 comments on commit a505e8f

Please sign in to comment.