New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move view_file into files controller #15766
Conversation
1202320
to
66fc82e
Compare
66fc82e
to
faf4056
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15766 +/- ##
==========================================
+ Coverage 86.10% 86.13% +0.03%
==========================================
Files 793 793
Lines 26024 26023 -1
==========================================
+ Hits 22407 22415 +8
+ Misses 3617 3608 -9 |
@@ -25,6 +25,3 @@ | |||
= link_to 'Repository State', project_package_repository_binaries_path(@project, @package_name, @repository) | |||
%li.breadcrumb-item.active{ 'aria-current' => 'page' } | |||
Statistics | |||
- if current_page?(package_view_file_path(@project, @package)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry but I don't see the same code in there...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current_page?(package_view_file_path(@project, @package))
is equivalent to action_name == 'show'
in the context of the new controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright
Depends on #15754