pdf.diff

diff for changeset 6313:81b83bbb8e6d - Akiko Takano, 2011-12-05 04:01

Download (1.13 KB)

View differences:

lib/redmine/export/pdf.rb Mon Dec 05 11:50:13 2011 +0900
360 360
            end
361 361
            pdf.Ln
362 362
          end
363 363
        end
364 364

  
365 365
        pdf.SetFontStyle('B',9)
366 366
        pdf.RDMCell(190,5, l(:label_history), "B")
367 367
        pdf.Ln
368
        indice = 0
368 369
        for journal in issue.journals.find(
369 370
                          :all, :include => [:user, :details],
370 371
                          :order => "#{Journal.table_name}.created_on ASC")
372
          indice = indice + 1
371 373
          pdf.SetFontStyle('B',8)
372 374
          pdf.RDMCell(190,5,
373
             format_time(journal.created_on) + " - " + journal.user.name)
375
             format_time(journal.created_on) + " - " + journal.user.name + "(note-#" + indice.to_s + ")" )
374 376
          pdf.Ln
375 377
          pdf.SetFontStyle('I',8)
376 378
          for detail in journal.details
377 379
            pdf.RDMMultiCell(190,5, "- " + show_detail(detail, true))
378 380
          end
379 381
          if journal.notes?
380 382
            pdf.Ln unless journal.details.empty?
381 383
            pdf.SetFontStyle('',8)