We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you consider moving the CSS and JS tabs under Radiant 0.9.0's "Design" tab?
The text was updated successfully, but these errors were encountered:
Something like this ought to do it (works for me, anyway):
--- sns_extension.rb~ 2010-05-21 12:15:37.000000000 -0700 +++ sns_extension.rb 2010-05-21 13:33:30.000000000 -0700 @@ -22,8 +22,15 @@ def activate - admin.tabs.add "CSS", "/admin/css", :after => "Layouts", :visibility => [:admin, :developer] - admin.tabs.add "JS", "/admin/js", :after => "CSS", :visibility => [:admin, :developer] + if respond_to?(:tab) + tab('Design') do + add_item('CSS', '/admin/css') + add_item('JS', '/admin/js') + end + else + admin.tabs.add "CSS", "/admin/css", :after => "Layouts", :visibility => [:admin, :developer] + admin.tabs.add "JS", "/admin/js", :after => "CSS", :visibility => [:admin, :developer] + end # Include my mixins (extending PageTags and SiteController) Page.send :include, Sns::PageTags @@ -66,4 +73,4 @@ text_asset.new = text_asset.edit end end -end \ No newline at end of file +end
Sorry, something went wrong.
No branches or pull requests
Would you consider moving the CSS and JS tabs under Radiant 0.9.0's "Design" tab?
The text was updated successfully, but these errors were encountered: