Feature #39882 » highlight-roadmap-version-v2.diff
| app/assets/stylesheets/application.css | ||
|---|---|---|
| 945 | 945 |
div#roadmap .wiki h1 { font-size: 120%; }
|
| 946 | 946 |
div#roadmap .wiki h2 { font-size: 110%; }
|
| 947 | 947 |
div#roadmap h2, div#roadmap h3 {padding-inline-end: 0;}
|
| 948 |
div#roadmap .version-article > header {padding-block: 4px;}
|
|
| 949 |
div#roadmap .version-article > header h3 {margin-block: 0;}
|
|
| 950 |
div#roadmap .version-article > header .badge {inset-block-end: 0;}
|
|
| 951 |
div#roadmap .version-article > header .contextual {margin-block: 0;}
|
|
| 952 |
div#roadmap header:target {background-color: var(--oc-blue-0);}
|
|
| 948 | 953 |
div#roadmap h3 svg {margin-inline-end: 4px;}
|
| 949 | 954 |
body.controller-versions.action-show div#roadmap .related-issues {inline-size: 70%;}
|
| 950 | 955 | |
| app/views/versions/_sidebar.html.erb | ||
|---|---|---|
| 36 | 36 |
<ul> |
| 37 | 37 |
<% @versions.each do |version| %> |
| 38 | 38 |
<li> |
| 39 |
<%= link_to(format_version_name(version), "##{version_anchor(version)}") %>
|
|
| 39 |
<%= link_to(format_version_name(version), "#version-#{version.id}") %>
|
|
| 40 | 40 |
</li> |
| 41 | 41 |
<% end %> |
| 42 | 42 |
</ul> |
| app/views/versions/index.html.erb | ||
|---|---|---|
| 16 | 16 |
<div id="roadmap"> |
| 17 | 17 |
<% @versions.each do |version| %> |
| 18 | 18 |
<article class="version-article <%= version.css_classes %>"> |
| 19 |
<% if User.current.allowed_to?(:manage_versions, version.project) %>
|
|
| 20 |
<div class="contextual">
|
|
| 21 |
<%= link_to sprite_icon('edit', l(:button_edit)), edit_version_path(version), :title => l(:button_edit), :class => 'icon-only icon-edit' %>
|
|
| 22 |
</div>
|
|
| 23 |
<% end %>
|
|
| 24 |
<header>
|
|
| 19 |
<header id="version-<%= version.id %>">
|
|
| 20 |
<% if User.current.allowed_to?(:manage_versions, version.project) %>
|
|
| 21 |
<div class="contextual">
|
|
| 22 |
<%= link_to sprite_icon('edit', l(:button_edit)), edit_version_path(version), :title => l(:button_edit), :class => 'icon-only icon-edit' %>
|
|
| 23 |
</div>
|
|
| 24 |
<% end %>
|
|
| 25 | 25 |
<h3 class="icon icon-package version inline-flex"> |
| 26 | 26 |
<%= sprite_icon 'package' %> |
| 27 | 27 |
<%= link_to_version version, :name => version_anchor(version) %> |
| test/functional/versions_controller_test.rb | ||
|---|---|---|
| 43 | 43 |
assert_select 'input[type=hidden][name=?]', 'tracker_ids[]' |
| 44 | 44 |
assert_select 'input[type=checkbox][name=?]', 'tracker_ids[]', 3 |
| 45 | 45 |
# Links to versions anchors |
| 46 |
assert_select 'a[href=?]', '#2.0'
|
|
| 46 |
assert_select 'a[href=?]', '#version-3'
|
|
| 47 | 47 |
# Links to completed versions in the sidebar |
| 48 | 48 |
assert_select 'a[href=?]', '/versions/1' |
| 49 | 49 |
end |
| ... | ... | |
| 89 | 89 |
assert_response :success |
| 90 | 90 | |
| 91 | 91 |
assert_select '#sidebar' do |
| 92 |
assert_select 'a[href=?]', '#2.0', :text => '2.0'
|
|
| 93 |
assert_select 'a[href=?]', '#subproject1-2.0', :text => 'eCookbook Subproject 1 - 2.0'
|
|
| 92 |
assert_select 'a[href=?]', '#version-3', :text => '2.0'
|
|
| 93 |
assert_select 'a[href=?]', '#version-4', :text => 'eCookbook Subproject 1 - 2.0'
|
|
| 94 | 94 |
end |
| 95 | 95 |
assert_select '#content' do |
| 96 | 96 |
assert_select 'a[name=?]', '2.0', :text => '2.0' |
- « Previous
- 1
- 2
- Next »