-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'epic/public_projects' of /home/git/repositories/gitlab/…
…gitlabhq
- Loading branch information
Showing
38 changed files
with
871 additions
and
674 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
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 +1 @@ | ||
6.1.0 | ||
6.2.0.pre |
Binary file not shown.
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
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
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
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
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,5 +1,26 @@ | ||
class Projects::ApplicationController < ApplicationController | ||
before_filter :project | ||
before_filter :repository | ||
layout 'projects' | ||
layout :determine_layout | ||
|
||
def authenticate_user! | ||
# Restrict access to Projects area only | ||
# for non-signed users | ||
if !current_user | ||
id = params[:project_id] || params[:id] | ||
@project = Project.find_with_namespace(id) | ||
|
||
return if @project && @project.public | ||
end | ||
|
||
super | ||
end | ||
|
||
def determine_layout | ||
if current_user | ||
'projects' | ||
else | ||
'public_projects' | ||
end | ||
end | ||
end |
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
%header.navbar.navbar-static-top.navbar-gitlab | ||
.navbar-inner | ||
.container | ||
%div.app_logo | ||
%span.separator | ||
= link_to public_root_path, class: "home" do | ||
%h1 GITLAB | ||
%span.separator | ||
%h1.project_name | ||
- if @project | ||
= project_title(@project) | ||
- else | ||
Public Projects | ||
|
||
%ul.nav | ||
%li | ||
%a | ||
%div.hide.turbolink-spinner | ||
%i.icon-refresh.icon-spin | ||
Loading... | ||
%li | ||
= link_to "Sign in", new_session_path(:user), class: 'btn btn-sign-in' |
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
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,28 +1,11 @@ | ||
!!! 5 | ||
%html{ lang: "en"} | ||
= render "layouts/head", title: "Public Projects" | ||
%body{class: "#{app_theme} application", :'data-page' => body_data_page} | ||
%body{class: "ui_mars application", :'data-page' => body_data_page} | ||
- if current_user | ||
= render "layouts/head_panel", title: "Public Projects" | ||
- else | ||
%header.navbar.navbar-static-top.navbar-gitlab | ||
.navbar-inner | ||
.container | ||
%div.app_logo | ||
%span.separator | ||
= link_to public_root_path, class: "home" do | ||
%h1 GITLAB | ||
%span.separator | ||
%h1.project_name Public Projects | ||
%ul.nav | ||
%li | ||
%a | ||
%div.hide.turbolink-spinner | ||
%i.icon-refresh.icon-spin | ||
Loading... | ||
%li | ||
= link_to "Sign in", new_session_path(:user) | ||
= render "layouts/public_head_panel" | ||
|
||
.container.navless-container | ||
.content | ||
= yield | ||
.content= yield |
Oops, something went wrong.