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
iv
gitlab-ce
Commits
1b5510a8
Commit
1b5510a8
authored
Dec 31, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New project page with bootstrap3
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
a11d25b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
85 deletions
+89
-85
app/views/dashboard/projects.html.haml
app/views/dashboard/projects.html.haml
+23
-22
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+30
-29
app/views/projects/_visibility_level.html.haml
app/views/projects/_visibility_level.html.haml
+22
-21
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+14
-13
No files found.
app/views/dashboard/projects.html.haml
View file @
1b5510a8
...
@@ -25,28 +25,29 @@
...
@@ -25,28 +25,29 @@
All projects you have access to are listed here. Public projects are not included here unless you are a member
All projects you have access to are listed here. Public projects are not included here unless you are a member
%hr
%hr
.row
.row
.col-md-3.hidden-sm.hidden-xs
.col-md-3.hidden-sm.hidden-xs.side-filters
%ul
.nav.nav-pills.nav-stacked
%fieldset
=
nav_tab
:scope
,
nil
do
%ul
.nav.nav-pills.nav-stacked
=
link_to
projects_dashboard_filter_path
(
scope:
nil
)
do
=
nav_tab
:scope
,
nil
do
All
=
link_to
projects_dashboard_filter_path
(
scope:
nil
)
do
%span
.pull-right
All
=
current_user
.
authorized_projects
.
count
%span
.pull-right
=
nav_tab
:scope
,
'personal'
do
=
current_user
.
authorized_projects
.
count
=
link_to
projects_dashboard_filter_path
(
scope:
'personal'
)
do
=
nav_tab
:scope
,
'personal'
do
Personal
=
link_to
projects_dashboard_filter_path
(
scope:
'personal'
)
do
%span
.pull-right
Personal
=
current_user
.
personal_projects
.
count
%span
.pull-right
=
nav_tab
:scope
,
'joined'
do
=
current_user
.
personal_projects
.
count
=
link_to
projects_dashboard_filter_path
(
scope:
'joined'
)
do
=
nav_tab
:scope
,
'joined'
do
Joined
=
link_to
projects_dashboard_filter_path
(
scope:
'joined'
)
do
%span
.pull-right
Joined
=
current_user
.
authorized_projects
.
joined
(
current_user
).
count
%span
.pull-right
=
nav_tab
:scope
,
'owned'
do
=
current_user
.
authorized_projects
.
joined
(
current_user
).
count
=
link_to
projects_dashboard_filter_path
(
scope:
'owned'
)
do
=
nav_tab
:scope
,
'owned'
do
Owned
=
link_to
projects_dashboard_filter_path
(
scope:
'owned'
)
do
%span
.pull-right
Owned
=
current_user
.
owned_projects
.
count
%span
.pull-right
=
current_user
.
owned_projects
.
count
%fieldset
%fieldset
%legend
Visibility
%legend
Visibility
...
...
app/views/layouts/_head_panel.html.haml
View file @
1b5510a8
...
@@ -8,34 +8,35 @@
...
@@ -8,34 +8,35 @@
%span
.separator
%span
.separator
%h1
.project_name
=
title
%h1
.project_name
=
title
%ul
.nav.navbar-nav
.navbar-collapse.collapse
%li
%ul
.nav.navbar-nav
%a
%div
.gl-hide.turbolink-spinner
%i
.icon-refresh.icon-spin
Loading...
%li
.hidden-sm
=
render
"layouts/search"
%li
=
link_to
public_root_path
,
title:
"Public area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
%i
.icon-globe
%li
=
link_to
user_snippets_path
(
current_user
),
title:
"My snippets"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
%i
.icon-paste
-
if
current_user
.
is_admin?
%li
%li
=
link_to
admin_root_path
,
title:
"Admin area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Admin area'
do
%a
%i
.icon-cogs
%div
.gl-hide.turbolink-spinner
-
if
current_user
.
can_create_project?
%i
.icon-refresh.icon-spin
Loading...
%li
.hidden-sm
=
render
"layouts/search"
%li
%li
=
link_to
new_project_path
,
title:
"New project"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'New project'
do
=
link_to
public_root_path
,
title:
"Public area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
%i
.icon-plus
%i
.icon-globe
%li
%li
=
link_to
profile_path
,
title:
"Profile settings"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Profile settings"'
do
=
link_to
user_snippets_path
(
current_user
),
title:
"My snippets"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
%i
.icon-user
%i
.icon-paste
%li
-
if
current_user
.
is_admin?
=
link_to
destroy_user_session_path
,
class:
"logout"
,
method: :delete
,
title:
"Logout"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Logout'
do
%li
%i
.icon-signout
=
link_to
admin_root_path
,
title:
"Admin area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Admin area'
do
%li
%i
.icon-cogs
=
link_to
current_user
,
class:
"profile-pic"
,
id:
'profile-pic'
do
-
if
current_user
.
can_create_project?
=
image_tag
avatar_icon
(
current_user
.
email
,
26
),
alt:
'User activity'
%li
=
link_to
new_project_path
,
title:
"New project"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'New project'
do
%i
.icon-plus
%li
=
link_to
profile_path
,
title:
"Profile settings"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Profile settings"'
do
%i
.icon-user
%li
=
link_to
destroy_user_session_path
,
class:
"logout"
,
method: :delete
,
title:
"Logout"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Logout'
do
%i
.icon-signout
%li
=
link_to
current_user
,
class:
"profile-pic"
,
id:
'profile-pic'
do
=
image_tag
avatar_icon
(
current_user
.
email
,
26
),
alt:
'User activity'
app/views/projects/_visibility_level.html.haml
View file @
1b5510a8
.form-group.project-visibility-level-holder
.form-group.project-visibility-level-holder
=
f
.
label
:visibility_level
do
=
f
.
label
:visibility_level
,
class:
'control-label'
do
Visibility Level
Visibility Level
=
link_to
"(?)"
,
help_public_access_path
=
link_to
"(?)"
,
help_public_access_path
-
if
can_change_visibility_level
.col-sm-10
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
-
if
can_change_visibility_level
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
.col-sm-10
.append-bottom-10
=
f
.
radio_button
:visibility_level
,
level
,
checked:
(
visibility_level
==
level
),
disabled:
restricted
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
%span
.descr
{
:class
=>
(
"restricted"
if
restricted
)}
=
f
.
radio_button
:visibility_level
,
level
,
checked:
(
visibility_level
==
level
),
disabled:
restricted
=
label
:project_visibility_level
,
level
do
%span
.descr
{
:class
=>
(
"restricted"
if
restricted
)}
=
visibility_level_icon
(
level
)
=
label
:project_visibility_level
,
level
do
%strong
=
visibility_level_icon
(
level
)
=
visibility_level_label
(
level
)
%strong
.light
=
visibility_level_description
(
level
)
=
visibility_level_label
(
level
)
-
unless
restricted_visibility_levels
.
empty?
.light.prepend-left-20
=
visibility_level_description
(
level
)
-
unless
restricted_visibility_levels
.
empty?
.col-sm-10
%span
.info
Some visibility level settings have been restricted by the administrator.
-
else
.col-sm-10
.col-sm-10
%span
.info
%span
.info
Some visibility level settings have been restricted by the administrator.
=
visibility_level_icon
(
visibility_level
)
-
else
%strong
.col-sm-10
=
visibility_level_label
(
visibility_level
)
%span
.info
.light
=
visibility_level_description
(
visibility_level
)
=
visibility_level_icon
(
visibility_level
)
%strong
=
visibility_level_label
(
visibility_level
)
.light
=
visibility_level_description
(
visibility_level
)
app/views/projects/new.html.haml
View file @
1b5510a8
...
@@ -3,50 +3,51 @@
...
@@ -3,50 +3,51 @@
=
render
'projects/errors'
=
render
'projects/errors'
.project-edit-content
.project-edit-content
=
form_for
@project
,
remote:
true
do
|
f
|
=
form_for
@project
,
remote:
true
,
html:
{
class:
'new_project form-horizontal'
}
do
|
f
|
.form-group.project-name-holder
.form-group.project-name-holder
=
f
.
label
:name
do
=
f
.
label
:name
,
class:
'control-label'
do
%strong
Project name
%strong
Project name
.col-sm-10
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"
input-lg
"
,
tabindex:
1
,
autofocus:
true
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"
form-control
"
,
tabindex:
1
,
autofocus:
true
%span
.help-inline
%span
.help-inline
=
link_to
"#"
,
class:
'js-toggle-visibility-link'
do
=
link_to
"#"
,
class:
'js-toggle-visibility-link'
do
%span
Customize repository name?
%span
Customize repository name?
.form-group.js-toggle-visibility-container.gl-hide
.form-group.js-toggle-visibility-container.gl-hide
=
f
.
label
:path
do
=
f
.
label
:path
,
class:
'control-label'
do
%span
Repository name
%span
Repository name
.col-sm-10
.col-sm-10
.input-
append
.input-
group
=
f
.
text_field
:path
=
f
.
text_field
:path
,
class:
'form-control'
%span
.
add-
on
.git
%span
.
input-group-add
on
.git
-
if
current_user
.
can_select_namespace?
-
if
current_user
.
can_select_namespace?
.form-group
.form-group
=
f
.
label
:namespace_id
do
=
f
.
label
:namespace_id
,
class:
'control-label'
do
%span
Namespace
%span
Namespace
.col-sm-10
.col-sm-10
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
.form-group
.form-group
.col-sm-2
.col-sm-10
.col-sm-10
=
link_to
"#"
,
class:
'appear-link'
do
=
link_to
"#"
,
class:
'appear-link'
do
%i
.icon-upload-alt
%i
.icon-upload-alt
%span
Import existing repository?
%span
Import existing repository?
.form-group.appear-data.import-url-data
.form-group.appear-data.import-url-data
=
f
.
label
:import_url
do
=
f
.
label
:import_url
,
class:
'control-label'
do
%span
Import existing repo
%span
Import existing repo
.col-sm-10
.col-sm-10
=
f
.
text_field
:import_url
,
class:
'
input-lg
'
,
placeholder:
'https://github.com/randx/six.git'
=
f
.
text_field
:import_url
,
class:
'
form-control
'
,
placeholder:
'https://github.com/randx/six.git'
.light
.light
URL must be cloneable
URL must be cloneable
.form-group
.form-group
=
f
.
label
:description
do
=
f
.
label
:description
,
class:
'control-label'
do
Description
Description
%span
.light
(optional)
%span
.light
(optional)
.col-sm-10
.col-sm-10
=
f
.
text_area
:description
,
placeholder:
"Awesome project"
,
class:
"
input-lg
"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
=
f
.
text_area
:description
,
placeholder:
"Awesome project"
,
class:
"
form-control
"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
=
render
"visibility_level"
,
f:
f
,
visibility_level:
gitlab_config
.
default_projects_features
.
visibility_level
,
can_change_visibility_level:
true
=
render
"visibility_level"
,
f:
f
,
visibility_level:
gitlab_config
.
default_projects_features
.
visibility_level
,
can_change_visibility_level:
true
.form-actions
.form-actions
...
@@ -54,7 +55,7 @@
...
@@ -54,7 +55,7 @@
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
.pull-right
.pull-right
.
col-sm-10.
light
.light
Need a group for several dependent projects?
Need a group for several dependent projects?
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
Create a group
Create a group
...
...
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