Remove trailing whitespaces and trailing lines

This commit is contained in:
Andrey Vakarev 2012-06-04 01:37:27 +03:00
parent 7e0726b1da
commit 3bd06d55e0
80 changed files with 261 additions and 296 deletions

View file

@ -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"

View file

@ -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;")

View file

@ -1,4 +1,4 @@
%h3
%h3
Projects
= link_to 'New Project', new_admin_project_path, :class => "btn small right"
%br

View file

@ -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();

View file

@ -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();

View file

@ -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"

View file

@ -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();