Skip to content

Commit

Permalink
Merge pull request #667 from keikubo/master
Browse files Browse the repository at this point in the history
The indents errors of pre blocks in haml
  • Loading branch information
dzaporozhets committed Apr 11, 2012
2 parents e7add85 + 42f04bf commit 740e54c
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 15 deletions.
5 changes: 3 additions & 2 deletions app/views/errors/gitolite.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
%p
Try:
%pre
sudo chmod -R 770 /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
= preserve do
sudo chmod -R 770 /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
3 changes: 2 additions & 1 deletion app/views/issues/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@

- if @issue.description.present?
.bottom_box_content
= markdown @issue.description
= preserve do
= markdown @issue.description


.issue_notes#notes= render "notes/notes", :tid => @issue.id, :tt => "issue"
11 changes: 6 additions & 5 deletions app/views/merge_requests/_how_to_merge.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
%h3 How To Merge
.modal-body
%pre
:erb
git checkout <%= @merge_request.target_branch %>
git fetch origin
git merge origin/<%= @merge_request.source_branch %>
git push origin <%= @merge_request.target_branch %>
= preserve do
:erb
git checkout <%= @merge_request.target_branch %>
git fetch origin
git merge origin/<%= @merge_request.source_branch %>
git push origin <%= @merge_request.target_branch %>


:javascript
Expand Down
3 changes: 2 additions & 1 deletion app/views/milestones/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

- if @milestone.description.present?
.bottom_box_content
= markdown @milestone.description
= preserve do
= markdown @milestone.description


:javascript
Expand Down
3 changes: 2 additions & 1 deletion app/views/notes/_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
%strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small"

%div.note-title
= markdown(note.note)
= preserve do
= markdown(note.note)
- if note.attachment.url
.right
%div.file
Expand Down
9 changes: 6 additions & 3 deletions app/views/projects/empty.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
%h3 Git global setup:
- setup_str = ["git config --global user.name \"#{current_user.name}\"",
"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
Expand All @@ -29,15 +30,17 @@
"git remote add origin #{@project.url_to_repo}",
"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
%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")
= 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
.alert-message.block-message.error.prepend-top-20
Expand Down
3 changes: 2 additions & 1 deletion app/views/refs/_tree.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
%h3= content.name
.readme
- if content.name =~ /\.(md|markdown)$/i
= markdown(content.data)
= preserve do
= markdown(content.data)
- else
= simple_format(content.data)

Expand Down
3 changes: 2 additions & 1 deletion app/views/wikis/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
Edit
%hr
.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}
- if can? current_user, :admin_wiki, @project
Expand Down

0 comments on commit 740e54c

Please sign in to comment.