diff --git a/app/assets/stylesheets/themes/repositories.scss b/app/assets/stylesheets/themes/repositories.scss new file mode 100644 index 000000000..a4244ac97 --- /dev/null +++ b/app/assets/stylesheets/themes/repositories.scss @@ -0,0 +1,8 @@ +#repository-columns-dropdown { + float: right; +} + +.new-repository-button { + float: left; + margin-right: 5px; +} diff --git a/app/assets/stylesheets/themes/scinote.scss b/app/assets/stylesheets/themes/scinote.scss index 39ae3b334..6967c9b2a 100644 --- a/app/assets/stylesheets/themes/scinote.scss +++ b/app/assets/stylesheets/themes/scinote.scss @@ -2,7 +2,7 @@ @import "mixins"; @import "main_navigation"; @import "buttons"; - +@import "repositories"; /** Layout **/ body, diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 03cdf18a8..d0351a324 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -11,6 +11,8 @@ class RepositoriesController < ApplicationController before_action :check_create_permissions, only: %i(create_new_modal create copy_modal copy) + # layout 'fluid' + def index unless @repositories.length.zero? && current_team redirect_to repository_path(@repositories.first) and return @@ -46,7 +48,7 @@ class RepositoriesController < ApplicationController if @repository.save flash[:success] = t('repositories.index.modal_create.success_flash', name: @repository.name) - render json: { url: team_repositories_path(repository: @repository) }, + render json: { url: repository_path(@repository) }, status: :ok else render json: @repository.errors, diff --git a/app/views/repositories/_sidebar.html.erb b/app/views/repositories/_sidebar.html.erb new file mode 100644 index 000000000..273fd0f17 --- /dev/null +++ b/app/views/repositories/_sidebar.html.erb @@ -0,0 +1,23 @@ + <%= content_for :sidebar do %> +