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
aa50408e
Commit
aa50408e
authored
Aug 22, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. Better message if no ssh key
2. SSH Keys Help page
parent
5c7ed6fa
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
104 additions
and
74 deletions
+104
-74
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+8
-0
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+5
-0
app/views/dashboard/index.html.haml
app/views/dashboard/index.html.haml
+2
-9
app/views/help/index.html.haml
app/views/help/index.html.haml
+3
-0
app/views/help/permissions.html.haml
app/views/help/permissions.html.haml
+2
-2
app/views/help/ssh.html.haml
app/views/help/ssh.html.haml
+25
-0
app/views/help/system_hooks.html.haml
app/views/help/system_hooks.html.haml
+2
-2
app/views/help/web_hooks.html.haml
app/views/help/web_hooks.html.haml
+4
-4
app/views/help/workflow.html.haml
app/views/help/workflow.html.haml
+6
-7
app/views/keys/_form.html.haml
app/views/keys/_form.html.haml
+7
-1
app/views/keys/new.html.haml
app/views/keys/new.html.haml
+1
-1
app/views/merge_requests/show/_how_to_merge.html.haml
app/views/merge_requests/show/_how_to_merge.html.haml
+5
-6
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+25
-42
app/views/shared/_no_ssh.html.haml
app/views/shared/_no_ssh.html.haml
+8
-0
config/routes.rb
config/routes.rb
+1
-0
No files found.
app/assets/stylesheets/common.scss
View file @
aa50408e
...
...
@@ -735,3 +735,11 @@ li.note {
font-size
:
12px
;
}
}
.error_message
{
@extend
.cred
;
border-bottom
:
1px
solid
#D21
;
padding-bottom
:
20px
;
text-align
:center
;
margin-bottom
:
10px
;
}
app/assets/stylesheets/gitlab_bootstrap.scss
View file @
aa50408e
...
...
@@ -4,6 +4,11 @@ body {
pre
{
font-family
:
'Menlo'
,
'Liberation Mono'
,
'Consolas'
,
'Courier New'
,
'andale mono'
,
'lucida console'
,
monospace
;
&
.dark
{
background
:
#333
;
color
:
#f5f5f5
;
}
}
a
{
...
...
app/views/dashboard/index.html.haml
View file @
aa50408e
-
if
@projects
.
any?
.projects
.activities.span8
-
if
current_user
.
require_ssh_key?
.alert.alert-error.padded
%span
You wont be able to pull/push project code unless you
%strong
=
link_to
new_key_path
,
class:
"vlink"
do
add new key
to your profile
=
render
'shared/no_ssh'
-
if
@events
.
any?
.content_list
=
render
@events
-
else
...
...
app/views/help/index.html.haml
View file @
aa50408e
...
...
@@ -31,3 +31,6 @@
%li
%h5
=
link_to
"Gitlab Markdown"
,
help_markdown_path
%li
%h5
=
link_to
"SSH keys"
,
help_ssh_path
app/views/help/permissions.html.haml
View file @
aa50408e
%h3
Permissions
%h3
.page_title
Permissions
.back_link
=
link_to
help_path
do
←
to index
...
...
app/views/help/ssh.html.haml
0 → 100644
View file @
aa50408e
%h3
.page_title
SSH Keys
.back_link
=
link_to
help_path
do
←
to index
%hr
%p
.slead
SSH key allows you to establish a secure connection between your computer and Gitlab
%p
.slead
To generate a new SSH key just open your terminal and use code below.
%pre
.dark
ssh-keygen -t rsa -C "
#{
current_user
.
email
}
"
\# Creates a new ssh key using the provided email
\# Generating public/private rsa key pair...
%p
.slead
Next just use code below to dump your public key and add to GITLAB SSH Keys
%pre
.dark
cat ~/.ssh/id_rsa.pub
\# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....
app/views/help/system_hooks.html.haml
View file @
aa50408e
app/views/help/web_hooks.html.haml
View file @
aa50408e
%h3
Web hooks
%h3
.page_title
Web hooks
.back_link
=
link_to
help_path
do
←
to index
...
...
app/views/help/workflow.html.haml
View file @
aa50408e
-
bash_lexer
=
Pygments
::
Lexer
[
:bash
]
%h3
Workflow
%h3
.page_title
Workflow
.back_link
=
link_to
help_path
do
←
to index
...
...
@@ -9,25 +8,25 @@
%li
%p
Clone project
.bash
%pre
%pre
.dark
git clone git@example.com:project-name.git
%li
%p
Create branch with your feature
.bash
%pre
%pre
.dark
git checkout -b $feature_name
%li
%p
Write code. Commit changes
.bash
%pre
%pre
.dark
git commit -am "My feature is ready"
%li
%p
Push your branch to gitlabhq
.bash
%pre
%pre
.dark
git push origin $feature_name
%li
...
...
app/views/keys/_form.html.haml
View file @
aa50408e
...
...
@@ -11,7 +11,13 @@
.input
=
f
.
text_field
:title
.clearfix
=
f
.
label
:key
.input
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
.input
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
%p
.hint
Paste your public key here. Read more about how generate it
=
link_to
"here"
,
help_ssh_path
.actions
=
f
.
submit
'Save'
,
class:
"primary btn"
=
link_to
"Cancel"
,
keys_path
,
class:
"btn"
...
...
app/views/keys/new.html.haml
View file @
aa50408e
%h3
.page_title
New k
ey
%h3
.page_title
Add an SSH K
ey
%hr
=
render
'form'
...
...
app/views/merge_requests/show/_how_to_merge.html.haml
View file @
aa50408e
...
...
@@ -3,13 +3,12 @@
%a
.close
{
href:
"#"
}
×
%h3
How To Merge
.modal-body
%pre
%pre
.dark
=
preserve
do
:erb
git checkout
<%=
@merge_request
.
target_branch
%>
git checkout
#{
@merge_request
.
target_branch
}
git fetch origin
git merge origin/
<%=
@merge_request
.
source_branch
%>
git push origin
<%=
@merge_request
.
target_branch
%>
git merge origin/
#{
@merge_request
.
source_branch
}
git push origin
#{
@merge_request
.
target_branch
}
:javascript
...
...
app/views/projects/empty.html.haml
View file @
aa50408e
-
if
current_user
.
require_ssh_key?
.alert-message.block-message.error
%ul
%li
You have no ssh keys added to your profile.
%li
You wont be able to pull/push repository.
%li
Visit profile
→
keys and add public key of every machine you want to use for work with gitlabhq.
.alert-message.block-message.error
%ul
.unstyled.alert_holder
%li
You should push repository to proceed.
%li
After push you will be able to browse code, commits etc.
-
bash_lexer
=
Pygments
::
Lexer
[
:bash
]
=
render
'shared/no_ssh'
%div
.git-empty
%h3
Git global setup:
-
setup_str
=
[
"git config --global user.name
\"
#{
current_user
.
name
}
\"
"
,
"git config --global user.email
\"
#{
current_user
.
email
}
\"
"
].
join
(
"
\n
"
)
%h4
Git global setup:
%pre
.dark
=
preserve
do
=
raw
bash_lexer
.
highlight
(
setup_str
,
lexer:
'bash'
,
options:
{
encoding:
'utf-8'
})
%br
%br
%h3
Create Repository
-
repo_setup_str
=
[
"mkdir
#{
@project
.
path
}
"
,
"cd
#{
@project
.
path
}
"
,
"git init"
,
"touch README"
,
"git add README"
,
"git commit -m 'first commit'"
,
"git remote add origin
#{
@project
.
url_to_repo
}
"
,
"git push -u origin master"
].
join
(
"
\n
"
)
git config --global user.name "
#{
current_user
.
name
}
"
git config --global user.email "
#{
current_user
.
email
}
"
%h4
.prepend-top-20
Create Repository
%pre
.dark
=
preserve
do
=
raw
bash_lexer
.
highlight
(
repo_setup_str
)
mkdir
#{
@project
.
path
}
cd
#{
@project
.
path
}
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin
#{
@project
.
url_to_repo
}
git push -u origin master
%br
%br
%h3
Existing Git Repo?
-
exist_repo_setup_str
=
[
"cd existing_git_repo"
,
"git remote add origin
#{
@project
.
url_to_repo
}
"
,
"git push -u origin master"
].
join
(
"
\n
"
)
%h4
.prepend-top-20
Existing Git Repo?
%pre
.dark
=
preserve
do
=
raw
bash_lexer
.
highlight
(
exist_repo_setup_str
)
cd existing_git_repo
git remote add origin
#{
@project
.
url_to_repo
}
git push -u origin master
-
if
can?
current_user
,
:admin_project
,
@project
.
alert-message.block-message.error.
prepend-top-20
=
link_to
'Remove project'
,
@project
,
confirm:
'Are you sure?'
,
method: :delete
,
class:
"btn danger"
.prepend-top-20
=
link_to
'Remove project'
,
@project
,
confirm:
'Are you sure?'
,
method: :delete
,
class:
"btn danger
right
"
app/views/shared/_no_ssh.html.haml
0 → 100644
View file @
aa50408e
-
if
current_user
.
require_ssh_key?
%h6
.error_message
%span
You wont be able to pull/push project code unless you
%strong
=
link_to
new_key_path
,
class:
"vlink"
do
add SSH key
to your profile
config/routes.rb
View file @
aa50408e
...
...
@@ -30,6 +30,7 @@ Gitlab::Application.routes.draw do
get
'help/web_hooks'
=>
'help#web_hooks'
get
'help/system_hooks'
=>
'help#system_hooks'
get
'help/markdown'
=>
'help#markdown'
get
'help/ssh'
=>
'help#ssh'
#
# Admin Area
...
...
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