-
- Downloads
There was an error fetching the commit references. Please try again later.
Move scoped_label into label presenter
When rendering a label we want to check 'scoped_label' feature availability on a project/group where label is being used. For this reason a label presenter is used in UI and information about context project/group is passed to this presenter.
Showing
- app/controllers/concerns/milestone_actions.rb 1 addition, 1 deletionapp/controllers/concerns/milestone_actions.rb
- app/helpers/labels_helper.rb 5 additions, 39 deletionsapp/helpers/labels_helper.rb
- app/models/global_label.rb 6 additions, 0 deletionsapp/models/global_label.rb
- app/models/global_milestone.rb 3 additions, 1 deletionapp/models/global_milestone.rb
- app/models/label.rb 5 additions, 0 deletionsapp/models/label.rb
- app/presenters/label_presenter.rb 43 additions, 0 deletionsapp/presenters/label_presenter.rb
- app/views/admin/labels/_label.html.haml 1 addition, 1 deletionapp/views/admin/labels/_label.html.haml
- app/views/groups/labels/index.html.haml 1 addition, 1 deletionapp/views/groups/labels/index.html.haml
- app/views/projects/issues/_issue.html.haml 2 additions, 2 deletionsapp/views/projects/issues/_issue.html.haml
- app/views/projects/labels/index.html.haml 2 additions, 2 deletionsapp/views/projects/labels/index.html.haml
- app/views/projects/merge_requests/_merge_request.html.haml 2 additions, 2 deletionsapp/views/projects/merge_requests/_merge_request.html.haml
- app/views/shared/_delete_label_modal.html.haml 2 additions, 2 deletionsapp/views/shared/_delete_label_modal.html.haml
- app/views/shared/_label.html.haml 4 additions, 4 deletionsapp/views/shared/_label.html.haml
- app/views/shared/_label_row.html.haml 2 additions, 3 deletionsapp/views/shared/_label_row.html.haml
- app/views/shared/issuable/_sidebar.html.haml 1 addition, 1 deletionapp/views/shared/issuable/_sidebar.html.haml
- app/views/shared/milestones/_issuable.html.haml 1 addition, 1 deletionapp/views/shared/milestones/_issuable.html.haml
- lib/banzai/filter/label_reference_filter.rb 4 additions, 2 deletionslib/banzai/filter/label_reference_filter.rb
- spec/helpers/labels_helper_spec.rb 29 additions, 19 deletionsspec/helpers/labels_helper_spec.rb
- spec/presenters/label_presenter_spec.rb 65 additions, 0 deletionsspec/presenters/label_presenter_spec.rb
app/presenters/label_presenter.rb
0 → 100644
spec/presenters/label_presenter_spec.rb
0 → 100644
Please register or sign in to comment