fix_32765.patch

Marius BALTEANU, 2020-01-21 21:50

Download (4.7 KB)

View differences:

app/helpers/application_helper.rb
1043 1043
                url = issue_url(issue, :only_path => only_path, :anchor => anchor)
1044 1044
                link =
1045 1045
                  if sep == '##'
1046
                    link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}",
1046
                    link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}: #{issue.subject}",
1047 1047
                            url,
1048 1048
                            :class => issue.css_classes,
1049
                            :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + ": #{issue.subject}"
1049
                            :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})")
1050 1050
                  else
1051 1051
                    link_to("##{oid}#{comment_suffix}",
1052 1052
                            url,
test/helpers/application_helper_test.rb
309 309
                         :class => Issue.find(3).css_classes,
310 310
                         :title => 'Bug: Error 281 when updating a recipe (New)')
311 311
    ext_issue_link = link_to(
312
                         'Bug #3',
312
                         'Bug #3: Error 281 when updating a recipe',
313 313
                         {:controller => 'issues', :action => 'show', :id => 3},
314 314
                         :class => Issue.find(3).css_classes,
315
                         :title => 'Bug: Error 281 when updating a recipe (New)') +
316
                           ": Error 281 when updating a recipe"
315
                         :title => 'Bug: Error 281 when updating a recipe (New)')
317 316
    note_link = link_to(
318 317
                         '#3-14',
319 318
                         {:controller => 'issues', :action => 'show',
......
321 320
                         :class => Issue.find(3).css_classes,
322 321
                         :title => 'Bug: Error 281 when updating a recipe (New)')
323 322
    ext_note_link = link_to(
324
                         'Bug #3-14',
323
                         'Bug #3-14: Error 281 when updating a recipe',
325 324
                         {:controller => 'issues', :action => 'show',
326 325
                          :id => 3, :anchor => 'note-14'},
327 326
                         :class => Issue.find(3).css_classes,
328
                         :title => 'Bug: Error 281 when updating a recipe (New)') +
329
                           ": Error 281 when updating a recipe"
327
                         :title => 'Bug: Error 281 when updating a recipe (New)')
330 328
    note_link2 = link_to(
331 329
                         '#3#note-14',
332 330
                         {:controller => 'issues', :action => 'show',
......
334 332
                         :class => Issue.find(3).css_classes,
335 333
                         :title => 'Bug: Error 281 when updating a recipe (New)')
336 334
    ext_note_link2 = link_to(
337
                         'Bug #3#note-14',
335
                         'Bug #3#note-14: Error 281 when updating a recipe',
338 336
                         {:controller => 'issues', :action => 'show',
339 337
                          :id => 3, :anchor => 'note-14'},
340 338
                         :class => Issue.find(3).css_classes,
341
                         :title => 'Bug: Error 281 when updating a recipe (New)') +
342
                           ": Error 281 when updating a recipe"
339
                         :title => 'Bug: Error 281 when updating a recipe (New)')
343 340

  
344 341
    revision_link = link_to(
345 342
                         'r1',
......
398 395
      # should not ignore leading zero
399 396
      '#03'                         => '#03',
400 397
      # tickets with more info
401
      '##3, [##3], (##3) and ##3.'      => "#{ext_issue_link}, [#{ext_issue_link}], (#{ext_issue_link}) and #{ext_issue_link}.",
402
      '##3-14'                       => ext_note_link,
403
      '##3#note-14'                  => ext_note_link2,
404
      '##03'                         => '##03',
398
      '##3, [##3], (##3) and ##3.'  => "#{ext_issue_link}, [#{ext_issue_link}], (#{ext_issue_link}) and #{ext_issue_link}.",
399
      '##3-14'                      => ext_note_link,
400
      '##3#note-14'                 => ext_note_link2,
401
      '##03'                        => '##03',
405 402
      # changesets
406 403
      'r1'                          => revision_link,
407 404
      'r1.'                         => "#{revision_link}.",