Defect #42545 » 42545-20250408114000.patch
| app/helpers/application_helper.rb | ||
|---|---|---|
| 436 | 436 | |
| 437 | 437 |
def format_changeset_comments(changeset, options={})
|
| 438 | 438 |
method = options[:short] ? :short_comments : :comments |
| 439 |
textilizable changeset, method, :formatting => Setting.commit_logs_formatting?
|
|
| 439 |
textilizable changeset, method, project: changeset.project, formatting: Setting.commit_logs_formatting?
|
|
| 440 | 440 |
end |
| 441 | 441 | |
| 442 | 442 |
def due_date_distance_in_words(date) |
| test/fixtures/changesets.yml | ||
|---|---|---|
| 102 | 102 |
user_id: 3 |
| 103 | 103 |
repository_id: 10 |
| 104 | 104 |
committer: dlopper |
| 105 |
changesets_011: |
|
| 106 |
commit_date: "2025-04-07" |
|
| 107 |
comments: |- |
|
| 108 |
This commit references an issue and a [[wiki]] page |
|
| 109 |
Refs #2 |
|
| 110 |
committed_on: 2025-04-07 19:00:00 |
|
| 111 |
revision: "11" |
|
| 112 |
id: 110 |
|
| 113 |
scmid: |
|
| 114 |
user_id: 3 |
|
| 115 |
repository_id: 10 |
|
| 116 |
committer: dlopper |
|
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 3265 | 3265 |
end |
| 3266 | 3266 |
end |
| 3267 | 3267 | |
| 3268 |
def test_show_render_changeset_comments_in_original_context |
|
| 3269 |
issue = Issue.find(9) |
|
| 3270 |
issue.changeset_ids = [110] |
|
| 3271 |
issue.save! |
|
| 3272 | ||
| 3273 |
@request.session[:user_id] = 2 |
|
| 3274 |
get :issue_tab, params: {id: issue.id, name: 'changesets', format: 'js'}, xhr: true
|
|
| 3275 | ||
| 3276 |
assert_select 'div#changeset-110' do |
|
| 3277 |
# assert_select 'div.tabs a[id=?]', 'tab-changesets', text: 'unicorns' |
|
| 3278 |
assert_select 'div.changeset-comments' do |
|
| 3279 |
assert_select 'a[href=?]', '/projects/ecookbook/wiki/Wiki', text: 'wiki' |
|
| 3280 |
end |
|
| 3281 |
end |
|
| 3282 |
end |
|
| 3283 | ||
| 3268 | 3284 |
def test_show_should_display_spent_time_tab_for_issue_with_time_entries |
| 3269 | 3285 |
@request.session[:user_id] = 1 |
| 3270 | 3286 |
get :show, :params => {:id => 3}
|