BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
60139345
Commit
60139345
authored
Jan 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes issue when user is not logged in but viewing public project
parent
a5267d0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
projects_helper.rb
app/helpers/projects_helper.rb
+6
-4
No files found.
app/helpers/projects_helper.rb
View file @
60139345
...
...
@@ -54,13 +54,15 @@ module ProjectsHelper
link_to
(
simple_sanitize
(
owner
.
name
),
user_path
(
owner
))
end
all_projects
=
current_user
.
authorized_projects
.
sorted_by_activity
.
non_archived
all_projects
=
current_user
.
authorized_projects
.
sorted_by_activity
.
non_archived
if
current_user
project_link
=
link_to
project_path
(
project
),
{
class:
"project-item-select-holder
js-projects-dropdown-toggle
"
}
do
project_link
=
link_to
project_path
(
project
),
{
class:
"project-item-select-holder
#{
"js-projects-dropdown-toggle"
if
current_user
}
"
}
do
link_output
=
simple_sanitize
(
project
.
name
)
link_output
+=
content_tag
:span
,
nil
,
{
class:
"fa fa-chevron-down dropdown-toggle-caret"
}
link_output
+=
content_tag
:span
,
nil
,
{
class:
"fa fa-chevron-down dropdown-toggle-caret"
}
if
current_user
link_output
+=
project_select_tag
:project_path
,
class:
"project-item-select js-projects-dropdown"
,
data:
{
include_groups:
false
}
link_output
+=
project_select_tag
:project_path
,
class:
"project-item-select js-projects-dropdown"
,
data:
{
include_groups:
false
}
if
current_user
link_output
end
full_title
=
namespace_link
+
' / '
+
project_link
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment