From 12f152b1f120437a51d6122ff8bdec049788592b Mon Sep 17 00:00:00 2001 From: peam Date: Sat, 14 Oct 2017 01:41:44 +0700 Subject: [PATCH 1/4] reformat readme --- README | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README b/README index 237056c..3fce1fe 100644 --- a/README +++ b/README @@ -1,18 +1,17 @@ -ThickBoxObject v.1.0 -==================== +#ThickBoxObject v.1.0 +====== + This will add a helper for thickboxes in Rails. (It is a fork of Lipsiasoft/lightbox) It is a work in progress, though. So please be patience. -<%= javascript_include_tag :defaults %> +`<%= javascript_include_tag :defaults %>` You must add also the stylesheet so add this on your page head: - -<%= stylesheet_link_tag 'lightbox' %> +`<%= stylesheet_link_tag 'lightbox' %>` The is very simple for add a LightBox in your page add this: - -<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %> +`<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>` or -<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %> +`<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>` You can add, title, controller, action what do u whant becaue it's based on image_tag and link_to. From 38c218b6d49ce02c076ef6b366b6c6edcfc9853b Mon Sep 17 00:00:00 2001 From: peam Date: Sat, 14 Oct 2017 01:42:59 +0700 Subject: [PATCH 2/4] rename readme to readme.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3fce1fe --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +#ThickBoxObject v.1.0 +====== + +This will add a helper for thickboxes in Rails. (It is a fork of Lipsiasoft/lightbox) It is a work in progress, though. So please be patience. + +`<%= javascript_include_tag :defaults %>` + +You must add also the stylesheet so add this on your page head: +`<%= stylesheet_link_tag 'lightbox' %>` + +The is very simple for add a LightBox in your page add this: +`<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>` +or +`<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>` + +You can add, title, controller, action what do u whant becaue it's based on image_tag and link_to. + +Vist my website: http://blog.lipsiasoft.com From 2a93b6fe034c1945f7e0fdb510790be05f2cb49c Mon Sep 17 00:00:00 2001 From: peam Date: Sat, 14 Oct 2017 01:44:37 +0700 Subject: [PATCH 3/4] reformat again --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fce1fe..972135c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#ThickBoxObject v.1.0 +# ThickBoxObject v.1.0 ====== This will add a helper for thickboxes in Rails. (It is a fork of Lipsiasoft/lightbox) It is a work in progress, though. So please be patience. @@ -10,7 +10,7 @@ You must add also the stylesheet so add this on your page head: The is very simple for add a LightBox in your page add this: `<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>` -or +OR `<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>` You can add, title, controller, action what do u whant becaue it's based on image_tag and link_to. From 2b56bdf7d3274d46f27e4eb0e8933a88bd12325c Mon Sep 17 00:00:00 2001 From: peam Date: Sat, 14 Oct 2017 01:45:57 +0700 Subject: [PATCH 4/4] reformat again --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 972135c..50d396d 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,19 @@ # ThickBoxObject v.1.0 -====== This will add a helper for thickboxes in Rails. (It is a fork of Lipsiasoft/lightbox) It is a work in progress, though. So please be patience. `<%= javascript_include_tag :defaults %>` You must add also the stylesheet so add this on your page head: + `<%= stylesheet_link_tag 'lightbox' %>` The is very simple for add a LightBox in your page add this: + `<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>` + OR + `<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>` You can add, title, controller, action what do u whant becaue it's based on image_tag and link_to.