Add Breadcrumbs #723

Closed
wants to merge 191 commits into
from

Conversation

Projects
None yet
Contributor

WaYdotNET commented Nov 14, 2011

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 Oct 22, 2011

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
Improved new admin with:
* Close buttons for flashes
* Modal dialogs for `error_messages_for`
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
Merge remote-tracking branch 'upstream/bootstrap'
* upstream/bootstrap:
  Improved new admin with:
  New admin based on bootstrap.

bootstrap/modal is not bundled with admin assets, so 404

DAddYE and others added some commits Nov 1, 2011

Wrong insertion into Gemfile fixed, like:
gem 'bcrypt-ruby', require => 'bcrypt' (should be :require)
Merge remote-tracking branch 'upstream/bootstrap'
* upstream/bootstrap:
  Ruby Style.
  Added missing modal as mentioned in #568.
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)
Merge branch 'master' into bootstrap
Conflicts:
	padrino-gen/lib/padrino-gen/generators/project.rb
add save_and_continue button
Add save_and_continue button….pls check language translate :D:D:D
Merge pull request #713 from WaYdotNET/master
add slim and save_and_continue button
Owner

DAddYE commented Nov 23, 2011

Have you some screenshot?

Owner

DAddYE commented Nov 23, 2011

I know the breadcum but the general admin layout with it :D

Best Regards
Davide D'Agostino

Tel. +39 0331 386985
Mobile. +39 349 7079458

Web: http://www.lipsiasoft.com
Twitter: http://www.twitter.com/daddye

On Nov 24, 2011, at 12:10 AM, Carlo Bertini wrote:

http://img819.imageshack.us/img819/4175/schermata112455890alle0.png


Reply to this email directly or view it on GitHub:
#723 (comment)

Contributor

WaYdotNET commented Nov 24, 2011

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

Contributor

dcu commented on 5c2623e Mar 23, 2012

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

dcu replied Mar 23, 2012

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

Owner

nesquena replied Mar 23, 2012

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

DAddYE and others added some commits Mar 23, 2012

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
Merge pull request #813 from rameshpy/master
activerecord-jdbcmysql-adapter tasks support
Merge pull request #814 from whitequark/master
Fix options_for_select form helper result in a corner case.
Merge pull request #825 from Frost/patch-1
Typo in documentation: `"Appliocation" -> "Application"`
remove tlsmail dependency - already in mail gem
mail >= 2.3.0 has:
  gem "tlsmail" if RUBY_VERSION <= '1.8.6'
Merge pull request #828 from trevor/patch-1
remove tlsmail dependency - already in mail gem
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.
Merge pull request #829 from simonc/adding-options-to-project-module
Adding an options attribute to ProjectModule
Merge pull request #841 from jasonm23/patch-1
Patched to fix rake use in padrino templates.
Merge pull request #836 from icco/redis-extension
Expand Padrino::Cache to support all features of underlying cache
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.
Merge pull request #856 from aereal/fix/datamapper-mysql2
Make mysql2 a alias of mysql when DataMapper is selected

@DAddYE DAddYE closed this Jun 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment