diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml
index b5b453d51854f88c6b28be9be1092b42a2a2487f..0b0709ba4e07dead2dbd522c71797f3718418312 100644
--- a/app/views/admin/dashboard/index.html.haml
+++ b/app/views/admin/dashboard/index.html.haml
@@ -4,7 +4,7 @@
%h5
Resque Workers
.data.padded
- = link_to "/info/resque" do
+ = link_to "/info/resque" do
%h1{:class => @workers.present? ? "cgreen" : "cred"}
= @workers.count
%hr
@@ -16,7 +16,7 @@
.ui-box
%h5 Projects
.data.padded
- = link_to admin_projects_path do
+ = link_to admin_projects_path do
%h1= Project.count
%hr
= link_to 'New Project', new_admin_project_path, :class => "btn small"
@@ -24,7 +24,7 @@
.ui-box
%h5 Users
.data.padded
- = link_to admin_users_path do
+ = link_to admin_users_path do
%h1= User.count
%hr
= link_to 'New User', new_admin_user_path, :class => "btn small"
diff --git a/app/views/admin/projects/_form.html.haml b/app/views/admin/projects/_form.html.haml
index 4a2d01e19b6ba4a4936192cff1075789613a29a5..822dc06439c96857c327aaf3f54a28cc4a9685a1 100644
--- a/app/views/admin/projects/_form.html.haml
+++ b/app/views/admin/projects/_form.html.haml
@@ -9,14 +9,14 @@
= f.label :name
.input= f.text_field :name
.clearfix
- = f.label :path do
+ = f.label :path do
Path
.input
.input-prepend
%span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:"
= f.text_field :path, :placeholder => "example_project", :disabled => !@admin_project.new_record?
.clearfix
- = f.label :code do
+ = f.label :code do
Code
.input
.input-prepend
@@ -28,7 +28,7 @@
= f.label :owner_id
.input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }
- - if @admin_project.repo_exists?
+ - if @admin_project.repo_exists?
.clearfix
= f.label :default_branch, "Default Branch"
.input= f.select(:default_branch, @admin_project.heads.map(&:name), {}, :style => "width:210px;")
diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml
index f26ddf2b06f1f485c2f046a5676130ae839959e4..e4f19e1ccc010f50789f652db9ce5a08b47ad4d5 100644
--- a/app/views/admin/projects/index.html.haml
+++ b/app/views/admin/projects/index.html.haml
@@ -1,4 +1,4 @@
-%h3
+%h3
Projects
= link_to 'New Project', new_admin_project_path, :class => "btn small right"
%br
diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml
index 90ed8ea944f99ab53fefe5c8ebd4ea17ef741b45..8ba2943e7f90fd3271d3ecf3f3934c52cf992bfe 100644
--- a/app/views/admin/projects/show.html.haml
+++ b/app/views/admin/projects/show.html.haml
@@ -9,7 +9,7 @@
%b
Name:
%td
- = @admin_project.name
+ = @admin_project.name
%tr
%td
%b
@@ -59,7 +59,7 @@
%br
%h3 Add new team member
%br
-= form_tag team_update_admin_project_path(@admin_project), :class => "bulk_import", :method => :put do
+= form_tag team_update_admin_project_path(@admin_project), :class => "bulk_import", :method => :put do
%table.zebra-striped.table-bordered
%thead
%tr
@@ -73,11 +73,11 @@
%tr
%td= submit_tag 'Add', :class => "btn primary"
%td
- Read more about project permissions
+ Read more about project permissions
%strong= link_to "here", help_permissions_path, :class => "vlink"
-:css
- form select {
+:css
+ form select {
width:150px;
}
@@ -85,9 +85,7 @@
width:300px;
}
-
-:javascript
+:javascript
$('select#user_ids').chosen();
$('select#repo_access').chosen();
$('select#project_access').chosen();
-
diff --git a/app/views/admin/team_members/_form.html.haml b/app/views/admin/team_members/_form.html.haml
index 0bf9020f748f264b8913e2d3fb937f2aa82ed26b..034757620ecadd86157b4c3e908dfa9e1724a3d9 100644
--- a/app/views/admin/team_members/_form.html.haml
+++ b/app/views/admin/team_members/_form.html.haml
@@ -16,7 +16,7 @@
= link_to 'Cancel', :back, :class => "btn"
:css
- form select {
+ form select {
width:300px;
}
@@ -25,4 +25,3 @@
$('select#team_member_project_id').chosen();
$('select#team_member_repo_access').chosen();
$('select#team_member_project_access').chosen();
-
diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml
index 133259869071bdfce0d6994a9111cab77f7bf6f5..ea7b313091746770372b438e13e72ee56911b419 100644
--- a/app/views/admin/users/index.html.haml
+++ b/app/views/admin/users/index.html.haml
@@ -1,11 +1,11 @@
-%h3
+%h3
Users
= link_to 'New User', new_admin_user_path, :class => "btn small right"
%br
%ul.nav.nav-pills
%li{:class => "#{'active' unless params[:filter]}"}
- = link_to "Active", admin_users_path
+ = link_to "Active", admin_users_path
%li{:class => "#{'active' if params[:filter] == "admins"}"}
= link_to admin_users_path(:filter => "admins") do
Admins
@@ -34,9 +34,9 @@
%td= user.users_projects.count
%td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}", :class => "btn small"
%td
- - if user.blocked
+ - if user.blocked
= link_to 'Unblock', unblock_admin_user_path(user), :method => :put, :class => "btn small success"
- - else
+ - else
= link_to 'Block', block_admin_user_path(user), :confirm => 'USER WILL BE BLOCKED! Are you sure?', :method => :put, :class => "btn small danger"
%td= link_to 'Destroy', [:admin, user], :confirm => 'USER WILL BE REMOVED! Are you sure?', :method => :delete, :class => "btn small danger"
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index 060dd0c76cef2dd6d1395ae9dfc5716c5889d137..7510b1446dcdf85f7fde2a779636eb4436b7ea72 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -53,11 +53,10 @@
%td
= @admin_user.twitter
-
%br
%h3 Add User to Projects
%br
-= form_tag team_update_admin_user_path(@admin_user), :class => "bulk_import", :method => :put do
+= form_tag team_update_admin_user_path(@admin_user), :class => "bulk_import", :method => :put do
%table.table-bordered
%thead
%tr
@@ -71,7 +70,7 @@
%tr
%td= submit_tag 'Add', :class => "btn primary"
%td
- Read more about project permissions
+ Read more about project permissions
%strong= link_to "here", help_permissions_path, :class => "vlink"
%br
@@ -95,8 +94,8 @@
%td= link_to 'Edit Access', edit_admin_team_member_path(tm), :class => "btn small"
%td= link_to 'Remove from team', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete, :class => "btn small danger"
-:css
- form select {
+:css
+ form select {
width:150px;
}
@@ -104,9 +103,7 @@
width:300px;
}
-
-:javascript
+:javascript
$('select#project_ids').chosen();
$('select#repo_access').chosen();
$('select#project_access').chosen();
-
diff --git a/app/views/commits/_diffs.html.haml b/app/views/commits/_diffs.html.haml
index c304343bcb3ed9e1462c63edf2cb1418eb6d07f7..b28a435fbc3caada0decf9197522b8dd43970642 100644
--- a/app/views/commits/_diffs.html.haml
+++ b/app/views/commits/_diffs.html.haml
@@ -1,19 +1,17 @@
- if @suppress_diff
.alert-message.block-message
- %p
- %strong Warning! Large commit with more then 200 files changed.
+ %p
+ %strong Warning! Large commit with more then 200 files changed.
%p To prevent performance issue we rejected diff information.
- %p
- But if you still want to see diff
- = link_to "click this link", project_commit_path(@project, @commit.id, :force_show_diff => true), :class => "dark"
-
+ %p
+ But if you still want to see diff
+ = link_to "click this link", project_commit_path(@project, @commit.id, :force_show_diff => true), :class => "dark"
%p.cgray
Showing #{pluralize(diffs.count, "changed file")}
.file_stats
= render "commits/diff_head", :diffs => diffs
-
- unless @suppress_diff
- diffs.each_with_index do |diff, i|
- next if diff.diff.empty?
@@ -39,4 +37,3 @@
- else
%p
%center No preview for this file type
-
diff --git a/app/views/commits/_head.html.haml b/app/views/commits/_head.html.haml
index 6c261137f1f9914098ad5e6b7b09033df0f4c225..8e9195c5b50e414d1acb493afebc74b647848fbf 100644
--- a/app/views/commits/_head.html.haml
+++ b/app/views/commits/_head.html.haml
@@ -5,18 +5,18 @@
= hidden_field_tag :destination, "commits"
%li{:class => "#{'active' if current_page?(project_commits_path(@project)) }"}
- = link_to project_commits_path(@project) do
+ = link_to project_commits_path(@project) do
Commits
%li{:class => "#{'active' if current_page?(compare_project_commits_path(@project)) }"}
- = link_to compare_project_commits_path(@project) do
+ = link_to compare_project_commits_path(@project) do
Compare
%li{:class => "#{branches_tab_class}"}
- = link_to project_repository_path(@project) do
+ = link_to project_repository_path(@project) do
Branches
%span.number= @project.repo.branch_count
%li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"}
- = link_to tags_project_repository_path(@project) do
+ = link_to tags_project_repository_path(@project) do
Tags
%span.number= @project.repo.tag_count
@@ -24,10 +24,9 @@
- if current_page?(project_commits_path(@project)) && current_user.private_token
%li.right
%span.rss-icon
- = link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }), :title => "Feed" do
+ = link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }), :title => "Feed" do
= image_tag "rss_ui.png", :title => "feed"
-
:javascript
$(function(){
$('.project-refs-select').chosen();
diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml
index ec5e712c6feca252ac44aafc4706c2aff323cca8..e5173b00ed734af7227c1d17a757700a16f9497b 100644
--- a/app/views/commits/_text_file.html.haml
+++ b/app/views/commits/_text_file.html.haml
@@ -9,14 +9,14 @@
%td.old_line= "..."
%td.new_line= "..."
%td.line_content.matched= line
- - else
+ - else
%td.old_line
= link_to raw(type == "new" ? " " : line_old), "##{line_code}", :id => line_code
- if @comments_allowed
- = link_to "", "#", :class => "line_note_link", "line_code" => line_code, :title => "Add note for this line"
+ = link_to "", "#", :class => "line_note_link", "line_code" => line_code, :title => "Add note for this line"
%td.new_line= link_to raw(type == "old" ? " " : line_new) , "##{line_code}", :id => line_code
%td.line_content{:class => "noteable_line #{type} #{line_code}", "line_code" => line_code}= raw "#{line} "
-
+
- if @comments_allowed
- comments = @line_notes.select { |n| n.line_code == line_code }.sort_by(&:created_at).reverse
- unless comments.empty?
diff --git a/app/views/commits/compare.html.haml b/app/views/commits/compare.html.haml
index 493b47ca75bb617a9826f5e37a9007a3d5c6fd10..c02263296f4f0b7f8d2d132c8aa93264e19c5310 100644
--- a/app/views/commits/compare.html.haml
+++ b/app/views/commits/compare.html.haml
@@ -1,20 +1,20 @@
= render "head"
-%h3
+%h3
Compare View
%hr
%div
- %p
- Fill input field with commit id like
+ %p
+ Fill input field with commit id like
%code '4eedf23'
- or branch/tag name like
- %code master
+ or branch/tag name like
+ %code master
& press compare button for commits list, code diff.
%br
- = form_tag compare_project_commits_path(@project), :method => :get do
+ = form_tag compare_project_commits_path(@project), :method => :get do
.clearfix
= text_field_tag :from, params[:from], :placeholder => "master", :class => "xlarge"
= "..."
@@ -31,7 +31,6 @@
%h4 Diff
= render "commits/diffs", :diffs => @diffs
-
:javascript
$(function() {
var availableTags = #{@project.heads.map(&:name).to_json};
diff --git a/app/views/commits/index.html.haml b/app/views/commits/index.html.haml
index 9ac2762b4bc80958c2f5a16e0e3eb7728f21ac3d..385b4357e4e0790bb6dcefdef705d60b097a5135 100644
--- a/app/views/commits/index.html.haml
+++ b/app/views/commits/index.html.haml
@@ -6,7 +6,7 @@
%span.arrow
= link_to project_commits_path(@project) do
= @project.name
- %span.divider
+ %span.divider
\/
%li
%a{:href => "#"}= params[:path].split("/").join(" / ")
diff --git a/app/views/commits/show.html.haml b/app/views/commits/show.html.haml
index d177b905977b00a0103b331a82f52104dc55af78..0365e6584a82bd1e454bba8759140ef228bbc774 100644
--- a/app/views/commits/show.html.haml
+++ b/app/views/commits/show.html.haml
@@ -38,11 +38,11 @@
:javascript
$(document).ready(function(){
- $(".line_note_link, .line_note_reply_link").live("click", function(e) {
+ $(".line_note_link, .line_note_reply_link").live("click", function(e) {
var form = $(".per_line_form");
$(this).parent().parent().after(form);
form.find("#note_line_code").val($(this).attr("line_code"));
- form.show();
+ form.show();
return false;
});
});
diff --git a/app/views/deploy_keys/index.html.haml b/app/views/deploy_keys/index.html.haml
index 7dc769b534171c4d6727a9698f8b8b1ade8dfd4c..19899de3cf6a21d480dd70a262be4ef952c60f6a 100644
--- a/app/views/deploy_keys/index.html.haml
+++ b/app/views/deploy_keys/index.html.haml
@@ -1,9 +1,9 @@
= render "repositories/head"
- if can? current_user, :admin_project, @project
.alert-message.block-message
- Deploy keys allow read-only access to repository.
- = link_to new_project_deploy_key_path(@project), :class => "btn small", :title => "New Deploy Key" do
- Add Deploy Key
+ Deploy keys allow read-only access to repository.
+ = link_to new_project_deploy_key_path(@project), :class => "btn small", :title => "New Deploy Key" do
+ Add Deploy Key
- if @keys.any?
%table
diff --git a/app/views/errors/encoding.html.haml b/app/views/errors/encoding.html.haml
index c5cd2dd5c8b53608f19a942b57fd34f5389cf04a..0ffbadeb08d4aa84fca99088e6b80222400738da 100644
--- a/app/views/errors/encoding.html.haml
+++ b/app/views/errors/encoding.html.haml
@@ -1,6 +1,6 @@
.alert-message.block-message.error
%h3 Encoding Error
%hr
- %p
+ %p
Page cant be loaded cause of encoding error
diff --git a/app/views/errors/git_not_found.html.haml b/app/views/errors/git_not_found.html.haml
index 172bd4e678a74f9e215e9ebd4b7c41e2bddcbeaa..b2399ac51dc3e813c1a385163cf5fe131c351b3c 100644
--- a/app/views/errors/git_not_found.html.haml
+++ b/app/views/errors/git_not_found.html.haml
@@ -1,9 +1,9 @@
.alert-message.block-message.error
%h3 Git Resource Not found
%hr
- %p
- Application cant get access to some
+ %p
+ Application cant get access to some
%span.label branch
- or
+ or
%span.label commit
in your repository. Maybe it was moved
diff --git a/app/views/events/_event.html.haml b/app/views/events/_event.html.haml
index ed45e27a7b70054c3eb9ef38a7fa53648d8e7444..6321df6386c7e17473af57496d751bf2c5079ce4 100644
--- a/app/views/events/_event.html.haml
+++ b/app/views/events/_event.html.haml
@@ -1,8 +1,8 @@
- if event.allowed?
.event_feed
- - if event.issue?
+ - if event.issue?
= render "events/event_issue", :event => event
- - elsif event.merge_request?
+ - elsif event.merge_request?
= render "events/event_merge_request", :event => event
- elsif event.push?
= render "events/event_push", :event => event
diff --git a/app/views/events/_event_issue.html.haml b/app/views/events/_event_issue.html.haml
index f527cb263912117c9c5775cef95efa9254243869..13fb20cd3791a3a8837ece752afd0e75d7b8c404 100644
--- a/app/views/events/_event_issue.html.haml
+++ b/app/views/events/_event_issue.html.haml
@@ -1,10 +1,10 @@
= image_tag gravatar_icon(event.author_email), :class => "avatar"
-%strong #{event.author_name}
+%strong #{event.author_name}
%span.event_label= event.action_name
- issue
+ issue
= link_to project_issue_path(event.project, event.issue) do
%strong= truncate event.issue_title
-at
+at
%strong= link_to event.project.name, event.project
%span.cgray
= time_ago_in_words(event.created_at)
diff --git a/app/views/events/_event_merge_request.html.haml b/app/views/events/_event_merge_request.html.haml
index 5c1c66e0afb14cf17a0a1b13f0f45f8a15795736..e59a74b9554475c3b113a6ad84244204f4859e12 100644
--- a/app/views/events/_event_merge_request.html.haml
+++ b/app/views/events/_event_merge_request.html.haml
@@ -1,12 +1,12 @@
- if event.action_name == "merged"
.event_icon= image_tag "event_mr_merged.png"
= image_tag gravatar_icon(event.author_email), :class => "avatar"
-%strong #{event.author_name}
+%strong #{event.author_name}
%span.event_label= event.action_name
- merge request
+ merge request
= link_to project_merge_request_path(event.project, event.merge_request) do
%strong= truncate event.merge_request_title
-at
+at
%strong= link_to event.project.name, event.project
%span.cgray
= time_ago_in_words(event.created_at)
diff --git a/app/views/events/_event_push.html.haml b/app/views/events/_event_push.html.haml
index aff66385681db20d0cbe5ee9f6a51b586280f05c..13ef0f8f8391973b9019f786fa04b7a2769c7be4 100644
--- a/app/views/events/_event_push.html.haml
+++ b/app/views/events/_event_push.html.haml
@@ -1,12 +1,12 @@
%div
.event_icon= image_tag "event_push.png"
= image_tag gravatar_icon(event.author_email), :class => "avatar"
- %strong #{event.author_name}
+ %strong #{event.author_name}
%span.event_label= event.push_action_name
= event.ref_type
= link_to project_commits_path(event.project, :ref => event.ref_name) do
%strong= event.ref_name
- at
+ at
%strong= link_to event.project.name, event.project
%span.cgray
= time_ago_in_words(event.created_at)
@@ -14,9 +14,9 @@
- if event.push_with_commits?
- if event.commits_count > 1
- = link_to compare_project_commits_path(event.project, :from => event.parent_commit.id, :to => event.last_commit.id) do
+ = link_to compare_project_commits_path(event.project, :from => event.parent_commit.id, :to => event.last_commit.id) do
%strong #{event.parent_commit.id[0..7]}...#{event.last_commit.id[0..7]}
- - project = event.project
+ - project = event.project
%ul.unstyled.event_commits
- if event.commits_count > 3
- event.commits[0...2].each do |commit|
@@ -24,7 +24,6 @@
%li
%br
\... and #{event.commits_count - 2} more commits
- - else
+ - else
- event.commits.each do |commit|
= render "events/commit", :commit => commit, :project => project
-
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml
index 88f8d7b8ac8278feaa03249e858c252d0f61be58..d12b192bff2cf6233cd8dcc524799d192a1c259f 100644
--- a/app/views/help/index.html.haml
+++ b/app/views/help/index.html.haml
@@ -1,9 +1,9 @@
-%h3.cgray
+%h3.cgray
GITLAB
%span.right v2.5
%hr
%h4 Self Hosted Git Management
-%h4 Fast, secure and stable solution based on Ruby on Rails & Gitolite.
+%h4 Fast, secure and stable solution based on Ruby on Rails & Gitolite.
%hr
diff --git a/app/views/help/web_hooks.html.haml b/app/views/help/web_hooks.html.haml
index 84c6a0c051a767944d3bdb3650fefe27ccf12b8a..2db69bd76d9d805ff29455b107b0d680e03a87cc 100644
--- a/app/views/help/web_hooks.html.haml
+++ b/app/views/help/web_hooks.html.haml
@@ -1,7 +1,7 @@
%h3 Web hooks
%br
-%p Application will send POST request with some data like example below:
+%p Application will send POST request with some data like example below:
%h5 Hooks request example:
.borders= render "hooks/data_ex"
diff --git a/app/views/help/workflow.html.haml b/app/views/help/workflow.html.haml
index 4785b367e653d691be0f973f68c3ab2e5efefcd3..945ab878d73b84df929fb44deca77d4666cfd087 100644
--- a/app/views/help/workflow.html.haml
+++ b/app/views/help/workflow.html.haml
@@ -6,33 +6,33 @@
%li
%p Clone project
.bash
- %pre
+ %pre
git clone git@example.com:project-name.git
%li
%p Create branch with your feature
.bash
- %pre
+ %pre
git checkout -b $feature_name
%li
%p Write code. Commit changes
.bash
- %pre
+ %pre
git commit -am "My feature is ready"
%li
%p Push your branch to gitlabhq
.bash
- %pre
+ %pre
git push origin $feature_name
- %li
+ %li
%p Review your code on Commits page
- %li
+ %li
%p Create a merge request
- %li
+ %li
%p Your team lead will review code & merge it to main branch
diff --git a/app/views/hooks/index.html.haml b/app/views/hooks/index.html.haml
index d81cce763d6a61543ead557d77d563d425326d78..15699fc43900b941c688a7a30efa765098262140 100644
--- a/app/views/hooks/index.html.haml
+++ b/app/views/hooks/index.html.haml
@@ -5,7 +5,7 @@
%span
Post receive hooks for binding events when someone push to repository.
%br
- Read more about web hooks
+ Read more about web hooks
%strong #{link_to "here", help_web_hooks_path, :class => "vlink"}
= form_for [@project, @hook], :as => :hook, :url => project_hooks_path(@project) do |f|
@@ -30,7 +30,7 @@
%tr
%th URL
%th Method
- %th
+ %th
- @hooks.each do |hook|
%tr
%td
@@ -40,4 +40,3 @@
%td POST
%td
= link_to 'Remove', project_hook_path(@project, hook), :confirm => 'Are you sure?', :method => :delete, :class => "danger btn small right"
-
diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml
index 2eb0908a9e71f073975ddc31223bed8cc182629b..4dcba4fb6570aa935c0e59a7e8050e334e3d81c1 100644
--- a/app/views/issues/_form.html.haml
+++ b/app/views/issues/_form.html.haml
@@ -24,7 +24,7 @@
.clearfix
= f.label :critical, "Critical"
.input= f.check_box :critical
-
+
- unless @issue.new_record?
.clearfix
= f.label :closed
@@ -35,8 +35,6 @@
= f.text_area :description, :maxlength => 2000, :class => "xxlarge", :rows => 14
%p.hint Markdown is enabled.
-
-
.actions
- if @issue.new_record?
= f.submit 'Submit new issue', :class => "primary btn"
@@ -44,9 +42,9 @@
= f.submit 'Save changes', :class => "primary btn"
- if request.xhr?
- = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn"
- - else
+ = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn"
+ - else
- if @issue.new_record?
= link_to "Cancel", project_issues_path(@project), :class => "btn"
- - else
+ - else
= link_to "Cancel", project_issue_path(@project, @issue), :class => "btn"
diff --git a/app/views/issues/_head.html.haml b/app/views/issues/_head.html.haml
index 157741dda044d87c810fcd2ff583eb6abc7610d4..701b0625852e66289ca64b46bb193f8c3d6bd646 100644
--- a/app/views/issues/_head.html.haml
+++ b/app/views/issues/_head.html.haml
@@ -1,11 +1,11 @@
%ul.nav.nav-tabs
%li{:class => "#{'active' if current_page?(project_issues_path(@project))}"}
- = link_to project_issues_path(@project), :class => "tab" do
- Browse Issues
+ = link_to project_issues_path(@project), :class => "tab" do
+ Browse Issues
%li{:class => "#{'active' if current_page?(project_milestones_path(@project))}"}
- = link_to project_milestones_path(@project), :class => "tab" do
- Milestones
+ = link_to project_milestones_path(@project), :class => "tab" do
+ Milestones
%li.right
%span.rss-icon
- = link_to project_issues_path(@project, :atom, { :private_token => current_user.private_token }) do
+ = link_to project_issues_path(@project, :atom, { :private_token => current_user.private_token }) do
= image_tag "rss_ui.png", :title => "feed"
diff --git a/app/views/issues/_show.html.haml b/app/views/issues/_show.html.haml
index a4f8d338ba45386700c6fdee7f3f03088dadc5e2..bb7c81f9a8eaf8fdc76b578b5900b7efe6d1bc3f 100644
--- a/app/views/issues/_show.html.haml
+++ b/app/views/issues/_show.html.haml
@@ -7,7 +7,7 @@
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true
- else
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small padded", :remote => true
- = link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
+ = link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
%i.icon-edit
Edit
@@ -22,11 +22,5 @@
- if issue.upvotes > 0
%span.label.success= "+#{issue.upvotes}"
-
-
= link_to project_issue_path(issue.project, issue) do
%p.row_title= truncate(issue.title, :length => 100)
-
-
-
-
diff --git a/app/views/issues/edit.html.haml b/app/views/issues/edit.html.haml
index aa0c931b34df1a94db253d1dc64892b8f4622078..3c9877f842fd94082f9c78bcbaef19438cfbdb42 100644
--- a/app/views/issues/edit.html.haml
+++ b/app/views/issues/edit.html.haml
@@ -1,7 +1,7 @@
= render "form"
-:javascript
- $(function(){
+:javascript
+ $(function(){
$('select#issue_assignee_id').chosen();
$('select#issue_milestone_id').chosen();
});
diff --git a/app/views/issues/index.html.haml b/app/views/issues/index.html.haml
index 86fd6a4add276bc1d8c4a6e4f57280d32c77682a..511957325e0ef7ce2a29436c4f9a0a388407f85a 100644
--- a/app/views/issues/index.html.haml
+++ b/app/views/issues/index.html.haml
@@ -6,7 +6,7 @@
.right
.span5
- if can? current_user, :write_issue, @project
- = link_to new_project_issue_path(@project), :class => "right btn small", :title => "New Issue", :remote => true do
+ = link_to new_project_issue_path(@project), :class => "right btn small", :title => "New Issue", :remote => true do
New Issue
= form_tag search_project_issues_path(@project), :method => :get, :remote => true, :id => "issue_search_form", :class => :right do
= hidden_field_tag :project_id, @project.id, { :id => 'project_id' }
@@ -20,16 +20,16 @@
.span6
%ul.nav.nav-pills.left
%li{:class => ("active" if (params[:f] == "0" || !params[:f]))}
- = link_to project_issues_path(@project, :f => 0, :milestone_id => params[:milestone_id]) do
+ = link_to project_issues_path(@project, :f => 0, :milestone_id => params[:milestone_id]) do
Open
%li{:class => ("active" if params[:f] == "2")}
- = link_to project_issues_path(@project, :f => 2, :milestone_id => params[:milestone_id]) do
+ = link_to project_issues_path(@project, :f => 2, :milestone_id => params[:milestone_id]) do
Closed
%li{:class => ("active" if params[:f] == "3")}
- = link_to project_issues_path(@project, :f => 3, :milestone_id => params[:milestone_id]) do
+ = link_to project_issues_path(@project, :f => 3, :milestone_id => params[:milestone_id]) do
To Me
%li{:class => ("active" if params[:f] == "1")}
- = link_to project_issues_path(@project, :f => 1, :milestone_id => params[:milestone_id]) do
+ = link_to project_issues_path(@project, :f => 1, :milestone_id => params[:milestone_id]) do
All
.span4.right
diff --git a/app/views/issues/new.html.haml b/app/views/issues/new.html.haml
index aa0c931b34df1a94db253d1dc64892b8f4622078..3c9877f842fd94082f9c78bcbaef19438cfbdb42 100644
--- a/app/views/issues/new.html.haml
+++ b/app/views/issues/new.html.haml
@@ -1,7 +1,7 @@
= render "form"
-:javascript
- $(function(){
+:javascript
+ $(function(){
$('select#issue_assignee_id').chosen();
$('select#issue_milestone_id').chosen();
});
diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml
index 314cfefd7fee7c9b7aaae0616b99927d2df8799a..4b94339d3e34eb325afb1f55deea67388107c99c 100644
--- a/app/views/issues/show.html.haml
+++ b/app/views/issues/show.html.haml
@@ -1,7 +1,7 @@
%h3
Issue ##{@issue.id}
%small
- created at
+ created at
= @issue.created_at.stamp("Aug 21, 2011")
%span.right
@@ -11,7 +11,7 @@
- else
= link_to 'Close', project_issue_path(@project, @issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "btn small", :title => "Close Issue"
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
- = link_to edit_project_issue_path(@project, @issue), :class => "btn small" do
+ = link_to edit_project_issue_path(@project, @issue), :class => "btn small" do
%i.icon-edit
Edit
@@ -20,7 +20,7 @@
.upvotes#upvotes= "+#{pluralize @issue.upvotes, 'upvote'}"
.back_link
- = link_to project_issues_path(@project) do
+ = link_to project_issues_path(@project) do
← To issues list
.main_box
@@ -28,7 +28,7 @@
%h4
- if @issue.closed
.alert-message.error.status_info Closed
- - else
+ - else
.alert-message.success.status_info Open
= @issue.title
@@ -37,17 +37,17 @@
= image_tag gravatar_icon(@issue.author_email), :width => 16, :class => "lil_av"
%strong.author= link_to_issue_author(@issue)
- %cite.cgray and currently assigned to
+ %cite.cgray and currently assigned to
= image_tag gravatar_icon(@issue.assignee_email), :width => 16, :class => "lil_av"
%strong.author= link_to_issue_assignee(@issue)
- - if @issue.milestone
+ - if @issue.milestone
- milestone = @issue.milestone
- %cite.cgray and attached to milestone
+ %cite.cgray and attached to milestone
= link_to project_milestone_path(milestone.project, milestone) do
%strong
= truncate(milestone.title, :length => 20)
-
+
- if @issue.description.present?
.bottom_box_content
= preserve do
diff --git a/app/views/keys/index.html.haml b/app/views/keys/index.html.haml
index 61b558a27f55ce3ab6b10d7267df399fcea177b4..565cc800a8f4f53e569120067c8fd9e660cf5b99 100644
--- a/app/views/keys/index.html.haml
+++ b/app/views/keys/index.html.haml
@@ -1,7 +1,7 @@
-%h3
+%h3
SSH Keys
= link_to "Add new", new_key_path, :class => "btn small right"
-
+
%br
%table#keys-table.admin-table
diff --git a/app/views/keys/show.html.haml b/app/views/keys/show.html.haml
index 540c98c0675ff3b5b06d4106f980f46d2da9c0ba..75b703ba893c075c8b3c10123884036f1e38cee3 100644
--- a/app/views/keys/show.html.haml
+++ b/app/views/keys/show.html.haml
@@ -1,16 +1,14 @@
%h3
- Public key:
+ Public key:
= @key.title
%small
- created at
+ created at
= @key.created_at.stamp("Aug 21, 2011")
.back_link
- = link_to keys_path do
+ = link_to keys_path do
← To keys list
%hr
%pre= @key.key
.actions
= link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => "btn danger delete-key"
-
-
diff --git a/app/views/layouts/_app_menu.html.haml b/app/views/layouts/_app_menu.html.haml
index 8b856a0cb3a6f1dc3de60292d8fa7df17bb9374a..c0e3e8a39a12b4f8473c8154c18addefe4bcb3f2 100644
--- a/app/views/layouts/_app_menu.html.haml
+++ b/app/views/layouts/_app_menu.html.haml
@@ -1,11 +1,11 @@
%nav.main_menu
= link_to "Home", root_path, :class => "home #{"current" if current_page?(projects_path) || current_page?(root_path)}", :title => "Home"
- = link_to dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide" do
+ = link_to dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide" do
Issues
%span.count= current_user.assigned_issues.opened.count
= link_to dashboard_merge_requests_path, :class => "#{"current" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide" do
Requests
%span.count= current_user.cared_merge_requests.count
- = link_to search_path, :class => "#{"current" if current_page?(search_path)}" do
+ = link_to search_path, :class => "#{"current" if current_page?(search_path)}" do
Search
= link_to "Help", help_path, :class => "#{"current" if controller.controller_name == "help"}"
diff --git a/app/views/layouts/_head_panel.html.haml b/app/views/layouts/_head_panel.html.haml
index cdb4ebf4a19f5a9e3a342c66c34fadcb5ed4dd5e..9e019021c8930bac2e48db98a5b0ec624760fb90 100644
--- a/app/views/layouts/_head_panel.html.haml
+++ b/app/views/layouts/_head_panel.html.haml
@@ -3,8 +3,8 @@
.container
.top_panel_content
%div.app_logo
- = link_to root_path, :class => "home", :title => "Home" do
- %h1
+ = link_to root_path, :class => "home", :title => "Home" do
+ %h1
GITLAB
%span.separator
%h1.project_name= title
@@ -13,11 +13,11 @@
= text_field_tag "search", nil, :placeholder => "Search", :class => "search-input"
.fbtn
- if current_user.is_admin?
- = link_to admin_root_path, :class => "btn small", :title => "Admin area" do
+ = link_to admin_root_path, :class => "btn small", :title => "Admin area" do
%i.icon-cog
Admin
- if current_user.can_create_project?
- = link_to new_project_path, :class => "btn small", :title => "Create New Project" do
+ = link_to new_project_path, :class => "btn small", :title => "Create New Project" do
%i.icon-plus
Project
.account-box
@@ -43,4 +43,3 @@
}
});
});
-
diff --git a/app/views/layouts/_project_menu.html.haml b/app/views/layouts/_project_menu.html.haml
index 00da49accad229ddc2f9aa3fdf22413256b369fa..268cca487b7e2c2a7a259a293ce59f060727492e 100644
--- a/app/views/layouts/_project_menu.html.haml
+++ b/app/views/layouts/_project_menu.html.haml
@@ -2,14 +2,14 @@
= link_to @project.code, project_path(@project), :class => "home #{project_tab_class}", :title => "Project"
- if @project.repo_exists?
- if can? current_user, :download_code, @project
- = link_to tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class do
+ = link_to tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class do
Files
= link_to "Commits", project_commits_path(@project), :class => commit_tab_class
= link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
- if @project.issues_enabled
= link_to project_issues_filter_path(@project), :class => issues_tab? ? "current" : nil do
- Issues
+ Issues
%span.count= @project.issues.opened.count
- if @project.merge_requests_enabled
= link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
@@ -19,7 +19,7 @@
- if @project.wall_enabled
= link_to wall_project_path(@project), :class => wall_tab? ? "current" : nil do
Wall
-
+
- if @project.wiki_enabled
= link_to project_wiki_path(@project, :index), :class => (controller.controller_name == "wikis") ? "current" : nil do
Wiki
diff --git a/app/views/merge_requests/_commits.html.haml b/app/views/merge_requests/_commits.html.haml
index b6f66fb424e40a77da6fab848a972cd9af5ca735..441a7f32ef4cc55250c0a8a1acd1cd64be3e9c49 100644
--- a/app/views/merge_requests/_commits.html.haml
+++ b/app/views/merge_requests/_commits.html.haml
@@ -1,28 +1,28 @@
-- unless @commits.empty?
+- unless @commits.empty?
.ui-box
%h5 Commits (#{@commits.count})
.merge-request-commits
- if @commits.count > 8
%ul.first_mr_commits.unstyled
- - @commits.first(8).each do |commit|
+ - @commits.first(8).each do |commit|
= render "commits/commit", :commit => commit
- %li.bottom
+ %li.bottom
8 of #{@commits.count} commits displayed.
- %strong
+ %strong
= link_to_function "Click here to show all", "MergeRequest.showAllCommits()"
%ul.all_mr_commits.hide.unstyled
- - @commits.each do |commit|
+ - @commits.each do |commit|
= render "commits/commit", :commit => commit
- - else
+ - else
%ul.unstyled
- - @commits.each do |commit|
+ - @commits.each do |commit|
= render "commits/commit", :commit => commit
-- else
+- else
%h5
- Nothing to merge from
- %span.label #{@merge_request.source_branch}
- to
+ Nothing to merge from
+ %span.label #{@merge_request.source_branch}
+ to
%span.label #{@merge_request.target_branch}
%br
diff --git a/app/views/merge_requests/_diffs.html.haml b/app/views/merge_requests/_diffs.html.haml
index bd904a77094800d3fcc9203cca0ea42f684605ad..27554a775d16b6f2c26da042d588cd08ffceb10b 100644
--- a/app/views/merge_requests/_diffs.html.haml
+++ b/app/views/merge_requests/_diffs.html.haml
@@ -1,3 +1,3 @@
= render "commits/diffs", :diffs => @diffs
-- if @diffs.empty?
+- if @diffs.empty?
%p.cgray Nothing to merge
diff --git a/app/views/merge_requests/_form.html.haml b/app/views/merge_requests/_form.html.haml
index f2ddc9a50e033791386e5b1ac506d28b8cb09602..3d6febc6b7b62ba357bfbf8b0c69b77a7e86d394 100644
--- a/app/views/merge_requests/_form.html.haml
+++ b/app/views/merge_requests/_form.html.haml
@@ -25,10 +25,10 @@
.form-actions
= f.submit 'Save', :class => "btn-primary btn"
- if @merge_request.new_record?
- = link_to project_merge_requests_path(@project), :class => "btn" do
+ = link_to project_merge_requests_path(@project), :class => "btn" do
Cancel
- - else
- = link_to project_merge_request_path(@project, @merge_request), :class => "btn" do
+ - else
+ = link_to project_merge_request_path(@project, @merge_request), :class => "btn" do
Cancel
@@ -41,11 +41,11 @@
- $("#merge_request_source_branch").live("change", function() {
+ $("#merge_request_source_branch").live("change", function() {
$.get("#{branch_from_project_merge_requests_path(@project)}", {ref: $(this).val() });
});
- $("#merge_request_target_branch").live("change", function() {
+ $("#merge_request_target_branch").live("change", function() {
$.get("#{branch_to_project_merge_requests_path(@project)}", {ref: $(this).val() });
});
});
diff --git a/app/views/merge_requests/_head.html.haml b/app/views/merge_requests/_head.html.haml
index 3d847b302ae801f096cc20f8c5945ea4ea3f2782..c578c794060faed09da35a1026730f1b2d46d64b 100644
--- a/app/views/merge_requests/_head.html.haml
+++ b/app/views/merge_requests/_head.html.haml
@@ -1,5 +1,5 @@
.top-tabs
- = link_to project_merge_requests_path(@project), :class => "tab #{'active' if current_page?(project_merge_requests_path(@project)) }" do
- %span
- Merge Requests
+ = link_to project_merge_requests_path(@project), :class => "tab #{'active' if current_page?(project_merge_requests_path(@project)) }" do
+ %span
+ Merge Requests
diff --git a/app/views/merge_requests/index.html.haml b/app/views/merge_requests/index.html.haml
index c49df6bb4d785676ce5c59a181121c3d4829b007..3ec2b10bf7b2b9edd40a615c1f23fd3d873ae96d 100644
--- a/app/views/merge_requests/index.html.haml
+++ b/app/views/merge_requests/index.html.haml
@@ -1,7 +1,7 @@
%h3
Merge Requests
- if can? current_user, :write_issue, @project
- = link_to new_project_merge_request_path(@project), :class => "right btn small", :title => "New Merge Request" do
+ = link_to new_project_merge_request_path(@project), :class => "right btn small", :title => "New Merge Request" do
New Merge Request
%br
@@ -10,16 +10,16 @@
.title
%ul.nav.nav-pills
%li{:class => ("active" if (params[:f] == "0" || !params[:f]))}
- = link_to project_merge_requests_path(@project, :f => 0) do
+ = link_to project_merge_requests_path(@project, :f => 0) do
Open
%li{:class => ("active" if params[:f] == "2")}
- = link_to project_merge_requests_path(@project, :f => 2) do
+ = link_to project_merge_requests_path(@project, :f => 2) do
Closed
%li{:class => ("active" if params[:f] == "3")}
- = link_to project_merge_requests_path(@project, :f => 3) do
+ = link_to project_merge_requests_path(@project, :f => 3) do
To Me
%li{:class => ("active" if params[:f] == "1")}
- = link_to project_merge_requests_path(@project, :f => 1) do
+ = link_to project_merge_requests_path(@project, :f => 1) do
All
%ul.unstyled
diff --git a/app/views/merge_requests/show.html.haml b/app/views/merge_requests/show.html.haml
index 8474117119891196bcb787bf499762bd8f262c5d..8793280702c78be90d9c2e3dc636fd5747304f4c 100644
--- a/app/views/merge_requests/show.html.haml
+++ b/app/views/merge_requests/show.html.haml
@@ -9,7 +9,7 @@
- if can?(current_user, :modify_merge_request, @merge_request)
- if @merge_request.open?
= link_to 'Close', project_merge_request_path(@project, @merge_request, :merge_request => {:closed => true }, :status_only => true), :method => :put, :class => "btn small padded", :title => "Close merge request"
- = link_to edit_project_merge_request_path(@project, @merge_request), :class => "btn small padded" do
+ = link_to edit_project_merge_request_path(@project, @merge_request), :class => "btn small padded" do
%i.icon-edit
Edit
@@ -19,7 +19,7 @@
= render "merge_requests/how_to_merge"
.back_link
- = link_to project_merge_requests_path(@project) do
+ = link_to project_merge_requests_path(@project) do
← To merge requests
.main_box
@@ -27,17 +27,17 @@
%h4
- if @merge_request.closed
.alert-message.error.status_info Closed
- - else
+ - else
.alert-message.success.status_info Open
= @merge_request.title
.middle_box_content
%div
- %cite.cgray Created at #{@merge_request.created_at.stamp("Aug 21, 2011")} by
+ %cite.cgray Created at #{@merge_request.created_at.stamp("Aug 21, 2011")} by
= image_tag gravatar_icon(@merge_request.author_email), :width => 16, :class => "lil_av"
%strong.author= link_to_merge_request_author(@merge_request)
- %cite.cgray and currently assigned to
+ %cite.cgray and currently assigned to
= image_tag gravatar_icon(@merge_request.assignee_email), :width => 16, :class => "lil_av"
%strong.author= link_to_merge_request_assignee(@merge_request)
@@ -46,11 +46,11 @@
.bottom_box_content
- if @merge_request.merged?
%span
- Merged by #{@merge_request.merge_event.author_name}
+ Merged by #{@merge_request.merge_event.author_name}
%small #{time_ago_in_words(@merge_request.merge_event.created_at)} ago.
- elsif @merge_request.closed_event
%span
- Closed by #{@merge_request.closed_event.author_name}
+ Closed by #{@merge_request.closed_event.author_name}
%small #{time_ago_in_words(@merge_request.closed_event.created_at)} ago.
- unless can?(current_user, :accept_mr, @project)
@@ -61,37 +61,34 @@
- if @merge_request.open? && @commits.any? && can?(current_user, :accept_mr, @project)
.automerge_widget.can_be_merged{:style => "display:none"}
.alert.alert-success
- %span
+ %span
= link_to "Accept Merge Request", automerge_project_merge_request_path(@project, @merge_request), :class => "btn small info accept_merge_request", :remote => true
You can accept this request automatically. If you still want to do it manually - #{link_to "click here", "#", :class => "how_to_merge_link vlink", :title => "How To Merge"} for instructions
-
+
.automerge_widget.cannot_be_merged{:style => "display:none"}
.alert.alert-info
%span
= link_to "Show how to merge", "#", :class => "how_to_merge_link btn small padded", :title => "How To Merge"
%strong This request cant be merged with GitLab. You should do it manually
-
+
.automerge_widget.unchecked
.alert-message
- %strong
+ %strong
%i.icon-refresh
- Checking for ability to automatically merge…
-
+ Checking for ability to automatically merge…
+
.automerge_widget.already_cannot_be_merged{:style => "display:none"}
.alert.alert-info
%strong This merge request already can not be merged. Try to reload page.
-
-
-
= render "merge_requests/commits"
- unless @commits.empty?
.nav.nav-tabs
%li.active
- = link_to "#notes", :class => "merge-notes-tab tab" do
+ = link_to "#notes", :class => "merge-notes-tab tab" do
Notes
%li
= link_to "#diffs", "data-url" => diffs_project_merge_request_path(@project, @merge_request), :class => "merge-diffs-tab tab" do
@@ -120,11 +117,11 @@
:javascript
$(document).ready(function(){
- $(".line_note_link, .line_note_reply_link").live("click", function(e) {
+ $(".line_note_link, .line_note_reply_link").live("click", function(e) {
var form = $(".per_line_form");
$(this).parent().parent().after(form);
form.find("#note_line_code").val($(this).attr("line_code"));
- form.show();
+ form.show();
return false;
});
});
diff --git a/app/views/milestones/_form.html.haml b/app/views/milestones/_form.html.haml
index 46d7daf96b8f7e1ebf9e830a90e40e5b248b2a73..69567eff417c39ed928d52f1afabc07600ce25d6 100644
--- a/app/views/milestones/_form.html.haml
+++ b/app/views/milestones/_form.html.haml
@@ -1,6 +1,6 @@
%h3= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.id}"
.back_link
- = link_to project_milestones_path(@project) do
+ = link_to project_milestones_path(@project) do
← To milestones
%hr
@@ -30,7 +30,6 @@
.controls
.datepicker
-
.form-actions
- if @milestone.new_record?
= f.submit 'Create milestone', :class => "primary btn"
@@ -38,11 +37,11 @@
= f.submit 'Save changes', :class => "primary btn"
- if request.xhr?
- = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn"
- - else
+ = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn"
+ - else
- if @milestone.new_record?
= link_to "Cancel", project_milestones_path(@project), :class => "btn"
- - else
+ - else
= link_to "Cancel", project_milestone_path(@project, @milestone), :class => "btn"
:javascript
diff --git a/app/views/milestones/edit.html.haml b/app/views/milestones/edit.html.haml
index bada72459c99f425c04acd009c508a1600f57d85..af975a84a49f45b15912429b129d16f477285e8e 100644
--- a/app/views/milestones/edit.html.haml
+++ b/app/views/milestones/edit.html.haml
@@ -1,7 +1,7 @@
= render "form"
-:javascript
- $(function(){
+:javascript
+ $(function(){
$('select#issue_assignee_id').chosen();
});
diff --git a/app/views/milestones/index.html.haml b/app/views/milestones/index.html.haml
index faa87e02a674bd471a6339f7b86092ba9f7d6821..58d25874bd5869417e27b420e791f4cfb404c022 100644
--- a/app/views/milestones/index.html.haml
+++ b/app/views/milestones/index.html.haml
@@ -9,10 +9,10 @@
.title
%ul.nav.nav-pills
%li{:class => ("active" if (params[:f] == "0" || !params[:f]))}
- = link_to project_milestones_path(@project, :f => 0) do
+ = link_to project_milestones_path(@project, :f => 0) do
Active
%li{:class => ("active" if params[:f] == "1")}
- = link_to project_milestones_path(@project, :f => 1) do
+ = link_to project_milestones_path(@project, :f => 1) do
All
%ul.unstyled
diff --git a/app/views/milestones/show.html.haml b/app/views/milestones/show.html.haml
index b41e4139ad9f204a79411d62df341cff8068a931..dccfe625dd170d0649f313d24191b5c6175dd9ed 100644
--- a/app/views/milestones/show.html.haml
+++ b/app/views/milestones/show.html.haml
@@ -6,12 +6,12 @@
%span.right
= link_to 'Browse Issues', project_issues_path(@milestone.project, :milestone_id => @milestone.id), :class => "btn edit-milestone-link small"
- if can?(current_user, :admin_milestone, @project)
- = link_to edit_project_milestone_path(@project, @milestone), :class => "btn small" do
+ = link_to edit_project_milestone_path(@project, @milestone), :class => "btn small" do
%i.icon-edit
Edit
.back_link
- = link_to project_milestones_path(@project) do
+ = link_to project_milestones_path(@project) do
← To milestones list
.main_box
@@ -19,7 +19,7 @@
%h5
- if @milestone.closed
.alert-message.error.status_info Closed
- - else
+ - else
.alert-message.success.status_info Open
= @milestone.title
%small.right= @milestone.expires_at
@@ -48,7 +48,7 @@
- @issues.each do |issue|
%tr
%td
- = link_to [@project, issue] do
+ = link_to [@project, issue] do
= image_tag gravatar_icon(issue.assignee_email, 16), :width => "16"
%span.badge.badge-info ##{issue.id}
diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml
index 74ffbecbee511f85cefc3f4175766b93f5c24783..03774d160b9f440f450ce226656b527286ffab46 100644
--- a/app/views/notes/_form.html.haml
+++ b/app/views/notes/_form.html.haml
@@ -14,12 +14,12 @@
.span4
%h5 Notify via email:
.clearfix
- = label_tag :notify do
+ = label_tag :notify do
= check_box_tag :notify, 1, @note.noteable_type != "Commit"
%span Project team
- if @note.notify_only_author?(current_user)
- = label_tag :notify_author do
+ = label_tag :notify_author do
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
%span Commit author
.span8
diff --git a/app/views/notes/_load.js.haml b/app/views/notes/_load.js.haml
index fa373145298f3c2e5a27943e6e214d0159ff085c..1f3559670d11c1eeaaf31c074e716aebe72b4b85 100644
--- a/app/views/notes/_load.js.haml
+++ b/app/views/notes/_load.js.haml
@@ -11,7 +11,7 @@
:plain
NoteList.setContent(#{@notes.last.id}, #{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
-- else
+- else
- if params[:first_id]
:plain
NoteList.append(#{params[:first_id]}, "");
diff --git a/app/views/notes/_per_line_form.html.haml b/app/views/notes/_per_line_form.html.haml
index e8558cbd15a567d26dcec5ea868154b07776f1bd..94c558029d2a1975022550a2f532231b8987da0c 100644
--- a/app/views/notes/_per_line_form.html.haml
+++ b/app/views/notes/_per_line_form.html.haml
@@ -15,19 +15,19 @@
= f.text_area :note, :size => 255
%h5 Notify via email:
.clearfix
- = label_tag :notify do
+ = label_tag :notify do
= check_box_tag :notify, 1, @note.noteable_type != "Commit"
%span Project team
- if @note.notify_only_author?(current_user)
- = label_tag :notify_author do
+ = label_tag :notify_author do
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
%span Commit author
.actions
= f.submit 'Add note', :class => "btn primary", :id => "submit_note"
= link_to "Close", "#", :class => "btn hide-button"
-:javascript
+:javascript
$(function(){
$(".per_line_form .hide-button").bind("click", function(){
$('.per_line_form').hide();
diff --git a/app/views/notes/_per_line_show.html.haml b/app/views/notes/_per_line_show.html.haml
index 45e6825e9cb86c91cd142923fb369abffbd04748..e239c618b117535b155513528e59f63f0fb4122a 100644
--- a/app/views/notes/_per_line_show.html.haml
+++ b/app/views/notes/_per_line_show.html.haml
@@ -1,5 +1,5 @@
%tr.line_notes_row
- %td{:colspan => 3}
+ %td{:colspan => 3}
%ul
= render :partial => "notes/show", :locals => {:note => note}
diff --git a/app/views/notes/_reply_button.html.haml b/app/views/notes/_reply_button.html.haml
index f53b8c8d3645262720d0548bfdcddf3f05eb629d..f03ba4d7018b65bfbbc94ca0dda41e83a1a97e59 100644
--- a/app/views/notes/_reply_button.html.haml
+++ b/app/views/notes/_reply_button.html.haml
@@ -1,3 +1,3 @@
%tr.line_notes_row.reply
- %td{:colspan => 3}
- = link_to "Reply", "#", :class => "line_note_reply_link", "line_code" => line_code, :title => "Add note for this line"
+ %td{:colspan => 3}
+ = link_to "Reply", "#", :class => "line_note_reply_link", "line_code" => line_code, :title => "Add note for this line"
diff --git a/app/views/notes/create.js.haml b/app/views/notes/create.js.haml
index 671103400013e95caecd1a157bd3eb74d49ca91a..e87dbcf63c16e70e264e974b3838d1b73bfee61d 100644
--- a/app/views/notes/create.js.haml
+++ b/app/views/notes/create.js.haml
@@ -1,6 +1,6 @@
- if @note.line_code
= render "create_line", :note => @note
-- else
+- else
= render "create_common", :note => @note
-# Enable submit button
diff --git a/app/views/profile/design.html.haml b/app/views/profile/design.html.haml
index a4b40d03899bd64af5ea1268cbaaf609d50b65eb..1942e83d7a240becad4e4d30d1c858adbe01d744 100644
--- a/app/views/profile/design.html.haml
+++ b/app/views/profile/design.html.haml
@@ -3,11 +3,11 @@
%h3 Application theme
%hr
.clearfix
- = label_tag do
+ = label_tag do
= f.radio_button :theme_id, 1
Default
- = label_tag do
+ = label_tag do
= f.radio_button :theme_id, 2
Classic
%br
@@ -29,8 +29,8 @@
= f.radio_button :dark_scheme, true
Dark code preview
-:javascript
- $(function(){
+:javascript
+ $(function(){
$(".edit_user input").bind("click", function() {
$(".edit_user").submit();
});
diff --git a/app/views/profile/show.html.haml b/app/views/profile/show.html.haml
index 892cfbf5ec1e19921d39767e6b256788ef98a9dd..5a343c3398156c4dbd868b024a3b24e2aed7c23d 100644
--- a/app/views/profile/show.html.haml
+++ b/app/views/profile/show.html.haml
@@ -50,10 +50,10 @@
You can change your avatar at gravatar.com
%h4
- Personal projects:
+ Personal projects:
%small.right
%span= current_user.my_own_projects.count
- of
+ of
%span= current_user.projects_limit
.progress
.bar{:style => "width: #{current_user.projects_limit_percent}%;"}
@@ -65,6 +65,5 @@
= link_to "Add Public Key", new_key_path, :class => "btn small right"
-
.form-actions
= f.submit 'Save', :class => "btn-primary btn"
diff --git a/app/views/profile/token.html.haml b/app/views/profile/token.html.haml
index c277adf98e98ae2721dc6c8c57e46fe774435ebe..199a4e02b92797e5d0c91898b89671a950560358 100644
--- a/app/views/profile/token.html.haml
+++ b/app/views/profile/token.html.haml
@@ -1,4 +1,4 @@
-%h3
+%h3
Private token
%span.cred.right
keep it in secret!
diff --git a/app/views/projects/_form.html.haml b/app/views/projects/_form.html.haml
index 932ed04d11e770fdb3850d726e1580d4cc99bcbf..36923bedc7bdbf3f6e4eb7ce9a22378bf78520c2 100644
--- a/app/views/projects/_form.html.haml
+++ b/app/views/projects/_form.html.haml
@@ -14,7 +14,7 @@
.alert.alert-info
%h5 Advanced settings:
.clearfix
- = f.label :path do
+ = f.label :path do
Git Clone
.input
.input-prepend
@@ -22,19 +22,19 @@
= f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record?
%span.add-on= ".git"
.clearfix
- = f.label :code do
+ = f.label :code do
URL
.input
.input-prepend
%span.add-on= web_app_url
= f.text_field :code, :placeholder => "example"
- - unless @project.new_record? || @project.heads.empty?
+ - unless @project.new_record? || @project.heads.empty?
.clearfix
= f.label :default_branch, "Default Branch"
.input= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:210px;")
- - unless @project.new_record?
+ - unless @project.new_record?
.alert.alert-info
%h5 Features:
@@ -49,13 +49,13 @@
.clearfix
= f.label :wall_enabled, "Wall"
.input= f.check_box :wall_enabled
-
+
.clearfix
= f.label :wiki_enabled, "Wiki"
.input= f.check_box :wiki_enabled
-
+
%br
-
+
.actions
= f.submit 'Save', :class => "btn primary"
= link_to 'Cancel', @project, :class => "btn"
diff --git a/app/views/projects/_new_form.html.haml b/app/views/projects/_new_form.html.haml
index 240ee884783999f3a50eca9ccab76482f43884bf..e420f7009483f200f48f31a121711e65ad5a37b9 100644
--- a/app/views/projects/_new_form.html.haml
+++ b/app/views/projects/_new_form.html.haml
@@ -13,7 +13,7 @@
.alert.alert-info
%h5 Advanced settings:
.clearfix
- = f.label :path do
+ = f.label :path do
Git Clone
.input
.input-prepend
@@ -21,7 +21,7 @@
= f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record?
%span.add-on= ".git"
.clearfix
- = f.label :code do
+ = f.label :code do
URL
.input
.input-prepend
diff --git a/app/views/projects/_project_head.html.haml b/app/views/projects/_project_head.html.haml
index 3d46a676a6dfaaaa92b80d4a331ff46f8fb4ed06..f3ac3c27ccfea3fad847fc9a9b09c4b9703e96ee 100644
--- a/app/views/projects/_project_head.html.haml
+++ b/app/views/projects/_project_head.html.haml
@@ -1,30 +1,29 @@
%ul.nav.nav-tabs
%li{ :class => "#{'active' if current_page?(project_path(@project)) }" }
- = link_to project_path(@project), :class => "activities-tab tab" do
+ = link_to project_path(@project), :class => "activities-tab tab" do
%i.icon-home
Show
%li{ :class => " #{'active' if (controller.controller_name == "team_members") || current_page?(team_project_path(@project)) }" }
- = link_to team_project_path(@project), :class => "team-tab tab" do
+ = link_to team_project_path(@project), :class => "team-tab tab" do
%i.icon-user
Team
%li{ :class => "#{'active' if current_page?(files_project_path(@project)) }" }
- = link_to files_project_path(@project), :class => "files-tab tab " do
+ = link_to files_project_path(@project), :class => "files-tab tab " do
Attachments
%li{ :class => " #{'active' if (controller.controller_name == "snippets") }" }
- = link_to project_snippets_path(@project), :class => "snippets-tab tab" do
+ = link_to project_snippets_path(@project), :class => "snippets-tab tab" do
Snippets
- if can? current_user, :admin_project, @project
%li.right{:class => "#{'active' if controller.controller_name == "deploy_keys"}"}
- = link_to project_deploy_keys_path(@project) do
+ = link_to project_deploy_keys_path(@project) do
%span
Deploy Keys
%li.right{:class => "#{'active' if controller.controller_name == "hooks" }"}
- = link_to project_hooks_path(@project) do
+ = link_to project_hooks_path(@project) do
%span
Hooks
%li.right{ :class => "#{'active' if current_page?(edit_project_path(@project)) }" }
- = link_to edit_project_path(@project), :class => "stat-tab tab " do
+ = link_to edit_project_path(@project), :class => "stat-tab tab " do
%i.icon-edit
Edit
-
diff --git a/app/views/projects/_show.html.haml b/app/views/projects/_show.html.haml
index edb9c1cefe6f43386d1104c0605e36626b45d700..c6755fa730adf36d37fd36edf6435918d090b2a9 100644
--- a/app/views/projects/_show.html.haml
+++ b/app/views/projects/_show.html.haml
@@ -6,8 +6,8 @@
%a.btn{:href => project_commits_path(@project)} Commits
%strong.right
- = link_to project_path(@project) do
- Switch to project →
+ = link_to project_path(@project) do
+ Switch to project →
%br
.alert-message.block-message.warning
.input
diff --git a/app/views/projects/_team.html.haml b/app/views/projects/_team.html.haml
index 196c7b92db12a4f988037b58eb823a1ba6a60076..5839346052a3340d5cc7f8b3de59dee9f317f143 100644
--- a/app/views/projects/_team.html.haml
+++ b/app/views/projects/_team.html.haml
@@ -10,7 +10,7 @@
:javascript
$(function(){
- $('.repo-access-select, .project-access-select').live("change", function() {
+ $('.repo-access-select, .project-access-select').live("change", function() {
$(this.form).submit();
});
})
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index 44411b715966730eaeda472e0a20ddebb4ec7a98..eef113e002be219f450be4078c01822011ae2829 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -2,18 +2,18 @@
.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.
+ %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.
+ %li After push you will be able to browse code, commits etc.
- bash_lexer = Pygments::Lexer[:bash]
%div.git-empty
%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")
= preserve do
= raw bash_lexer.highlight(setup_str, :lexer => 'bash', :options => {:encoding => 'utf-8'})
@@ -23,7 +23,7 @@
%h3 Create Repository
- repo_setup_str = ["mkdir #{@project.path}",
"cd #{@project.path}",
- "git init",
+ "git init",
"touch README",
"git add README",
"git commit -m 'first commit'",
diff --git a/app/views/projects/files.html.haml b/app/views/projects/files.html.haml
index 19252d423ee645247c79a8f8459c4613b9e16bb5..d171b0d09a1ea46161c39245277c05d8c8329f69 100644
--- a/app/views/projects/files.html.haml
+++ b/app/views/projects/files.html.haml
@@ -8,11 +8,11 @@
= image_tag gravatar_icon(note.author_email), :class => "left", :width => 16
= note.attachment_identifier
- %td
+ %td
Added
= time_ago_in_words(note.created_at)
ago
-- else
+- else
.alert-message.block-message
%p All files attached to project wall, issues etc will be displayed here
diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml
index e18f37e17f72262d7e3c348da10f6da610df013e..6b050e0c86dacc83bff7e798307b1ad72cdddf48 100644
--- a/app/views/projects/index.html.haml
+++ b/app/views/projects/index.html.haml
@@ -4,14 +4,14 @@
- if current_user.require_ssh_key?
.alert.alert-error.padded
%span
- You wont be able to pull/push project code unless you
+ You wont be able to pull/push project code unless you
%strong
- = link_to new_key_path, :class => "vlink" do
+ = link_to new_key_path, :class => "vlink" do
add new key
to your profile
- if @events.any?
= render @events
- - else
+ - else
.padded
%strong.cgray Projects activity will be displayed here
.side
@@ -22,7 +22,7 @@
(#{@projects.total_count})
- if current_user.can_create_project?
%span.right
- = link_to new_project_path, :class => "btn very_small info" do
+ = link_to new_project_path, :class => "btn very_small info" do
%i.icon-plus
New Project
- @projects.each do |project|
@@ -34,7 +34,7 @@
→
.bottom= paginate @projects, :theme => "gitlab"
-- else
+- else
%h3 Nothing here
%br
- if current_user.can_create_project?
@@ -43,7 +43,7 @@
= current_user.projects_limit
projects. Click on link below to add a new one
.link_holder
- = link_to new_project_path, :class => "" do
- New Project »
- - else
+ = link_to new_project_path, :class => "" do
+ New Project »
+ - else
If you will be added to project - it will be displayed here
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 88dce0d5d2331400bc93b2f9a8f653b6e889e27c..22fbd9d2e957ff603d310f233d4b60346b3833a4 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -4,7 +4,7 @@
.row
-#.span2
.back_link
- = link_to projects_path do
+ = link_to projects_path do
← To projects list
.span7
.form-horizontal
@@ -14,14 +14,14 @@
.span4.right
.right
- if can? current_user, :download_code, @project
- = link_to archive_project_repository_path(@project), :class => "btn small padded" do
+ = link_to archive_project_repository_path(@project), :class => "btn small padded" do
%i.icon-download-alt
Download
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
- = link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
+ = link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
Merge Request
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
- = link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
+ = link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
Issue
- unless @events.blank?
diff --git a/app/views/projects/team.html.haml b/app/views/projects/team.html.haml
index b023e5bf94f318417fda38f41d7ff4b96cbfdaa5..664d6c022da22934eecc507234630f0e059853cf 100644
--- a/app/views/projects/team.html.haml
+++ b/app/views/projects/team.html.haml
@@ -1,16 +1,16 @@
= render "project_head"
-%h3
+%h3
Team Members
%small (#{@project.users_projects.count})
- if can? current_user, :admin_team_member, @project
.alert.alert-info
- = link_to new_project_team_member_path(@project), :class => "btn small right", :title => "New Team Member" do
+ = link_to new_project_team_member_path(@project), :class => "btn small right", :title => "New Team Member" do
New Team Member
- Read more about project permissions
+ Read more about project permissions
%strong= link_to "here", help_permissions_path, :class => "vlink"
%br
- To open team member profile - click on avatar.
+ To open team member profile - click on avatar.
= render :partial => "team", :locals => {:project => @project}
diff --git a/app/views/protected_branches/index.html.haml b/app/views/protected_branches/index.html.haml
index fa80a4897740ec724a5de885e9bf3111bd8488d6..bd1e9cebb1aba5630a9ffc2bc8b76e61b6f10eb4 100644
--- a/app/views/protected_branches/index.html.haml
+++ b/app/views/protected_branches/index.html.haml
@@ -1,8 +1,8 @@
= render "repositories/branches_head"
.alert
- %p Protected branches designed to prevent push for all except #{link_to "masters", help_permissions_path, :class => "vlink"}.
- %p This ability allows:
+ %p Protected branches designed to prevent push for all except #{link_to "masters", help_permissions_path, :class => "vlink"}.
+ %p This ability allows:
%ul
%li keep stable branches secured
%li forced code review before merge to protected branches
@@ -23,7 +23,6 @@
= f.submit 'Protect', :class => "primary btn"
-
- unless @branches.empty?
%table.admin-table
%thead
@@ -48,9 +47,5 @@
- if can? current_user, :admin_project, @project
= link_to 'Unprotect', [@project, branch], :confirm => 'Are you sure?', :method => :delete, :class => "danger btn small"
-
-
-
-
:javascript
$('select#protected_branch_name').chosen();
diff --git a/app/views/refs/_head.html.haml b/app/views/refs/_head.html.haml
index afec5af858074d60482b1cda9495addc43d724a1..16a0cddfa241f8dd241cf654add919804e36b945 100644
--- a/app/views/refs/_head.html.haml
+++ b/app/views/refs/_head.html.haml
@@ -5,6 +5,6 @@
= hidden_field_tag :destination, "tree"
= hidden_field_tag :path, params[:path]
%li{:class => "#{'active' if (controller.controller_name == "refs") }"}
- = link_to tree_project_ref_path(@project, @ref) do
+ = link_to tree_project_ref_path(@project, @ref) do
Source
diff --git a/app/views/refs/_tree_item.html.haml b/app/views/refs/_tree_item.html.haml
index 691a2b973690b2d9100a23c0c28e14b9e0a2a29e..fe2f7293347cd869e2b409cfa793a732e1b6f328 100644
--- a/app/views/refs/_tree_item.html.haml
+++ b/app/views/refs/_tree_item.html.haml
@@ -8,7 +8,7 @@
= image_tag "file_txt.png"
- elsif content.image?
= image_tag "file_img.png"
- - else
+ - else
= image_tag "file_bin.png"
- else
= image_tag "file_dir.png"
diff --git a/app/views/refs/tree.html.haml b/app/views/refs/tree.html.haml
index 7d19280b8203cfa4cb68392925221c085acf334d..b48f7f917823418c897955756ee61b3bff33225a 100644
--- a/app/views/refs/tree.html.haml
+++ b/app/views/refs/tree.html.haml
@@ -2,6 +2,6 @@
#tree-holder= render :partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @tree}
:javascript
- $(function() {
+ $(function() {
Tree.init();
});
diff --git a/app/views/repositories/_branches_head.html.haml b/app/views/repositories/_branches_head.html.haml
index 63cbee6c4f46b82bc239e40f199f9fd3be4a2dc4..0c94f298270b70bb11ba0b9f1746af3ebb8903f9 100644
--- a/app/views/repositories/_branches_head.html.haml
+++ b/app/views/repositories/_branches_head.html.haml
@@ -1,11 +1,11 @@
= render "commits/head"
%ul.nav.nav-pills
%li{:class => ("active" if current_page?(project_repository_path(@project)))}
- = link_to project_repository_path(@project) do
+ = link_to project_repository_path(@project) do
Recent
%li{:class => ("active" if current_page?(project_protected_branches_path(@project)))}
- = link_to project_protected_branches_path(@project) do
+ = link_to project_protected_branches_path(@project) do
Protected
%li{:class => ("active" if current_page?(branches_project_repository_path(@project)))}
- = link_to branches_project_repository_path(@project) do
+ = link_to branches_project_repository_path(@project) do
All
diff --git a/app/views/repositories/_feed.html.haml b/app/views/repositories/_feed.html.haml
index 9fdba10b9267b3d6f1ad9af4b07435af31e87f07..0734327233e3eabb0dd44770eb356089ae55d28d 100644
--- a/app/views/repositories/_feed.html.haml
+++ b/app/views/repositories/_feed.html.haml
@@ -1,7 +1,7 @@
- commit = update
%tr
%td
- = link_to project_commits_path(@project, :ref => commit.head.name) do
+ = link_to project_commits_path(@project, :ref => commit.head.name) do
%strong
= commit.head.name
- if commit.head.name == @project.root_ref
diff --git a/app/views/repositories/tags.html.haml b/app/views/repositories/tags.html.haml
index 884db3b352a5df6839bd21e1500fb46a95ada353..5e5cca31d8fe4b293fb168696a25d123a88fe251 100644
--- a/app/views/repositories/tags.html.haml
+++ b/app/views/repositories/tags.html.haml
@@ -26,5 +26,5 @@
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project, :ref => tag.name), :class => "visible_link download_repo_link"
-- else
+- else
%h3 No tags
diff --git a/app/views/search/show.html.haml b/app/views/search/show.html.haml
index 7ce47eccbeb5793e8ddb71cab3bd3fbd436df356..b9fff9a77a625bd1058f2f8b0127f23f21753e87 100644
--- a/app/views/search/show.html.haml
+++ b/app/views/search/show.html.haml
@@ -1,6 +1,6 @@
= form_tag search_path, :method => :get do |f|
.padded
- = label_tag :search do
+ = label_tag :search do
%strong Looking for
.input
= text_field_tag :search, params[:search],:placeholder => "issue 143", :class => "input-xxlarge"
@@ -13,30 +13,30 @@
- if @projects.empty? && @merge_requests.empty?
%h3
%small Nothing here
- - else
+ - else
- if @projects.any?
%h4 Projects
.padded
- @projects.each do |project|
- = link_to project do
+ = link_to project do
%h4
%span.ico.project
= project.name
%small
- last activity at
+ last activity at
= project.last_activity_date.stamp("Aug 25, 2011")
- if @merge_requests.any?
%h4 Merge Requests
.padded
- @merge_requests.each do |merge_request|
- = link_to [merge_request.project, merge_request] do
+ = link_to [merge_request.project, merge_request] do
%h5
Merge Request #
= merge_request.id
–
= truncate merge_request.title, :length => 50
%small
- updated at
+ updated at
= merge_request.updated_at.stamp("Aug 25, 2011")
%strong
%span.label= merge_request.project.name
@@ -44,14 +44,14 @@
%h4 Issues
.padded
- @issues.each do |issue|
- = link_to [issue.project, issue] do
+ = link_to [issue.project, issue] do
%h5
Issue #
= issue.id
–
= truncate issue.title, :length => 50
%small
- updated at
+ updated at
= issue.updated_at.stamp("Aug 25, 2011")
%strong
%span.label= issue.project.name
diff --git a/app/views/snippets/_form.html.haml b/app/views/snippets/_form.html.haml
index 5a28a350d3cd476b2bb9fceb78df7022b2dabf6c..c9128f642fce674693cb72854073dac79595aea6 100644
--- a/app/views/snippets/_form.html.haml
+++ b/app/views/snippets/_form.html.haml
@@ -29,8 +29,8 @@
-:javascript
- $(function(){
+:javascript
+ $(function(){
$('select#snippet_expires_at').chosen();
});
diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml
index 762265f16b3369a80d0892297ae644da41ff2aff..53d6b57f72874df234a8982dc18d51a3dcee3544 100644
--- a/app/views/snippets/index.html.haml
+++ b/app/views/snippets/index.html.haml
@@ -2,11 +2,11 @@
- if can? current_user, :write_snippet, @project
.alert-message.block-message
- = link_to new_project_snippet_path(@project), :class => "btn small add_new right", :title => "New Snippet" do
+ = link_to new_project_snippet_path(@project), :class => "btn small add_new right", :title => "New Snippet" do
Add new snippet
Share code pastes with others if it cant be in a git repository
%br
- To add new snippet - click on button.
+ To add new snippet - click on button.
- unless @snippets.fresh.empty?
%table.zebra-striped.borders= render @snippets.fresh
diff --git a/app/views/team_members/_form.html.haml b/app/views/team_members/_form.html.haml
index 281776de036c6b918de4ece7ce2454c59547b729..1d882e295d94356c2dceacd45101981c2f108bd1 100644
--- a/app/views/team_members/_form.html.haml
+++ b/app/views/team_members/_form.html.haml
@@ -22,7 +22,7 @@
= link_to "Cancel", team_project_path(@project), :class => "btn"
:css
- form select {
+ form select {
width:300px;
}
diff --git a/app/views/team_members/_show.html.haml b/app/views/team_members/_show.html.haml
index 1213a9816dc3dce1c491c6a9d255631b340a118b..60b3c9bd4d45590610f837a2450bd46ab5bb8649 100644
--- a/app/views/team_members/_show.html.haml
+++ b/app/views/team_members/_show.html.haml
@@ -8,9 +8,9 @@
- if user.blocked
%span.label Blocked
- = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
+ = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
= image_tag gravatar_icon(user.email, 40), :class => "avatar"
- = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
+ = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
%strong= truncate(user.name, :lenght => 40)
%br
%div.cgray= user.email
diff --git a/app/views/team_members/create.js.haml b/app/views/team_members/create.js.haml
index bfe8ca0d93190d7c4ed21a76da188edc9ee45cc7..d5ae5d0cc435582e285a7a0a6c1c050ac3d2079a 100644
--- a/app/views/team_members/create.js.haml
+++ b/app/views/team_members/create.js.haml
@@ -1,7 +1,7 @@
- if @team_member.valid?
:plain
$("#new_team_member").hide("slide", { direction: "right" }, 150, function(){
- $("#team-table").show("slide", { direction: "left" }, 150, function() {
+ $("#team-table").show("slide", { direction: "left" }, 150, function() {
$("#new_team_member").remove();
$("#team-table").replaceWith("#{escape_javascript(render('projects/team'))}");
$(".add_new").show();
diff --git a/app/views/team_members/show.html.haml b/app/views/team_members/show.html.haml
index c3470cd82f79a196cce42b3b3cb83f55e459496c..f8a203d43c19c66493ff390865069a3dab9be380 100644
--- a/app/views/team_members/show.html.haml
+++ b/app/views/team_members/show.html.haml
@@ -11,7 +11,7 @@
%hr
.back_link
%br
- = link_to team_project_path(@project), :class => "" do
+ = link_to team_project_path(@project), :class => "" do
← To team list
%br
.row
@@ -56,7 +56,7 @@
:javascript
$(function(){
- $('.repo-access-select, .project-access-select').live("change", function() {
+ $('.repo-access-select, .project-access-select').live("change", function() {
$(this.form).submit();
});
})
diff --git a/app/views/wikis/_form.html.haml b/app/views/wikis/_form.html.haml
index 55191250ceb06206017a3c8591779aa9c7396a2d..dbb8648d6643a0cb1b357058b789394964ec4e0c 100644
--- a/app/views/wikis/_form.html.haml
+++ b/app/views/wikis/_form.html.haml
@@ -7,10 +7,10 @@
%li= msg
.alert-message.block-message.warning
- %p
- Wiki content is parsed with #{link_to "Markdown", "http://en.wikipedia.org/wiki/Markdown"}.
+ %p
+ Wiki content is parsed with #{link_to "Markdown", "http://en.wikipedia.org/wiki/Markdown"}.
%br
- To add link to new page you can just type
+ To add link to new page you can just type
%code [Link Title](page-slug)
.clearfix
= f.label :title