Patch #22291 » 0001-Render-category-in-issue-page-as-a-link-to-all-open-.patch
| app/views/issues/show.html.erb | ||
|---|---|---|
| 49 | 49 |
rows.left l(:field_assigned_to), (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to' |
| 50 | 50 |
end |
| 51 | 51 |
unless @issue.disabled_core_fields.include?('category_id') || (@issue.category.nil? && @issue.project.issue_categories.none?)
|
| 52 |
rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category'
|
|
| 52 |
rows.left l(:field_category), (@issue.category ? (link_to(@issue.category.name, project_issues_path(@issue.project, :status_id => 'o', :category_id => @issue.category.id, :set_filter => 1))) : "-"), :class => 'category'
|
|
| 53 | 53 |
end |
| 54 | 54 |
unless @issue.disabled_core_fields.include?('fixed_version_id') || (@issue.fixed_version.nil? && @issue.assignable_versions.none?)
|
| 55 | 55 |
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version' |
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 2009 | 2009 |
assert_select 'table.attributes .category', 0 |
| 2010 | 2010 |
end |
| 2011 | 2011 | |
| 2012 |
def test_show_should_display_category_as_link |
|
| 2013 |
get :show, :params => {
|
|
| 2014 |
:id => 1 |
|
| 2015 |
} |
|
| 2016 | ||
| 2017 |
assert_response :success |
|
| 2018 |
assert_select '.attributes .category .value a[href=?]', '/projects/ecookbook/issues?category_id=1&set_filter=1&status_id=o', :text => "Printing" |
|
| 2019 |
end |
|
| 2020 | ||
| 2012 | 2021 |
def test_show_should_display_link_to_the_assignee |
| 2013 | 2022 |
get :show, :params => {
|
| 2014 | 2023 |
:id => 2 |
- « Previous
- 1
- 2
- 3
- 4
- Next »