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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cd567ee4
Commit
cd567ee4
authored
Feb 09, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Titled dashboard, admin, profile areas. Wider top panel. Restored search input
parent
fbd5296e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
25 deletions
+50
-25
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+1
-1
app/assets/stylesheets/top_panel.scss
app/assets/stylesheets/top_panel.scss
+7
-6
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+15
-7
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+19
-3
app/views/layouts/admin.html.haml
app/views/layouts/admin.html.haml
+2
-2
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+2
-2
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+2
-2
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+2
-2
No files found.
app/assets/stylesheets/common.scss
View file @
cd567ee4
...
@@ -97,7 +97,7 @@ $blue_link: "#2fa0bb";
...
@@ -97,7 +97,7 @@ $blue_link: "#2fa0bb";
min-width
:
$min_app_width
;
min-width
:
$min_app_width
;
max-width
:
$max_app_width
;
max-width
:
$max_app_width
;
margin
:auto
;
margin
:auto
;
margin-top
:
5
2px
;
margin-top
:
6
2px
;
}
}
.container-fluid
>
.sidebar
{
.container-fluid
>
.sidebar
{
...
...
app/assets/stylesheets/top_panel.scss
View file @
cd567ee4
...
@@ -11,24 +11,25 @@ body header {
...
@@ -11,24 +11,25 @@ body header {
-moz-box-shadow
:
0
-1px
0
white
inset
;
-moz-box-shadow
:
0
-1px
0
white
inset
;
-webkit-box-shadow
:
0
-1px
0
white
inset
;
-webkit-box-shadow
:
0
-1px
0
white
inset
;
height
:
5
0px
;
height
:
6
0px
;
.wrapper
{
.wrapper
{
margin
:auto
;
margin
:auto
;
min-width
:
$min_app_width
;
min-width
:
$min_app_width
;
max-width
:
$max_app_width
;
max-width
:
$max_app_width
;
position
:relative
;
position
:relative
;
padding
:
1
0
px
$app_padding
;
padding
:
1
5
px
$app_padding
;
}
}
.project_name
{
.project_name
{
float
:left
;
float
:left
;
width
:
400px
;
width
:
400px
;
margin
:
0
;
margin-right
:
30px
;
margin-right
:
30px
;
font-size
:
16px
;
font-size
:
20px
;
line-height
:
28px
;
font-weight
:bold
;
font-weight
:bold
;
padding
:
8px
;
color
:
#666
;
color
:
#333
;
text-shadow
:
0
1px
1px
#FFF
;
text-shadow
:
0
1px
1px
#FFF
;
}
}
...
@@ -118,7 +119,7 @@ body header {
...
@@ -118,7 +119,7 @@ body header {
header
.account-box
{
header
.account-box
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
top
:
8
px
;
top
:
13
px
;
z-index
:
10000
;
z-index
:
10000
;
width
:
128px
;
width
:
128px
;
font-size
:
11px
;
font-size
:
11px
;
...
...
app/helpers/application_helper.rb
View file @
cd567ee4
...
@@ -71,11 +71,11 @@ module ApplicationHelper
...
@@ -71,11 +71,11 @@ module ApplicationHelper
if
@project
&&
!
@project
.
new_record?
if
@project
&&
!
@project
.
new_record?
project_nav
=
[
project_nav
=
[
{
:label
=>
"
#{
@project
.
cod
e
}
/ Issues"
,
:url
=>
project_issues_path
(
@project
)
},
{
:label
=>
"
#{
@project
.
nam
e
}
/ Issues"
,
:url
=>
project_issues_path
(
@project
)
},
{
:label
=>
"
#{
@project
.
cod
e
}
/ Wall"
,
:url
=>
wall_project_path
(
@project
)
},
{
:label
=>
"
#{
@project
.
nam
e
}
/ Wall"
,
:url
=>
wall_project_path
(
@project
)
},
{
:label
=>
"
#{
@project
.
cod
e
}
/ Tree"
,
:url
=>
tree_project_ref_path
(
@project
,
@project
.
root_ref
)
},
{
:label
=>
"
#{
@project
.
nam
e
}
/ Tree"
,
:url
=>
tree_project_ref_path
(
@project
,
@project
.
root_ref
)
},
{
:label
=>
"
#{
@project
.
cod
e
}
/ Commits"
,
:url
=>
project_commits_path
(
@project
)
},
{
:label
=>
"
#{
@project
.
nam
e
}
/ Commits"
,
:url
=>
project_commits_path
(
@project
)
},
{
:label
=>
"
#{
@project
.
cod
e
}
/ Team"
,
:url
=>
team_project_path
(
@project
)
}
{
:label
=>
"
#{
@project
.
nam
e
}
/ Team"
,
:url
=>
team_project_path
(
@project
)
}
]
]
end
end
...
@@ -83,11 +83,15 @@ module ApplicationHelper
...
@@ -83,11 +83,15 @@ module ApplicationHelper
end
end
def
project_layout
def
project_layout
@project
&&
!
@project
.
new_record?
layout
==
"project"
end
def
admin_layout
layout
==
"admin"
end
end
def
profile_layout
def
profile_layout
controller
.
controller_name
==
"dashboard"
||
current_page?
(
projects_path
)
||
controller
.
controller_name
==
"profile"
||
controller
.
controller_name
==
"keys
"
layout
==
"profile
"
end
end
def
help_layout
def
help_layout
...
@@ -97,4 +101,8 @@ module ApplicationHelper
...
@@ -97,4 +101,8 @@ module ApplicationHelper
def
ldap_enable?
def
ldap_enable?
Devise
.
omniauth_providers
.
include?
(
:ldap
)
Devise
.
omniauth_providers
.
include?
(
:ldap
)
end
end
def
layout
controller
.
send
:_layout
end
end
end
app/views/layouts/_head_panel.html.haml
View file @
cd567ee4
...
@@ -6,9 +6,8 @@
...
@@ -6,9 +6,8 @@
=
link_to
root_path
,
:class
=>
"home"
,
:title
=>
"Home"
do
=
link_to
root_path
,
:class
=>
"home"
,
:title
=>
"Home"
do
=
image_tag
"logo.png"
,
:width
=>
100
=
image_tag
"logo.png"
,
:width
=>
100
-
if
project_layout
%h1
.project_name
=
title
.project_name
.search
=
text_field_tag
"search"
,
nil
,
:placeholder
=>
"Search"
,
:class
=>
"search-input xlarge"
=
truncate
@project
.
name
,
:length
=>
35
.account-box
.account-box
...
@@ -18,3 +17,20 @@
...
@@ -18,3 +17,20 @@
=
link_to
profile_path
,
:class
=>
"username"
do
=
link_to
profile_path
,
:class
=>
"username"
do
My profile
My profile
=
link_to
'Logout'
,
destroy_user_session_path
,
:class
=>
"logout"
,
:method
=>
:delete
=
link_to
'Logout'
,
destroy_user_session_path
,
:class
=>
"logout"
,
:method
=>
:delete
:javascript
$
(
function
(){
$
(
"
#search
"
).
autocomplete
({
source
:
#{
raw
search_autocomplete_source
}
,
select
:
function
(
event
,
ui
)
{
location
.
href
=
ui
.
item
.
url
}
});
$
(
document
).
keypress
(
function
(
e
)
{
if
(
$
(
e
.
target
).
is
(
"
:input
"
)
)
return
;
switch
(
e
.
which
)
{
case
115
:
focusSearch
();
e
.
preventDefault
();
}
});
});
app/views/layouts/admin.html.haml
View file @
cd567ee4
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
%html
{
:lang
=>
"en"
}
%html
{
:lang
=>
"en"
}
=
render
"layouts/head"
=
render
"layouts/head"
%body
.admin
%body
.admin
=
render
:partial
=>
"layouts/flash"
=
render
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel
"
=
render
"layouts/head_panel"
,
:title
=>
"Admin area
"
.container-fluid
.container-fluid
.sidebar
.sidebar
.fixed
.fixed
...
...
app/views/layouts/application.html.haml
View file @
cd567ee4
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
%html
{
:lang
=>
"en"
}
%html
{
:lang
=>
"en"
}
=
render
"layouts/head"
=
render
"layouts/head"
%body
.application
%body
.application
=
render
:partial
=>
"layouts/flash"
=
render
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel
"
=
render
"layouts/head_panel"
,
:title
=>
"Dashboard
"
.container-fluid
.container-fluid
.sidebar
.sidebar
=
render
:partial
=>
"layouts/app_side"
=
render
:partial
=>
"layouts/app_side"
...
...
app/views/layouts/profile.html.haml
View file @
cd567ee4
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
%html
{
:lang
=>
"en"
}
%html
{
:lang
=>
"en"
}
=
render
"layouts/head"
=
render
"layouts/head"
%body
.profile
%body
.profile
=
render
:partial
=>
"layouts/flash"
=
render
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel
"
=
render
"layouts/head_panel"
,
:title
=>
"Profile
"
.container-fluid
.container-fluid
.sidebar
.sidebar
%aside
%aside
...
...
app/views/layouts/project.html.haml
View file @
cd567ee4
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
%html
{
:lang
=>
"en"
}
%html
{
:lang
=>
"en"
}
=
render
"layouts/head"
=
render
"layouts/head"
%body
.project
%body
.project
=
render
:partial
=>
"layouts/flash"
=
render
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel"
=
render
"layouts/head_panel"
,
:title
=>
@project
.
name
.container-fluid
.container-fluid
.sidebar
=
render
:partial
=>
"layouts/project_side"
.sidebar
=
render
:partial
=>
"layouts/project_side"
.content
.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