gitlabhq/gitlabhq — pull request #5560 by jhollingsworth (2013-11-07 15:44:11+00:00)
Title: Adding authenticated public mode.

Added public_mode icons to project view (rather than just text).
Added public projects to search results.

This pull request changes how public projects are handled. Public will have 3 modes private/restricted/public. The behaviors are as follows:

* __Private__ - Same behavior as before. User rights must be explicitly granted.
* __Restricted__ - Similar to public mode, but requires an authenticated user. This means cloning _requires_ authentication. These projects will show in the public area _only_ when a user is logged in.
* __Public__ - Same behavior as before. This means cloning _does not require_ authentication. These projects will show in the public area without requiring a user.

Here are some screen shots of the interface:

#### Create Project
Should this be a radio group?
Would it make more sense to call it disabled/authenticated/open rather than private/restricted/public?
![create project](https://f.cloud.github.com/assets/2117996/1492517/b0fa35cc-47c1-11e3-90e0-df5ea80b9974.png)

#### Edit Project
See above comments for create project.
![edit project](https://f.cloud.github.com/assets/2117996/1492520/be330dd6-47c1-11e3-8660-dfec694af8b7.png)

#### Public Mode View
![restricted project view](https://f.cloud.github.com/assets/2117996/1492524/c6ffd41c-47c1-11e3-886b-189ca1bcbd3d.png)

#### Public/Restricted Projects in Search Results
![public projects search](https://f.cloud.github.com/assets/2117996/1492528/cb753aa0-47c1-11e3-8fea-404d6b55c8ef.png)

#### Restricted Projects Show Up in Public Area for Logged In Users
![public projects logged in](https://f.cloud.github.com/assets/2117996/1492531/d06e1a9a-47c1-11e3-891c-38780924d1df.png)

#### Restricted Project in Admin Area (see Brightbox/Puppet)
![admin projects view](https://f.cloud.github.com/assets/2117996/1492535/d4b80386-47c1-11e3-9dd9-68a97d1d250d.png)