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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
83c1194d
Commit
83c1194d
authored
Nov 02, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into user_dashboard
parents
a6fa8052
5fb1b9ff
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
67 additions
and
20 deletions
+67
-20
app/controllers/admin/mailer_controller.rb
app/controllers/admin/mailer_controller.rb
+1
-0
app/controllers/admin/projects_controller.rb
app/controllers/admin/projects_controller.rb
+1
-0
app/controllers/admin/team_members_controller.rb
app/controllers/admin/team_members_controller.rb
+1
-0
app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
+1
-0
app/controllers/keys_controller.rb
app/controllers/keys_controller.rb
+1
-0
app/controllers/profile_controller.rb
app/controllers/profile_controller.rb
+1
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+2
-0
app/views/admin/_top_menu.html.haml
app/views/admin/_top_menu.html.haml
+0
-6
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+1
-1
app/views/admin/team_members/index.html.haml
app/views/admin/team_members/index.html.haml
+1
-1
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+1
-1
app/views/layouts/admin.html.haml
app/views/layouts/admin.html.haml
+27
-0
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+0
-6
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+29
-0
app/views/profile/_top_menu.html.haml
app/views/profile/_top_menu.html.haml
+0
-5
No files found.
app/controllers/admin/mailer_controller.rb
View file @
83c1194d
class
Admin::MailerController
<
ApplicationController
layout
"admin"
before_filter
:authenticate_user!
before_filter
:authenticate_admin!
...
...
app/controllers/admin/projects_controller.rb
View file @
83c1194d
class
Admin::ProjectsController
<
ApplicationController
layout
"admin"
before_filter
:authenticate_user!
before_filter
:authenticate_admin!
...
...
app/controllers/admin/team_members_controller.rb
View file @
83c1194d
class
Admin::TeamMembersController
<
ApplicationController
layout
"admin"
before_filter
:authenticate_user!
before_filter
:authenticate_admin!
...
...
app/controllers/admin/users_controller.rb
View file @
83c1194d
class
Admin::UsersController
<
ApplicationController
layout
"admin"
before_filter
:authenticate_user!
before_filter
:authenticate_admin!
...
...
app/controllers/keys_controller.rb
View file @
83c1194d
class
KeysController
<
ApplicationController
layout
"profile"
respond_to
:js
def
index
...
...
app/controllers/profile_controller.rb
View file @
83c1194d
class
ProfileController
<
ApplicationController
layout
"profile"
def
show
@user
=
current_user
end
...
...
app/helpers/application_helper.rb
View file @
83c1194d
...
...
@@ -28,6 +28,8 @@ module ApplicationHelper
else
"Never"
end
rescue
"Never"
end
def
markdown
(
text
)
...
...
app/views/admin/_top_menu.html.haml
deleted
100644 → 0
View file @
a6fa8052
%div
.top_project_menu
%span
=
link_to
"Users"
,
admin_users_path
,
:style
=>
"width:50px;"
,
:class
=>
controller
.
controller_name
==
"users"
?
"current"
:
nil
%span
=
link_to
"Projects"
,
admin_projects_path
,
:style
=>
"width:50px;"
,
:class
=>
controller
.
controller_name
==
"projects"
?
"current"
:
nil
%span
=
link_to
"Teams"
,
admin_team_members_path
,
:style
=>
"width:50px;"
,
:class
=>
controller
.
controller_name
==
"team_members"
?
"current"
:
nil
%span
=
link_to
"Emails"
,
admin_emails_path
,
:style
=>
"width:50px;"
,
:class
=>
controller
.
controller_name
==
"mailer"
?
"current"
:
nil
app/views/admin/projects/index.html.haml
View file @
83c1194d
%table
%t
r
%t
head
%th
Name
%th
Code
%th
Path
...
...
app/views/admin/team_members/index.html.haml
View file @
83c1194d
-
@admin_team_members
.
group_by
(
&
:project
).
sort
.
each
do
|
project
,
members
|
%h3
=
link_to
project
.
name
,
[
:admin
,
project
]
%table
%t
r
%t
head
%th
Name
%th
Email
%th
Read
...
...
app/views/admin/users/index.html.haml
View file @
83c1194d
%table
%t
r
%t
head
%th
Admin
%th
Name
%th
Email
...
...
app/views/layouts/admin.html.haml
0 → 100644
View file @
83c1194d
!!!
%html
%head
%title
GitLab
#{
" - #{@project.name}"
if
@project
&&
!
@project
.
new_record?
}
=
stylesheet_link_tag
"application"
=
javascript_include_tag
"application"
=
csrf_meta_tags
%link
{
:href
=>
"/assets/favicon.png"
,
:rel
=>
"icon"
,
:type
=>
"image/png"
}
/
=
javascript_tag
do
REQ_URI = "
#{
request
.
env
[
"REQUEST_URI"
]
}
";
REQ_REFFER = "
#{
request
.
env
[
"HTTP_REFERER"
]
}
";
%body
{
:class
=>
content_for?
(
:body_class
)
?
yield
(
:body_class
)
:
'project-page'
,
:id
=>
yield
(
:boyd_id
)}
#container
=
render
:partial
=>
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel"
.project-container
.project-sidebar
.fixed
%aside
=
link_to
"Users"
,
admin_users_path
,
:class
=>
controller
.
controller_name
==
"users"
?
"current"
:
nil
=
link_to
"Projects"
,
admin_projects_path
,
:class
=>
controller
.
controller_name
==
"projects"
?
"current"
:
nil
=
link_to
"Teams"
,
admin_team_members_path
,
:class
=>
controller
.
controller_name
==
"team_members"
?
"current"
:
nil
=
link_to
"Emails"
,
admin_emails_path
,
:class
=>
controller
.
controller_name
==
"mailer"
?
"current"
:
nil
.project-content
=
yield
app/views/layouts/application.html.haml
View file @
83c1194d
...
...
@@ -19,11 +19,5 @@
=
render
:partial
=>
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel"
%div
{
:id
=>
"main"
,
:role
=>
"main"
,
:class
=>
"container_4"
}
-
if
@project
&&
!
@project
.
new_record?
.top_bar.container
=
render
:partial
=>
"projects/top_menu"
-
if
[
"keys"
,
"profile"
].
include?
(
controller
.
controller_name
)
.top_bar.container
=
render
:partial
=>
"profile/top_menu"
-
if
admin_namespace?
.top_bar.container
=
render
:partial
=>
"admin/top_menu"
=
render
:partial
=>
"layouts/page_title"
=
yield
app/views/layouts/profile.html.haml
0 → 100644
View file @
83c1194d
!!!
%html
%head
%title
GitLab
#{
" - #{@project.name}"
if
@project
&&
!
@project
.
new_record?
}
=
stylesheet_link_tag
"application"
=
javascript_include_tag
"application"
=
csrf_meta_tags
%link
{
:href
=>
"/assets/favicon.png"
,
:rel
=>
"icon"
,
:type
=>
"image/png"
}
/
=
javascript_tag
do
REQ_URI = "
#{
request
.
env
[
"REQUEST_URI"
]
}
";
REQ_REFFER = "
#{
request
.
env
[
"HTTP_REFERER"
]
}
";
%body
{
:class
=>
content_for?
(
:body_class
)
?
yield
(
:body_class
)
:
'project-page'
,
:id
=>
yield
(
:boyd_id
)}
#container
=
render
:partial
=>
"layouts/flash"
=
render
:partial
=>
"layouts/head_panel"
.project-container
.project-sidebar
.fixed
%aside
=
link_to
"Profile"
,
profile_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:show
)
?
"current"
:
nil
=
link_to
"Password"
,
profile_password_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:password
)
?
"current"
:
nil
=
link_to
keys_path
,
:class
=>
controller
.
controller_name
==
"keys"
?
"current"
:
nil
do
Keys
-
unless
current_user
.
keys
.
empty?
%span
{
:class
=>
"number"
}=
current_user
.
keys
.
count
.project-content
=
yield
app/views/profile/_top_menu.html.haml
deleted
100644 → 0
View file @
a6fa8052
%div
.top_project_menu
%span
=
link_to
"Profile"
,
profile_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:show
)
?
"current"
:
nil
%span
=
link_to
"Password"
,
profile_password_path
,
:style
=>
"width:70px;"
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:password
)
?
"current"
:
nil
%span
=
link_to
"Keys"
,
keys_path
,
:class
=>
controller
.
controller_name
==
"keys"
?
"current"
:
nil
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