Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
09039323
Commit
09039323
authored
Nov 01, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
d4052923
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
25 deletions
+28
-25
app/controllers/commits_controller.rb
app/controllers/commits_controller.rb
+1
-0
app/controllers/snippets_controller.rb
app/controllers/snippets_controller.rb
+1
-0
app/controllers/team_members_controller.rb
app/controllers/team_members_controller.rb
+1
-0
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+25
-25
No files found.
app/controllers/commits_controller.rb
View file @
09039323
...
@@ -2,6 +2,7 @@ require "base64"
...
@@ -2,6 +2,7 @@ require "base64"
class
CommitsController
<
ApplicationController
class
CommitsController
<
ApplicationController
before_filter
:project
before_filter
:project
layout
"project"
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:add_project_abilities
...
...
app/controllers/snippets_controller.rb
View file @
09039323
class
SnippetsController
<
ApplicationController
class
SnippetsController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:authenticate_user!
before_filter
:project
before_filter
:project
layout
"project"
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:add_project_abilities
...
...
app/controllers/team_members_controller.rb
View file @
09039323
class
TeamMembersController
<
ApplicationController
class
TeamMembersController
<
ApplicationController
before_filter
:project
before_filter
:project
layout
"project"
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:add_project_abilities
...
...
app/views/layouts/project.html.haml
View file @
09039323
...
@@ -14,32 +14,32 @@
...
@@ -14,32 +14,32 @@
#container
#container
=
render
:partial
=>
"layouts/flash"
=
render
:partial
=>
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel"
=
render
:partial
=>
"layouts/head_panel"
=
render
:partial
=>
"layouts/page_title"
.project-container
.project-container
.project-sidebar.grid_1
.project-sidebar
%input
.git-url.text
{
:id
=>
""
,
:name
=>
""
,
:readonly
=>
""
,
:type
=>
"text"
,
:value
=>
@project
.
url_to_repo
}
.fixed
%aside
%input
.git-url.text
{
:id
=>
""
,
:name
=>
""
,
:readonly
=>
""
,
:type
=>
"text"
,
:value
=>
@project
.
url_to_repo
}
=
link_to
image_tag
(
"home.png"
,
:width
=>
20
),
project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"show"
,
:id
=>
@project
)
?
"current"
:
nil
%aside
=
link_to
"Tree"
,
tree_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"tree"
,
:id
=>
@project
)
?
"current"
:
nil
=
link_to
image_tag
(
"home.png"
,
:width
=>
20
),
project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"show"
,
:id
=>
@project
)
?
"current"
:
nil
=
link_to
"Commits"
,
project_commits_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"index"
,
:project_id
=>
@project
)
?
"current"
:
nil
=
link_to
"Tree"
,
tree_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"tree"
,
:id
=>
@project
)
?
"current"
:
nil
=
link_to
team_project_path
(
@project
),
:class
=>
(
current_page?
(
:controller
=>
"projects"
,
:action
=>
"team"
,
:id
=>
@project
)
||
controller
.
controller_name
==
"team_members"
)
?
"current"
:
nil
do
=
link_to
"Commits"
,
project_commits_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"index"
,
:project_id
=>
@project
)
?
"current"
:
nil
Team
=
link_to
team_project_path
(
@project
),
:class
=>
(
current_page?
(
:controller
=>
"projects"
,
:action
=>
"team"
,
:id
=>
@project
)
||
controller
.
controller_name
==
"team_members"
)
?
"current"
:
nil
do
-
if
@project
.
users_projects
.
count
>
0
Team
%span
{
:class
=>
"top_menu_count"
}=
@project
.
users_projects
.
count
-
if
@project
.
users_projects
.
count
>
0
=
link_to
project_issues_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
%span
{
:class
=>
"top_menu_count"
}=
@project
.
users_projects
.
count
Issues
=
link_to
project_issues_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
-
if
@project
.
issues
.
opened
.
count
>
0
Issues
%span
{
:class
=>
"top_menu_count"
}=
@project
.
issues
.
opened
.
count
-
if
@project
.
issues
.
opened
.
count
>
0
=
link_to
wall_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"wall"
,
:id
=>
@project
)
?
"current"
:
nil
do
%span
{
:class
=>
"top_menu_count"
}=
@project
.
issues
.
opened
.
count
Wall
=
link_to
wall_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"wall"
,
:id
=>
@project
)
?
"current"
:
nil
do
-
if
@project
.
common_notes
.
count
>
0
Wall
%span
{
:class
=>
"top_menu_count"
}=
@project
.
common_notes
.
count
-
if
@project
.
common_notes
.
count
>
0
=
link_to
project_snippets_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"snippets"
)
?
"current"
:
nil
do
%span
{
:class
=>
"top_menu_count"
}=
@project
.
common_notes
.
count
Snippets
=
link_to
project_snippets_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"snippets"
)
?
"current"
:
nil
do
-
if
@project
.
snippets
.
count
>
0
Snippets
%span
{
:class
=>
"top_menu_count"
}=
@project
.
snippets
.
non_expired
.
count
-
if
@project
.
snippets
.
count
>
0
-
if
@commit
%span
{
:class
=>
"top_menu_count"
}=
@project
.
snippets
.
non_expired
.
count
=
link_to
truncate
(
commit_name
(
@project
,
@commit
),
:length
=>
15
),
project_commit_path
(
@project
,
:id
=>
@commit
.
id
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"show"
,
:project_id
=>
@project
,
:id
=>
@commit
.
id
)
?
"current"
:
nil
-
if
@commit
=
link_to
truncate
(
commit_name
(
@project
,
@commit
),
:length
=>
15
),
project_commit_path
(
@project
,
:id
=>
@commit
.
id
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"show"
,
:project_id
=>
@project
,
:id
=>
@commit
.
id
)
?
"current"
:
nil
.project-content
.project-content
...
...
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