Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not include application.js if it doesn't exists | Prem Sichanugrist | 2012-08-06 | 1 | -0/+9 |
| | | | | | | Rails were including 'application.js' to the pack when using `javascript_include_tag :all` even there's no application.js in the public directory. | ||||
* | Respect absolute paths in compute_source_path. | Steve Klabnik | 2012-06-16 | 1 | -3/+11 |
| | | | | | | | | | | | | | | | | When using compute_source_path to determine the full path of an asset, if our source begins with '/', we don't want to include the directory. Examples are illustrative: > compute_source_path("foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/stylesheets/foo.css" > compute_source_path("/foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/foo.css" Before this patch, the second example would return the same as the first. Fixes #5680. | ||||
* | Render img tag with empty src if empty string is passed to image_tag. | Kirill Lashuk | 2012-05-18 | 1 | -0/+1 |
| | |||||
* | Remove `:mouseover` option from `image_tag` helper. | Rafael Mendonça França | 2012-05-13 | 1 | -8/+0 |
| | |||||
* | Merge pull request #3237 from sakuro/data-url-scheme | Rafael Mendonça França | 2012-05-13 | 1 | -1/+2 |
| | | | | | | | Support data: url scheme Conflicts: actionpack/lib/action_view/asset_paths.rb | ||||
* | Remove unnecessary in HTML 5 type attribute with default value | Andrey A.I. Sitnik | 2012-04-05 | 1 | -93/+93 |
| | |||||
* | Compute asset paths from the request if ENV["RAILS_RELATIVE_URL_ROOT"] is ↵ | Dwayne Litzenberger | 2012-03-05 | 1 | -0/+102 |
| | | | | | | | | | not set. This should fix the following issue: "Rails is not a Rack Application (SCRIPT_NAME vs. relative_url_root ?)" https://github.com/rails/rails/issues/910 | ||||
* | Always use content_tag for audio/video tag | Rafael Mendonça França | 2012-02-07 | 1 | -15/+15 |
| | | | | Closes #4919 | ||||
* | Add *_url helpers to get the full assets URL | Prem Sichanugrist | 2012-02-04 | 1 | -2/+129 |
| | | | | | | | Adds `image_url`, `javascript_url`, `stylesheet_url`, `audio_url`, `video_url`, and `font_url` to assets tag helper. These URL helpers will return the full path to your assets. This is useful when you are going to reference this asset from external host. | ||||
* | Remove slash from favicon_link_tag method attribute | Lucas Caton | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | reuse common video/audio tags code and do not modify options | Sergey Nartimov | 2012-01-26 | 1 | -0/+8 |
| | |||||
* | do not modify options in image_tag | Sergey Nartimov | 2012-01-26 | 1 | -0/+6 |
| | |||||
* | allow to pass multiple sources to audio/video tags without using array | Sergey Nartimov | 2012-01-25 | 1 | -0/+2 |
| | |||||
* | Make audio_tag able to receive multiple sources | Janko Marohnić | 2012-01-25 | 1 | -0/+2 |
| | |||||
* | Make path_to_video in video_tag apply to each source | Janko Marohnić | 2012-01-25 | 1 | -2/+2 |
| | |||||
* | escape options for the stylesheet_link_tag method | Alexey Vakhov | 2011-09-25 | 1 | -0/+4 |
| | |||||
* | Use shorter class-level File methods instead of going through File.stat. | thedarkone | 2011-07-25 | 1 | -2/+2 |
| | |||||
* | Changed a few instances of of words in the API docs written in British ↵ | Oemuer Oezkir | 2011-07-24 | 1 | -1/+1 |
| | | | | | | English to American English(according to Weber) | ||||
* | use Zlib.crc2 rather that bytes.sum, as per Aaron's suggestion | Xavier Noria | 2011-07-08 | 1 | -1/+2 |
| | | | | | | That integer is rather irrelevant, the only thing that matters is that it is consistent and with no apparent bias. Zlib.crc32 is 8-10 times faster than bytes.sum, so use that. | ||||
* | removing brittle assertion | Aaron Patterson | 2011-07-07 | 1 | -1/+0 |
| | |||||
* | Using the sum of bytes instead the hash of the path when replacing the ↵ | Albert Callarisa Roca | 2011-07-08 | 1 | -2/+3 |
| | | | | wildcard of the assets path because in ruby 1.9 is not consistent | ||||
* | Merge pull request #1870 from chriseppstein/asset_urls_master | Santiago Pastorino | 2011-06-27 | 1 | -10/+20 |
|\ | | | | | Asset urls master | ||||
| * | Added a configuration setting: | Chris Eppstein | 2011-06-27 | 1 | -6/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config.action_controller.default_asset_host_protocol It's best to leave this unset. When unset the :request protocol is used whenever it can be and :relative is used in the other situations. When set to :request then assets hosts will be disabled when there is no request in scope and will use the request protocol whenever a request is in scope. If set to :relative, then a relative protocol is always used except for stylesheet link tags which must use the :request protocol to avoid double downloads in IE6&7. Conflicts: actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb | ||||
| * | Stylesheet link tags should use the request protocol to avoid duplicate ↵ | Chris Eppstein | 2011-06-27 | 1 | -8/+8 |
| | | | | | | | | | | | | | | | | | | download of stylesheets in IE7 and IE8. Conflicts: actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb actionpack/lib/sprockets/helpers/rails_helper.rb | ||||
| * | Add asset_url helper and refactor the asset paths so that asset hosts can be ↵ | Chris Eppstein | 2011-06-27 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | used during asset precompilation. Conflicts: actionpack/lib/action_view/asset_paths.rb actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb | ||||
* | | the generated ALT attribute for images no longer contains the digest, if any | Xavier Noria | 2011-06-27 | 1 | -0/+8 |
|/ | |||||
* | asset helpers should understand scheme-relative URLs | Chad Krsek | 2011-04-26 | 1 | -0/+15 |
| | |||||
* | Revert "asset helpers should understand scheme-relative URLs" | Chad Krsek | 2011-04-25 | 1 | -15/+0 |
| | | | | This reverts commit 057412ce38ead06307a887dca333837a99f84f22. | ||||
* | asset helpers should understand scheme-relative URLs | Chad Krsek | 2011-04-25 | 1 | -0/+15 |
| | |||||
* | Make static faster as we don't have to serve multiple paths anymore. | José Valim | 2011-04-15 | 1 | -23/+0 |
| | |||||
* | javascript_include_tag shouldn't raise if you register an expansion key with ↵ | Santiago Pastorino | 2011-02-28 | 1 | -2/+10 |
| | | | | nil value | ||||
* | Add tests for register expansion methods with key = [] | Santiago Pastorino | 2011-02-28 | 1 | -2/+12 |
| | |||||
* | Applied changes to stylesheet_link_tag from javascript_include_tag which ↵ | Josh Kalderimis | 2011-02-13 | 1 | -0/+23 |
| | | | | corrects issues with ordering and duplicates. | ||||
* | This corrects two issues with javascript_include_tag, the order at which ↵ | Josh Kalderimis | 2011-02-13 | 1 | -1/+24 |
| | | | | | | | | they are expanded, and removing duplicates. When individual js assets are specified, they will override the order of the same asset specified in an expansion. [#5938 state:resolved] | ||||
* | Allow registering javascript/stylesheet_expansions to existing symbols | Santiago Pastorino | 2010-12-22 | 1 | -0/+19 |
| | |||||
* | Do not use the same hash instance for expansions [#6114 state:resolved] | Piotr Sarnacki | 2010-12-22 | 1 | -0/+8 |
| | | | | | Using the same hash instance makes using the same expansions for both javascripts and stylesheets. | ||||
* | Fix AssetIncludeTag ensuring that files are in the wrong directory [#6015 ↵ | Henning Koch | 2010-11-19 | 1 | -0/+44 |
| | | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | incorporated most of the feedback from José | Josh Kalderimis | 2010-11-16 | 1 | -2/+2 |
| | |||||
* | removed an assert from a test as it was testing a private method | Josh Kalderimis | 2010-11-16 | 1 | -1/+0 |
| | |||||
* | provide better error message if path is uri [#5914 state:resolved] | Neeraj Singh | 2010-11-11 | 1 | -0/+11 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use parentheses when using assert_match followed by a regexp to avoid warnings. | Emilio Tagua | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | application.js should be the last file on javascript_include_tag(:all) | Santiago Pastorino | 2010-09-19 | 1 | -8/+8 |
| | |||||
* | Added ability to set asset_path for engines | Piotr Sarnacki | 2010-09-03 | 1 | -0/+23 |
| | |||||
* | Tidy up asset tag a bit and make railties tests green again. | José Valim | 2010-06-23 | 1 | -2/+2 |
| | |||||
* | refactored the javascript asset tag helpers and moved the default scripts ↵ | Josh Kalderimis | 2010-06-23 | 1 | -15/+7 |
| | | | | | | setup within the railtie Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Updating image_tag to support cid:content_id "URLs" | Mikel Lindsaar | 2010-06-07 | 1 | -0/+9 |
| | |||||
* | Accept :alt => nil on image_tag [#4558 state:resolved] | Marc-Andre Lafortune | 2010-05-15 | 1 | -1/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | adds #favicon_link_tag back, rdoc explains why it is useful, and how to get ↵ | Xavier Noria | 2010-04-08 | 1 | -0/+12 |
| | | | | a link for Mobile Safari with it | ||||
* | Revert "adds #favicon_link_tag and #apple_touch_icon_link_tag" -- these tags ↵ | David Heinemeier Hansson | 2010-04-08 | 1 | -20/+0 |
| | | | | | | are too specific. This reverts commit 6891f46d10957f21f200fc4dc2b6076ff411b1da, ec8610cfdc32d0fe816fb22405e00ef1b6c90d73, and d18ff1b7efd96e7c08bc1a15137735be45f87e07. | ||||
* | adds a default source to #apple_touch_icon_link_tag | Xavier Noria | 2010-04-07 | 1 | -0/+1 |
| |