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
Boxiang Sun
gitlab-ce
Commits
2746be6c
Commit
2746be6c
authored
Apr 24, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Home button should targeted on root page of context
parent
b5fdacd1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
13 deletions
+6
-13
app/views/layouts/_app_menu.html.haml
app/views/layouts/_app_menu.html.haml
+1
-1
app/views/layouts/_const_menu_links.html.haml
app/views/layouts/_const_menu_links.html.haml
+0
-1
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-1
app/views/layouts/_project_menu.html.haml
app/views/layouts/_project_menu.html.haml
+1
-4
app/views/layouts/admin.html.haml
app/views/layouts/admin.html.haml
+1
-2
app/views/layouts/error.html.haml
app/views/layouts/error.html.haml
+1
-2
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+1
-2
No files found.
app/views/layouts/_app_menu.html.haml
View file @
2746be6c
%nav
.main_menu
=
render
"layouts/const_menu_links
"
=
link_to
"Home"
,
root_path
,
:class
=>
"home
#{
"current"
if
current_page?
(
projects_path
)
||
current_page?
(
root_path
)
}
"
,
:title
=>
"Home
"
=
link_to
dashboard_issues_path
,
:class
=>
"
#{
"current"
if
current_page?
(
dashboard_issues_path
)
}
"
,
:id
=>
"issues_slide"
do
Issues
%span
.count
=
current_user
.
assigned_issues
.
opened
.
count
...
...
app/views/layouts/_const_menu_links.html.haml
deleted
100644 → 0
View file @
b5fdacd1
=
link_to
"Home"
,
root_path
,
:class
=>
"home
#{
"current"
if
current_page?
(
projects_path
)
||
current_page?
(
root_path
)
}
"
,
:title
=>
"Home"
app/views/layouts/_head.html.haml
View file @
2746be6c
...
...
@@ -2,7 +2,7 @@
%meta
{
:charset
=>
"utf-8"
}
%title
GitLab
=
"
-
#{
@project
.
name
}
"
if
@project
&&
!
@project
.
new_record?
=
"
>
#{
@project
.
name
}
"
if
@project
&&
!
@project
.
new_record?
=
favicon_link_tag
'favicon.ico'
=
stylesheet_link_tag
"application"
=
javascript_include_tag
"application"
...
...
app/views/layouts/_project_menu.html.haml
View file @
2746be6c
%nav
.main_menu
=
render
"layouts/const_menu_links"
=
link_to
project_path
(
@project
),
:class
=>
"
#{
project_tab_class
}
"
,
:title
=>
"Project"
do
Project
=
link_to
@project
.
code
,
project_path
(
@project
),
:class
=>
"home
#{
project_tab_class
}
"
,
:title
=>
"Project"
-
if
@project
.
repo_exists?
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
"Files"
,
tree_project_ref_path
(
@project
,
@project
.
root_ref
),
:class
=>
tree_tab_class
...
...
app/views/layouts/admin.html.haml
View file @
2746be6c
...
...
@@ -6,8 +6,7 @@
=
render
"layouts/head_panel"
,
:title
=>
"Admin area"
.container
%nav
.main_menu
=
render
"layouts/const_menu_links"
=
link_to
"Stats"
,
admin_root_path
,
:class
=>
controller
.
controller_name
==
"dashboard"
?
"current"
:
nil
=
link_to
"Stats"
,
admin_root_path
,
:class
=>
"home
#{
controller
.
controller_name
==
"dashboard"
?
"current"
:
nil
}
"
=
link_to
"Projects"
,
admin_projects_path
,
:class
=>
controller
.
controller_name
==
"projects"
?
"current"
:
nil
=
link_to
"Users"
,
admin_users_path
,
:class
=>
controller
.
controller_name
==
"users"
?
"current"
:
nil
=
link_to
"Emails"
,
admin_emails_path
,
:class
=>
controller
.
controller_name
==
"mailer"
?
"current"
:
nil
...
...
app/views/layouts/error.html.haml
View file @
2746be6c
...
...
@@ -5,7 +5,6 @@
=
render
"layouts/flash"
=
render
"layouts/head_panel"
,
:title
=>
""
.container
%nav
.main_menu
=
render
"layouts/const_menu_links"
.content
%br
%h3
=
yield
app/views/layouts/profile.html.haml
View file @
2746be6c
...
...
@@ -6,8 +6,7 @@
=
render
"layouts/head_panel"
,
:title
=>
"Profile"
.container
%nav
.main_menu
=
render
"layouts/const_menu_links"
=
link_to
"Profile"
,
profile_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:show
)
?
"current"
:
nil
=
link_to
"Profile"
,
profile_path
,
:class
=>
"home
#{
current_page?
(
:controller
=>
"profile"
,
:action
=>
:show
)
?
"current"
:
nil
}
"
=
link_to
"Password & token"
,
profile_password_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:password
)
?
"current"
:
nil
=
link_to
"Design"
,
profile_design_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:design
)
?
"current"
:
nil
=
link_to
keys_path
,
:class
=>
controller
.
controller_name
==
"keys"
?
"current"
:
nil
do
...
...
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