Skip to content

Commit

Permalink
Merge pull request #10275 from danidoni/move-actions-to-the-sidebar-u…
Browse files Browse the repository at this point in the history
…nder-the-projects-page

Move Create Project actions to the sidebar under the Actions section
  • Loading branch information
dmarcoux committed Oct 12, 2020
2 parents 6e1e25f + d9dbfa6 commit 8cbf10b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/api/app/views/webui/project/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@
%span#toggle-text
Include #{::Configuration.unlisted_projects_filter_description}
- if User.session
%li.list-inline-item
= link_to(new_project_path) do
%i.fas.fa-plus-circle.text-primary
Create Project
- if feature_enabled?(:responsive_ux)
- content_for :actions do
%li.nav-item
= link_to(new_project_path, class: 'nav-link') do
%i.fas.fa-lg.mr-2.fa-plus-circle
Create Project
- else
%li.list-inline-item
= link_to(new_project_path) do
%i.fas.fa-plus-circle.text-primary
Create Project

%table.responsive.table.table-sm.table-bordered.table-hover.w-100#projects-datatable{ data: { source: projects_path(format: :json),
all: 'false' } }
Expand Down

0 comments on commit 8cbf10b

Please sign in to comment.