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
740e54c3
Commit
740e54c3
authored
Apr 11, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #667 from keikubo/master
The indents errors of pre blocks in haml
parents
e7add858
42f04bf7
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
15 deletions
+25
-15
app/views/errors/gitolite.html.haml
app/views/errors/gitolite.html.haml
+3
-2
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+2
-1
app/views/merge_requests/_how_to_merge.html.haml
app/views/merge_requests/_how_to_merge.html.haml
+6
-5
app/views/milestones/show.html.haml
app/views/milestones/show.html.haml
+2
-1
app/views/notes/_show.html.haml
app/views/notes/_show.html.haml
+2
-1
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+6
-3
app/views/refs/_tree.html.haml
app/views/refs/_tree.html.haml
+2
-1
app/views/wikis/show.html.haml
app/views/wikis/show.html.haml
+2
-1
No files found.
app/views/errors/gitolite.html.haml
View file @
740e54c3
...
@@ -14,5 +14,6 @@
...
@@ -14,5 +14,6 @@
%p
%p
Try:
Try:
%pre
%pre
sudo chmod -R 770 /home/git/repositories/
=
preserve
do
sudo chown -R git:git /home/git/repositories/
sudo chmod -R 770 /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
app/views/issues/show.html.haml
View file @
740e54c3
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
-
if
@issue
.
description
.
present?
-
if
@issue
.
description
.
present?
.bottom_box_content
.bottom_box_content
=
markdown
@issue
.
description
=
preserve
do
=
markdown
@issue
.
description
.issue_notes
#notes
=
render
"notes/notes"
,
:tid
=>
@issue
.
id
,
:tt
=>
"issue"
.issue_notes
#notes
=
render
"notes/notes"
,
:tid
=>
@issue
.
id
,
:tt
=>
"issue"
app/views/merge_requests/_how_to_merge.html.haml
View file @
740e54c3
...
@@ -4,11 +4,12 @@
...
@@ -4,11 +4,12 @@
%h3
How To Merge
%h3
How To Merge
.modal-body
.modal-body
%pre
%pre
:erb
=
preserve
do
git checkout
<%=
@merge_request
.
target_branch
%>
:erb
git fetch origin
git checkout
<%=
@merge_request
.
target_branch
%>
git merge origin/
<%=
@merge_request
.
source_branch
%>
git fetch origin
git push origin
<%=
@merge_request
.
target_branch
%>
git merge origin/
<%=
@merge_request
.
source_branch
%>
git push origin
<%=
@merge_request
.
target_branch
%>
:javascript
:javascript
...
...
app/views/milestones/show.html.haml
View file @
740e54c3
...
@@ -39,7 +39,8 @@
...
@@ -39,7 +39,8 @@
-
if
@milestone
.
description
.
present?
-
if
@milestone
.
description
.
present?
.bottom_box_content
.bottom_box_content
=
markdown
@milestone
.
description
=
preserve
do
=
markdown
@milestone
.
description
:javascript
:javascript
...
...
app/views/notes/_show.html.haml
View file @
740e54c3
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
%strong
=
link_to
"Remove"
,
[
@project
,
note
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:remote
=>
true
,
:class
=>
"cred delete-note btn small"
%strong
=
link_to
"Remove"
,
[
@project
,
note
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:remote
=>
true
,
:class
=>
"cred delete-note btn small"
%div
.note-title
%div
.note-title
=
markdown
(
note
.
note
)
=
preserve
do
=
markdown
(
note
.
note
)
-
if
note
.
attachment
.
url
-
if
note
.
attachment
.
url
.right
.right
%div
.file
%div
.file
...
...
app/views/projects/empty.html.haml
View file @
740e54c3
...
@@ -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
...
...
app/views/refs/_tree.html.haml
View file @
740e54c3
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
%h3
=
content
.
name
%h3
=
content
.
name
.readme
.readme
-
if
content
.
name
=~
/\.(md|markdown)$/i
-
if
content
.
name
=~
/\.(md|markdown)$/i
=
markdown
(
content
.
data
)
=
preserve
do
=
markdown
(
content
.
data
)
-
else
-
else
=
simple_format
(
content
.
data
)
=
simple_format
(
content
.
data
)
...
...
app/views/wikis/show.html.haml
View file @
740e54c3
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
Edit
Edit
%hr
%hr
.wiki_content
.wiki_content
=
markdown_to_html
@wiki
.
content
=
preserve
do
=
markdown_to_html
@wiki
.
content
%p
.time
Last edited by
#{
@wiki
.
user
.
name
}
, in
#{
time_ago_in_words
@wiki
.
created_at
}
%p
.time
Last edited by
#{
@wiki
.
user
.
name
}
, in
#{
time_ago_in_words
@wiki
.
created_at
}
-
if
can?
current_user
,
:admin_wiki
,
@project
-
if
can?
current_user
,
:admin_wiki
,
@project
...
...
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