Skip to content

Commit

Permalink
Make padrino more vim friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Aug 24, 2011
1 parent 3389edf commit 81c70db
Show file tree
Hide file tree
Showing 277 changed files with 302 additions and 302 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.bundle
Gemfile.lock
.bundle
.rvmrc
.yardoc
*.rbc
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ The individual Padrino sub-gems also contain README's which outlines their funct

== Copyright

Copyright (c) 2011 Padrino. See LICENSE for details.
Copyright (c) 2011 Padrino. See LICENSE for details.
2 changes: 1 addition & 1 deletion load_paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
else
require 'rubygems'
end
require 'bundler/setup'
require 'bundler/setup'
2 changes: 1 addition & 1 deletion padrino-admin/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ For a more complete look at using the Admin panel functionality and access featu

== Copyright

Copyright (c) 2011 Padrino. See LICENSE for details.
Copyright (c) 2011 Padrino. See LICENSE for details.
10 changes: 5 additions & 5 deletions padrino-admin/lib/padrino-admin/access_control.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Padrino
module Admin
class AccessControlError < StandardError ## @private
class AccessControlError < StandardError # @private
end
##
# This module give to a padrino application an access control functionality
Expand All @@ -22,7 +22,7 @@ def registered(app)
end

class Base
def initialize ## @private
def initialize # @private
@roles, @authorizations, @project_modules = [], [], []
end

Expand Down Expand Up @@ -80,7 +80,7 @@ def allowed?(account=nil, path=nil)
class Authorization
attr_reader :allowed, :denied, :project_modules, :roles

def initialize(*roles, &block) ## @private
def initialize(*roles, &block) # @private
@roles = roles
@allowed = []
@denied = []
Expand Down Expand Up @@ -117,7 +117,7 @@ def project_module(name, path)
class ProjectModule
attr_reader :name

def initialize(name, path) ## @private
def initialize(name, path) # @private
@name, @path = name, path
end

Expand Down Expand Up @@ -146,4 +146,4 @@ def path(prefix=nil)
end # ProjectModule
end # AccessControl
end # Admin
end # Padrino
end # Padrino
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ class Account < ActiveRecord::Base
def password_required
crypted_password.blank? || password.present?
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ class Account < CouchRest::Model::Base

errors.add(:email, "is not unique")
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ class Account
def encrypt_password
self.crypted_password = ::BCrypt::Password.create(password) if password.present?
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ class Account
def password_required
crypted_password.blank? || self.password.present?
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ class Account
def password_required
crypted_password.blank? || password.present?
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ else
account.errors.full_messages.each { |m| shell.say " - #{m}" }
end

shell.say ""
shell.say ""
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ class Account < ::Sequel::Model
def password_required
crypted_password.blank? || password.present?
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
get :index, :map => "/" do
render "base/index"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
set_current_account(nil)
redirect url(:sessions, :new)
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ ul.list li .item .avatar{float:left;margin:0 5px 5px 0;width:30px;height:30px;}
#box .block h2{padding:10px 15px;margin:0;}
#box .block .content{padding:10px 20px;}
/* custom */
.code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
.code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
<li><%%= link_to "Link 1" %></li>
<li><%%= link_to "Link 1" %></li>
</ul>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
</div>
</div>
</div>
<%% content_for :sidebar, partial("base/sidebar") %>
<%% content_for :sidebar, partial("base/sidebar") %>
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
</div>
</div>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
</div>
</div>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
<div class="group navform wat-cf">
<%%= f.submit pat(:save), :class => :button %>
<%%= f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button %>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
</div>
</div>
</div>
<%% content_for :sidebar, partial("base/sidebar") %>
<%% content_for :sidebar, partial("base/sidebar") %>
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
</div>
</div>
</div>
<%% content_for :sidebar, partial("base/sidebar") %>
<%% content_for :sidebar, partial("base/sidebar") %>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
</div>
</div>
</div>
<%% content_for :sidebar, partial("base/sidebar") %>
<%% content_for :sidebar, partial("base/sidebar") %>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
%h3 Links
%ul.navigation
%li=link_to "Link 1"
%li=link_to "Link 2"
%li=link_to "Link 2"
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
%span.hightlight
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-content_for :sidebar, partial("base/sidebar")
-content_for :sidebar, partial("base/sidebar")
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
=Time.now.year
Your Site - Powered by
=link_to "Padrino v.#{Padrino.version}", "http://padrino.github.com", :target => :_blank
#sidebar=yield_content :sidebar
#sidebar=yield_content :sidebar
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
%label.label.right Bypass login?
.right=check_box_tag :bypass
.group.navform.wat-cf
.right=submit_tag('Sign In', :class => :button)
.right=submit_tag('Sign In', :class => :button)
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

.group.navform.wat-cf
=f.submit pat(:save), :class => :button
=f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button
=f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
-form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => :form do |f|
=partial "<%= @orm.name_plural %>/form", :locals => { :f => f }

-content_for :sidebar, partial("base/sidebar")
-content_for :sidebar, partial("base/sidebar")
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
.actions-bar.wat-cf
.actions="&nbsp;"

-content_for :sidebar, partial("base/sidebar")
-content_for :sidebar, partial("base/sidebar")
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
-form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => :form do |f|
=partial "<%= @orm.name_plural %>/form", :locals => { :f => f }

-content_for :sidebar, partial("base/sidebar")
-content_for :sidebar, partial("base/sidebar")
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Admin.controllers :<%= @orm.name_plural %> do
end
redirect url(:<%= @orm.name_plural %>, :index)
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ def login_from_session
end # AuthenticationHelpers
end # Helpers
end # Admin
end # Padrino
end # Padrino
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/helpers/view_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def model_translate(model)
end # ViewHelpers
end # Helpers
end # Admin
end # Padrino
end # Padrino
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ da:
all: Alle
profile: Profil
settings: Indstillinger
logout: Log ud
logout: Log ud
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ de:
all: Alle
profile: Benutzerkonto
settings: Einstellungen
logout: Abmelden
logout: Abmelden
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ en:
all: All
profile: Profile
settings: Settings
logout: Logout
logout: Logout
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ es:
all: Todos
profile: Perfil
settings: Configuración
logout: Cerrar sesión
logout: Cerrar sesión
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ fr:
all: Tous
profile: Profile
settings: Paramètres
logout: Déconnexion
logout: Déconnexion
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ hu:
all: mind
profile: adatlap
settings: beállítások
logout: kilépés
logout: kilépés
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ it:
all: Tutti
profile: Profilo
settings: Impostazioni
logout: Esci
logout: Esci
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ nl:
all: Alle
profile: Profiel
settings: Voorkeuren
logout: Afmelden
logout: Afmelden
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
all: Alle
profile: Profil
settings: Instillinger
logout: Logg ut
logout: Logg ut
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pl:
all: Wszystkie
profile: Profil
settings: Ustawienia
logout: Wyloguj
logout: Wyloguj
2 changes: 1 addition & 1 deletion padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pt_br:
all: Todos
profile: Perfil
settings: Preferências
logout: Sair
logout: Sair
Loading

0 comments on commit 81c70db

Please sign in to comment.