Remove all white spaces

This commit is contained in:
taitus
2017-09-06 14:12:32 +02:00
parent 25560a27fc
commit 9b6b57a24c
13 changed files with 24 additions and 25 deletions

View File

@@ -1,7 +1,6 @@
App.EmbedVideo = App.EmbedVideo =
initialize: -> initialize: ->
$('#js-embedded-video').each -> $('#js-embedded-video').each ->
code = $(this).data("video-code") code = $(this).data("video-code")
$('#js-embedded-video').html(code) $('#js-embedded-video').html(code)

View File

@@ -48,7 +48,7 @@ class Admin::BudgetInvestmentMilestonesController < Admin::BaseController
end end
def load_budget_investment_milestone def load_budget_investment_milestone
@milestone = Budget::Investment::Milestone.find params[:id] @milestone = Budget::Investment::Milestone.find params[:id]
end end

View File

@@ -20,7 +20,7 @@ class Management::SessionsController < ActionController::Base
def destroy_session def destroy_session
session[:manager] = nil session[:manager] = nil
session[:document_type] = nil session[:document_type] = nil
session[:document_number] = nil session[:document_number] = nil
end end

View File

@@ -7,8 +7,8 @@ module Communitable
end end
def associate_community def associate_community
community = Community.create community = Community.create
self.community_id = community.id self.community_id = community.id
end end
end end

View File

@@ -34,7 +34,7 @@
<% if page.status == "published" %> <% if page.status == "published" %>
<%= link_to t("admin.site_customization.pages.index.see_page"), page.url, target: "_blank" %> <%= link_to t("admin.site_customization.pages.index.see_page"), page.url, target: "_blank" %>
<% else %> <% else %>
<%= t("admin.site_customization.pages.index.see_page") %> <%= t("admin.site_customization.pages.index.see_page") %>
<% end %> <% end %>
</td> </td>
<td class="small delete"> <td class="small delete">

View File

@@ -64,7 +64,7 @@
<% if poll.expired? %> <% if poll.expired? %>
<%= t("polls.index.participate_button_expired") %> <%= t("polls.index.participate_button_expired") %>
<% elsif poll.incoming? %> <% elsif poll.incoming? %>
<%= t("polls.index.participate_button_incoming") %> <%= t("polls.index.participate_button_incoming") %>
<% else %> <% else %>
<%= t("polls.index.participate_button") %> <%= t("polls.index.participate_button") %>
<% end %> <% end %>

View File

@@ -39,10 +39,10 @@ Setting["months_to_archive_proposals"] = 12
Setting["email_domain_for_officials"] = '' Setting["email_domain_for_officials"] = ''
# Code to be included at the top (inside <head>) of every page (useful for tracking) # Code to be included at the top (inside <head>) of every page (useful for tracking)
Setting['per_page_code_head'] = '' Setting['per_page_code_head'] = ''
# Code to be included at the top (inside <body>) of every page # Code to be included at the top (inside <body>) of every page
Setting['per_page_code_body'] = '' Setting['per_page_code_body'] = ''
# Social settings # Social settings
Setting["twitter_handle"] = nil Setting["twitter_handle"] = nil

View File

@@ -5,14 +5,14 @@ namespace :communities do
Proposal.all.each do |proposal| Proposal.all.each do |proposal|
if proposal.community.blank? if proposal.community.blank?
community = Community.create community = Community.create
proposal.update(community_id: community.id) proposal.update(community_id: community.id)
end end
end end
Budget::Investment.all.each do |investment| Budget::Investment.all.each do |investment|
if investment.community.blank? if investment.community.blank?
community = Community.create community = Community.create
investment.update(community_id: community.id) investment.update(community_id: community.id)
end end
end end

View File

