forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add webui routes and view skeleton for request index
Co-authored-by: Daniel Donisa <daniel.donisa@suse.com> Co-authored-by: Dario Leidi <dleidi@suse.com> Co-authored-by: Eduardo Navarro <enavarro@suse.com> Co-authored-by: Jacob Michalskie <jacob.michalskie@suse.com> Co-authored-by: Lukas Krause <lkrause@suse.de> Co-authored-by: Rubhan Azeem <rubhan.azeem@suse.com>
- Loading branch information
1 parent
5d1eecb
commit 6358df3
Showing
4 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 17 additions & 9 deletions
26
src/api/app/views/webui/request/_breadcrumb_items.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
:ruby | ||
current_page = current_page?(request_show_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_build_results_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_rpm_lint_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_changes_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_mentioned_issues_path(@bs_request.number, params[:request_action_id])) | ||
- if current_page | ||
%li.breadcrumb-item.active{ 'aria-current' => 'page' } | ||
Request #{@bs_request.number} | ||
- if Flipper.enabled?(:request_index, User.session!) | ||
- if action_name == 'index' | ||
%li.breadcrumb-item.active{ 'aria-current' => 'page' } | ||
Requests | ||
- else | ||
%li.breadcrumb-item | ||
= link_to('Requests', requests_path) | ||
- if @bs_request.present? | ||
:ruby | ||
current_page = current_page?(request_show_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_build_results_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_rpm_lint_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_changes_path(@bs_request.number, params[:request_action_id])) || | ||
current_page?(request_mentioned_issues_path(@bs_request.number, params[:request_action_id])) | ||
- if current_page | ||
%li.breadcrumb-item.active{ 'aria-current' => 'page' } | ||
Request #{@bs_request.number} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters