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
51ca0abf
Commit
51ca0abf
authored
Apr 11, 2012
by
Kei Kubo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix: <pre> indent error fixed in projects/empty.html
parent
52f6df72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+6
-3
No files found.
app/views/projects/empty.html.haml
View file @
51ca0abf
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
%h3
Git global setup:
%h3
Git global setup:
-
setup_str
=
[
"git config --global user.name
\"
#{
current_user
.
name
}
\"
"
,
-
setup_str
=
[
"git config --global user.name
\"
#{
current_user
.
name
}
\"
"
,
"git config --global user.email \"
#{
current_user
.
email
}
\""].join("\n")
"git config --global user.email \"
#{
current_user
.
email
}
\""].join("\n")
=
raw
bash_lexer
.
highlight
(
setup_str
,
:lexer
=>
'bash'
,
:options
=>
{
:encoding
=>
'utf-8'
})
=
preserve
do
=
raw
bash_lexer
.
highlight
(
setup_str
,
:lexer
=>
'bash'
,
:options
=>
{
:encoding
=>
'utf-8'
})
%br
%br
%br
%br
...
@@ -29,7 +30,8 @@
...
@@ -29,7 +30,8 @@
"git remote add origin
#{
@project
.
url_to_repo
}
",
"git remote add origin
#{
@project
.
url_to_repo
}
",
"git push -u origin master"].join("\n")
"git push -u origin master"].join("\n")
=
raw
bash_lexer
.
highlight
(
repo_setup_str
)
=
preserve
do
=
raw
bash_lexer
.
highlight
(
repo_setup_str
)
%br
%br
%br
%br
...
@@ -37,7 +39,8 @@
...
@@ -37,7 +39,8 @@
-
exist_repo_setup_str
=
[
"cd existing_git_repo"
,
-
exist_repo_setup_str
=
[
"cd existing_git_repo"
,
"git remote add origin
#{
@project
.
url_to_repo
}
"
,
"git remote add origin
#{
@project
.
url_to_repo
}
"
,
"git push -u origin master"
].
join
(
"
\n
"
)
"git push -u origin master"
].
join
(
"
\n
"
)
=
raw
bash_lexer
.
highlight
(
exist_repo_setup_str
)
=
preserve
do
=
raw
bash_lexer
.
highlight
(
exist_repo_setup_str
)
-
if
can?
current_user
,
:admin_project
,
@project
-
if
can?
current_user
,
:admin_project
,
@project
.alert-message.block-message.error.prepend-top-20
.alert-message.block-message.error.prepend-top-20
...
...
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