@@ -15,7 +15,7 @@ feature 'Communities' do
scenario 'Should display default content' do scenario 'Should display default content' do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
user = create(:user) user = create(:user)
login_as(user) login_as(user)
visit community_path(community) visit community_path(community)
@@ -103,7 +103,7 @@ feature 'Communities' do
scenario 'Should display topic edit button when author is logged' do scenario 'Should display topic edit button when author is logged' do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
user = create(:user) user = create(:user)
topic1 = create(:topic, community: community, author: user) topic1 = create(:topic, community: community, author: user)
topic2 = create(:topic, community: community) topic2 = create(:topic, community: community)
login_as(user) login_as(user)

View File

@@ -16,7 +16,7 @@ feature 'Topics' do
scenario 'Can access to new topic page with user logged', :js do scenario 'Can access to new topic page with user logged', :js do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
user = create(:user) user = create(:user)
login_as(user) login_as(user)
visit community_path(community) visit community_path(community)
@@ -28,7 +28,7 @@ feature 'Topics' do
scenario 'Should have content on new topic page', :js do scenario 'Should have content on new topic page', :js do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
user = create(:user) user = create(:user)
login_as(user) login_as(user)
visit community_path(community) visit community_path(community)
@@ -78,7 +78,7 @@ feature 'Topics' do
scenario 'Can edit a topic' do scenario 'Can edit a topic' do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
user = create(:user) user = create(:user)
topic = create(:topic, community: community, author: user) topic = create(:topic, community: community, author: user)
login_as(user) login_as(user)
visit edit_community_topic_path(community, topic) visit edit_community_topic_path(community, topic)
@@ -95,7 +95,7 @@ feature 'Topics' do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
topic = create(:topic, community: community) topic = create(:topic, community: community)
user = create(:user) user = create(:user)
login_as(user) login_as(user)
visit edit_community_topic_path(community, topic) visit edit_community_topic_path(community, topic)
@@ -125,7 +125,7 @@ feature 'Topics' do
scenario 'Can destroy a topic' do scenario 'Can destroy a topic' do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
user = create(:user) user = create(:user)
topic = create(:topic, community: community, author: user) topic = create(:topic, community: community, author: user)
login_as(user) login_as(user)
visit community_path(community) visit community_path(community)
@@ -141,7 +141,7 @@ feature 'Topics' do
proposal = create(:proposal) proposal = create(:proposal)
community = proposal.community community = proposal.community
topic = create(:topic, community: community) topic = create(:topic, community: community)
user = create(:user) user = create(:user)
login_as(user) login_as(user)
visit community_path(community) visit community_path(community)

View File

@@ -235,7 +235,7 @@ feature 'Users' do
end end
scenario 'Not display interests when proposal has been destroyed' do scenario 'Not display interests when proposal has been destroyed' do
proposal = create(:proposal, tag_list: "Sport") proposal = create(:proposal, tag_list: "Sport")
create(:follow, :followed_proposal, followable: proposal, user: @user) create(:follow, :followed_proposal, followable: proposal, user: @user)
proposal.destroy proposal.destroy

View File

@@ -668,8 +668,8 @@ describe User do
end end
it "should discard followed objects duplicated tags" do it "should discard followed objects duplicated tags" do
proposal1 = create(:proposal, tag_list: "Sport") proposal1 = create(:proposal, tag_list: "Sport")
proposal2 = create(:proposal, tag_list: "Sport") proposal2 = create(:proposal, tag_list: "Sport")
budget_investment = create(:budget_investment, tag_list: "Sport") budget_investment = create(:budget_investment, tag_list: "Sport")
create(:follow, followable: proposal1, user: user) create(:follow, followable: proposal1, user: user)

View File

@@ -2054,7 +2054,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// getElementById is not reliable as a find shortcut // getElementById is not reliable as a find shortcut
delete Expr.find["ID"]; delete Expr.find["ID"];
Expr.filter["ID"] = function( id ) { Expr.filter["ID"] = function( id ) {
var attrId = id.replace( runescape, funescape ); var attrId = id.replace( runescape, funescape );
return function( elem ) { return function( elem ) {
var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");