Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add Breadcrumbs #723

Closed
wants to merge 191 commits into from
@WaYdotNET

in my case i've add into controller:

before do
     @breadcrumbs ||= Padrino::Helpers::Breadcrumb.new
     @breadcrumbs.add :foo,"foo","Foo link"
end

into view:

  == breadcrumb @breadcrumbs, true

the output is

<ul class="breadcrumb">
  <li><a href="/">Home Page</a><span class="divider">></span></li>
  <li class="active"><a href="foo">Foo link</a></li>
</ul>
WaYdotNET and others added some commits
@WaYdotNET WaYdotNET add Bootstrap from Twitter 3c2f629
@WaYdotNET WaYdotNET remove xlarge and add span5 499f181
@WaYdotNET WaYdotNET form builder check_box: create hidden value with uncheck_value only if
uncheck_value exist
07e5aa1
@WaYdotNET WaYdotNET remove puts sorry :P a05748d
@WaYdotNET WaYdotNET fix a8adddf
@DAddYE DAddYE New admin based on bootstrap.
Thanks to @waydotnet.

As requested in issue #568

We added:

* Twitter Bootstrap Support
* Table search
* Table sorting
* Table pagination

Still pending:

* Add Close button flash notices.

Fix #708
2b437f3
@DAddYE DAddYE Improved new admin with:
* Close buttons for flashes
* Modal dialogs for `error_messages_for`
f98ee9d
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Revert "[padrino-core] to_s route paths before joining"
  Added Mac DS_Store file
  README to be changed once project is generated
  [padrino-core] to_s route paths before joining
  add regexp route generation
dc6a3be
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/bootstrap'
* upstream/bootstrap:
  Improved new admin with:
  New admin based on bootstrap.
967cf76
DAddYE and others added some commits
@DAddYE DAddYE Added missing modal as mentioned in #568. f0a2d0c
@DAddYE DAddYE Ruby Style. 4b2e42c
@sumskyi sumskyi Wrong insertion into Gemfile fixed, like:
gem 'bcrypt-ruby', require => 'bcrypt' (should be :require)
24e1bf9
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/bootstrap'
* upstream/bootstrap:
  Ruby Style.
  Added missing modal as mentioned in #568.
0ed4ff7
@WaYdotNET WaYdotNET Revert 0ed4ff7^..HEAD a6c4f2f
@sumskyi sumskyi broken markup fix (FF) 5de461b
@achiu achiu Merge pull request #712 from sumskyi/bootstrap
insert_into_gemfile() fix
4712712
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/bootstrap'
* upstream/bootstrap:
  broken markup fix (FF)
  Wrong insertion into Gemfile fixed, like: gem 'bcrypt-ruby', require => 'bcrypt' (should be :require)
8d66652
@WaYdotNET WaYdotNET add slim support change flash style into "index" page c68c6df
@WaYdotNET WaYdotNET after create model, render index page and not edit page eebb5ab
@WaYdotNET WaYdotNET fix redirect after add new model 6cf5cc3
@WaYdotNET WaYdotNET modify redirect after update 589548f
@DAddYE DAddYE Merge branch 'master' of github.com:padrino/padrino-framework into bo…
…otstrap
fb715cf
@DAddYE DAddYE Merge branch 'bootstrap' of github.com:padrino/padrino-framework into…
… bootstrap
5b227cd
@DAddYE DAddYE Merge branch 'master' into bootstrap
Conflicts:
	padrino-gen/lib/padrino-gen/generators/project.rb
19ddeab
@WaYdotNET WaYdotNET add save_and_continue button
Add save_and_continue button….pls check language translate :D:D:D
7208db8
@WaYdotNET WaYdotNET fix save_and_continue 6882dec
@WaYdotNET WaYdotNET refactor code
tanks @daddye
01431fd
@DAddYE DAddYE Merge pull request #713 from WaYdotNET/master
add slim and save_and_continue button
8c90f03
@DAddYE DAddYE Merge branch 'master' of github.com:padrino/padrino-framework into bo…
…otstrap
4f73e31
@DAddYE DAddYE Merge branch 'bootstrap' of github.com:padrino/padrino-framework into…
… bootstrap
3664990
@DAddYE DAddYE Removed and unused asset. 56c9be0
@DAddYE DAddYE Some new enhancement to the new padrino-admin. 629320c
@DAddYE DAddYE Merge branch 'master' of github.com:padrino/padrino-framework into bo…
…otstrap
e769e66
@DAddYE
Owner

Have you some screenshot?

@DAddYE
Owner
@WaYdotNET

hahahahahahahahh :D:D:D:D:D
sorry daddye...today reup new version into heroku :P hahahahahahah

@WaYdotNET

EDIT: change host !! (DH down )

http://glowing-leaf-7114.heroku.com/admin/
user: test@padrinorb.com pass: test

upgrade to TwB 2.0 wip ..
I hope it is useful

please check if work well :D:D:D

WaYdotNET and others added some commits
@WaYdotNET WaYdotNET upgrade to Twitter Bootstrap v 2.0 3632728
@WaYdotNET WaYdotNET upgrade slim template (work with twitter bootsrap 2.0) 28933f4
@WaYdotNET WaYdotNET fix padrino-modal f4c575c
@WaYdotNET WaYdotNET sync to master 56381e2
@WaYdotNET WaYdotNET refix padrino-modal e0b4642
@WaYdotNET WaYdotNET Merge branch 'refs/heads/original'
* refs/heads/original:
  Bundle update.
  Redis Server is already here.
  Forgot sudo. (Travis)
  Improve Travis support.
  Fix #768
  Bump to prerelease 0.10.6.c
  Fixes type, thanks @ujifgc
  Add stylesheet initializers change to changelog
  Assets from an absolute paths no longer have asset stamps appended
  Updated stylesheets initializers to respect spaces.
fbb10e7
@WaYdotNET WaYdotNET padrino-admin now work also with haml :D (yheaa!!!) 208696a
@WaYdotNET WaYdotNET update readme 0352d62
@WaYdotNET WaYdotNET add image and link to demo e45efc5
@WaYdotNET WaYdotNET Merge remote-tracking branch 'refs/remotes/padrino/master'
* refs/remotes/padrino/master:
  Travis rbx-19mode
71c6abe
@DAddYE DAddYE Remove rbx from travis. No way to compile bcrypt-ruby. d980b11
jfcixmedia Fix model_attribute_translate example afcd5b4
@nesquena nesquena Merge pull request #781 from jfcixmedia/master
Documentation for i18n translation helpers
cdbb7cb
@jfarmer jfarmer [Fix #784] ActiveRecord rake file should not prompt the user to log i…
…n as root if database authentication fails
5c40be1
@jfarmer jfarmer Rescue from StandardError vs. Exception, and print out error messages…
… to STDERR in a consistent format
48050b9
@jfarmer jfarmer Include timestampe by default in ActiveRecord 88bdf59
@jfarmer jfarmer This is ugly, but use ActiveRecord::Migration#change if we can 9a3a32a
@agios agios Allow nested hash hierarchies for "data" option
e.g. :data => {:dojo => {:type => xxx, :props => yyy}}
25eb60d
@joelcuevas joelcuevas Fix #780 - Admin generator is not completely aware of the user define…
…d model name
61e54e8
@DAddYE DAddYE Merge pull request #788 from joelcuevas/master
Fixes #780 - Admin generator is not completely aware of the user defined model name.
670f8ea
@joelcuevas joelcuevas Still trying to fix #780. Some templates wasn't aware of a custom mod…
…el name.
417467b
@papile papile Update padrino-cache/lib/padrino-cache/helpers/fragment.rb 90e0504
@DAddYE DAddYE Merge pull request #789 from papile/master
Fragment caching currently disregards block content when caching is turned off
f733fce
@DAddYE DAddYE Merge pull request #785 from jfarmer/master
[Fix #784] ActiveRecord rake file should not prompt the user to log in as root if database authentication fails
f208a8e
@DAddYE DAddYE Drop support for old ActiveRecord Migration Syntax. d1021b4
Carlo Bertini Merge remote-tracking branch 'upstream/master' d53ef16
@WaYdotNET WaYdotNET update to twitter 2.0.2-wip e86b336
David Genord II Correctly report the loaded console environment when set via environm…
…ent variables
c28ef48
@DAddYE DAddYE Merge pull request #791 from xspond/correct-console-env
Correctly report the loaded console environment when set via environment variables
43c52fe
@DAddYE DAddYE Fast development mode 4a09c0e
@DAddYE DAddYE Add correclty ActiveRecord Middleware. Fix #792 84f050f
@DAddYE DAddYE Fix travis. b6d9ee9
@nesquena

Shouldn't this only happen if 'activerecord' is being used for admin??

@nesquena

Shouldn't this use the activerecord? method you defined below?

Owner

It's for future use, the orm class will be created from padrino_page in this line is only a symbol.

Owner

Ah ok

@Cirex

@DAddYE

Why was this reverted?

The current HTML 5 specification allows both forms of tags and is backwards compatible with existing XHTML. The only difference here is that those using old XHTML doctypes will have "invalid" HTML. Despite of this every web browser should accurately the page.

Additionally everything outside of ERB will automatically close your tags based on your provided doctype.

WaYdotNET and others added some commits
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 683e46c
@yuya-takeyama yuya-takeyama Fix model directory specification for mongoid tasks. 8d2b6b9
@DAddYE DAddYE Merge pull request #795 from yuya-takeyama/fix-rake-mi-create-indexes
Mongoid tasks not work
711bb69
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 4fa32e8
@dcu dcu Fix some remaining issues when generating an admin app using a custom…
… model

Signed-off-by: David A. Cuadrado <krawek@gmail.com>
0dbf8b5
@DAddYE DAddYE Merge pull request #794 from dcu/master
Fix some remaining issues when generating an admin app using a custom model
be5759e
@WaYdotNET WaYdotNET merge with upstream/master ae66b5f
@WaYdotNET WaYdotNET fix missing clean code 073a02d
@WaYdotNET WaYdotNET fix d93c018
Benjamin Bloch Properly detect Windows based hosts for ansi coloring 9eb705a
@nesquena nesquena Merge pull request #797 from Cirex/master
Detecting Windows based hosts for ansi coloring
a35faf0
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 133087d
@WaYdotNET WaYdotNET add Icon's Bootstrap helper c8da645
@WaYdotNET WaYdotNET fix Icon's Bootstrap helper f6eca80
@WaYdotNET WaYdotNET add icon into navbar form 9205c5c
@WaYdotNET WaYdotNET remove default icon 51d507f
@agios agios Added test for nested data attributes 21312fe
@agios agios Merge remote-tracking branch 'upstream/master'
Conflicts:
	padrino-helpers/test/test_tag_helpers.rb
d2de420
@agios agios Added necessary requires 106880a
@agios agios Continue running tests if one fails df93b9b
@agios agios Added nested data attributes test b427f2f
@fnordfish fnordfish Fixes a random error, where 'Less::Parser' was scoped as 'Less::Parse…
…r::Less::Parser'.
5be90e2
@skade skade Merge pull request #800 from fnordfish/patch-1
Fixes a random error, where 'Less::Parser' was scoped wrongly...
ef48063
@fnordfish fnordfish write cached css files into the default destination for public styles…
…heets
c81b095
@nesquena nesquena Merge pull request #801 from fnordfish/master
write cached css files into the default destination for public stylesheets
1a6c9e5
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 8fd056e
@WaYdotNET WaYdotNET Update README.rdoc 0f59583
@WaYdotNET WaYdotNET Update README.rdoc 4f237ca
@DAddYE DAddYE Lumberjack Compat. Fixes #799 16fa20f
@DAddYE DAddYE Fix some reloader issues. Mentioned here #786 7844404
@DAddYE DAddYE Merge pull request #787 from agios/master
Allow nested hashes for "data" property in tag helper
8173344
@DAddYE DAddYE Cleanup nested attributes. a7af2e0
@DAddYE DAddYE Make 'data' attributes also available in all tags. d0845dc
@DAddYE DAddYE Remove 'data-method' from `form_tag` since the hidden_field :_method
already override it.
9c8deed
@DAddYE DAddYE Fix previous commit. 30e789e
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 698ef90
@WaYdotNET WaYdotNET Merge branch 'master' of github.com:WaYdotNET/padrino-framework 9c4df04
@fnordfish fnordfish Fixes a SyntaxError. 2fdca28
@WaYdotNET WaYdotNET Merge pull request #2 from fnordfish/patch-2
SyntaxError in admin's application layout
9f6ed22
@fnordfish fnordfish removes css class "center-block", which is a less mixin, not a real c…
…ss class and thus has no effect.

corrects nesting of footer paragraphs which lead to invalid mark generation
9e03819
@WaYdotNET WaYdotNET Merge pull request #3 from fnordfish/patch-3
admin's haml footer generates invalid markup
44dce81
@WaYdotNET WaYdotNET Update to TwitterBootstrap 2.0.2 a07f9f1
@WaYdotNET WaYdotNET real update to TwitterBootstrap 2.0.2, sorry :P 65e1d51
@nesquena nesquena Update changelog 3b18cae
@nesquena nesquena Bumped version to 0.10.6 d5f0e2a
@nesquena nesquena Update changelog e650330
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' da489f0
@WaYdotNET WaYdotNET fix lessjs library into session/new 6591c76
@DAddYE DAddYE Propose a new fix for #807 and #808 5c2623e
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 601f225
@dcu

I don't think this will work, it's just calling .to_s

what I think we should do is create an alias before requiring external dependiencies, something like

class Class
    alias :orig_to_s :name
end

and use that instead. and btw is "name" method is more likely to be monkey patched by external libs.

EDIT: it's very easy to prove my point

ruby-1.9.3-p0 :003 > class A; def self.to_s; 'failed'; end; end
 => nil 
ruby-1.9.3-p0 :004 > A.to_s
 => "failed" 
ruby-1.9.3-p0 :005 > A.name
 => "A" 
ruby-1.9.3-p0 :006 > "#{A}"
 => "failed" 

I just made a push with what I said. please review it

Owner

For reference, https://github.com/padrino/padrino-framework/pull/807/files is his pull request. Thanks @dcu

DAddYE and others added some commits
@DAddYE DAddYE Added a failing test for our routing system. 41ac060
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' e1619a8
@rameshpy rameshpy Added support for activerecord-jdbcmysql-adapter for ActiveRecord tasks
ar:create, ar:drop and few others did not work with activerecord-jdbcmysql-adapter when using jruby
c22420c
@nesquena nesquena Merge pull request #813 from rameshpy/master
activerecord-jdbcmysql-adapter tasks support
8b02ada
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' cf3aab5
@whitequark whitequark Fix options_for_select result in a corner case. caf5492
@DAddYE DAddYE Merge pull request #814 from whitequark/master
Fix options_for_select form helper result in a corner case.
40e0ecc
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' f039adc
@Frost Frost Typo in documentation: `"Appliocation" -> "Application"` 0b52251
@skade skade Merge pull request #825 from Frost/patch-1
Typo in documentation: `"Appliocation" -> "Application"`
3e0af28
@nesquena nesquena Use _orig_klass_name in reloader to fix pry / jruby 865d67c
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 8bf5122
@trevor trevor remove tlsmail dependency - already in mail gem
mail >= 2.3.0 has:
  gem "tlsmail" if RUBY_VERSION <= '1.8.6'
165743e
@joshbuddy joshbuddy Merge pull request #828 from trevor/patch-1
remove tlsmail dependency - already in mail gem
c079e1a
Simon COURTOIS Adding an options attribute to ProjectModule 35844fc
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 0c5cb06
@icco icco Adds a catch all method to the redis cache. a7a21c3
@DAddYE DAddYE Merge pull request #832 from joelcuevas/master
Fix #780. Found that some templates wasn't aware of the user-defined model name in admin generator.
50b3f9b
@DAddYE DAddYE Clean and test code. Fix #780 issue. 3f7081d
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' cfd9e46
@nesquena nesquena [handler] Fixes slim handler capturing 8b79d57
@nesquena nesquena Adds back test for slim for link_to 8a670de
@DAddYE DAddYE Merge pull request #829 from simonc/adding-options-to-project-module
Adding an options attribute to ProjectModule
fd716cb
@nesquena nesquena Update changelog with new additions 08a77a5
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' f5f7556
@WaYdotNET WaYdotNET fix identation 02e2430
@WaYdotNET WaYdotNET fix haml ef52c11
@WaYdotNET WaYdotNET update to Twitter Bootstrap 2.0.3 b98a5d2
@WaYdotNET WaYdotNET Update readme 4d32797
@WaYdotNET WaYdotNET remove Improve slim template block capturing fix #777 82a8253
@WaYdotNET WaYdotNET fix icons path b9a1e5d
@icco icco Passes function calls along as suggested in #836 168f1c2
@icco icco Merge branch 'master' of git://github.com/padrino/padrino-framework i…
…nto redis-extension
910ab1b
@icco icco Adds a test for the new method_missing function in redis. 15cd12d
@icco icco Actually passes a method name into respond_to? 459c73c
@icco icco Changes the method declaration to be a little more specific. 54409cc
@jasonm23 jasonm23 Patched to fix rake use in padrino templates. aac2135
@DAddYE DAddYE Merge pull request #841 from jasonm23/patch-1
Patched to fix rake use in padrino templates.
9e34b16
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 4039f3b
@DAddYE DAddYE Merge pull request #836 from icco/redis-extension
Expand Padrino::Cache to support all features of underlying cache
7832933
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 968b485
@WaYdotNET WaYdotNET fix login demo :D 01b0a94
@WaYdotNET WaYdotNET Fixes admin generator #846 68e901d
@WaYdotNET WaYdotNET Merge branch 'master' of github.com:WaYdotNET/padrino-framework 2b8467a
@WaYdotNET WaYdotNET clean code for twbootstrap fa4bec5
aereal Make mysql2 a alias of mysql when DataMapper is selected
DataMapper has `do_mysql' that is the version of MySQL driver.
So `mysql2' should be considered as a alias of `mysql' adapter.
61753fa
@nesquena nesquena Merge pull request #856 from aereal/fix/datamapper-mysql2
Make mysql2 a alias of mysql when DataMapper is selected
41d67ef
@WaYdotNET WaYdotNET Merge remote-tracking branch 'upstream/master' 77d9b3b
@DAddYE DAddYE closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.