fooltip 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/fooltip/application.js +1 -1
- data/app/assets/stylesheets/fooltip/application.css.sass +2 -0
- data/app/assets/stylesheets/fooltip/containers.css.sass +2 -2
- data/app/controllers/fooltip/application_controller.rb +1 -0
- data/app/views/fooltip/containers/_container.html.haml +15 -0
- data/app/views/fooltip/containers/show.html.haml +1 -15
- data/lib/fooltip/version.rb +1 -1
- metadata +4 -4
- data/app/assets/stylesheets/fooltip/application.css +0 -14
- data/app/views/layouts/fooltip/application.html.haml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd13f30e6362e8a821126441289d6d44da20d92a
|
4
|
+
data.tar.gz: 1c7b45326c0bcf73d882b0de6eaf674630b91a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d5267667d6231ac7da360ada35773d72e5d8fe64c3eaa49f1cee8082f93e8e20f19f58e805d58810fd5f8f2bdb4b203b7a57451f54c2f2d5f5b7da03e02505
|
7
|
+
data.tar.gz: 3213a2fcb44f073c2728d1766d336ae8a850ed27cb9c1d17473ac6ab47f74e5d516f569f7455c045f8d60fe107330fabb96bfa12d07e5241817fe4b6b1b5cda3
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.page-header
|
2
|
+
%h1= container.title
|
3
|
+
|
4
|
+
.row-fluid
|
5
|
+
.fooltip-container
|
6
|
+
- container.links.each do |link|
|
7
|
+
%span{ id: "fooltip-link-#{link.id}", class: "fooltip-link-container" }
|
8
|
+
= link_to '', 'javascript:void(0);', class: "fooltip-link", data: { content: "", placement: link.placement_string, toggle: "popover", :"original-title" => link.popup.title || '', html: true, trigger: link.trigger_string }, style: "top: #{link.y}px; left: #{link.x}px;"
|
9
|
+
.content{ style: "display: none;" }
|
10
|
+
.fooltip-popup{ style: "min-width: #{link.popup.min_width}px; min-height: #{link.popup.min_height}px; max-width: #{link.popup.max_width}px; max-height: #{link.popup.max_height}px;" }
|
11
|
+
= raw link.popup.content
|
12
|
+
= image_tag container.image_url
|
13
|
+
|
14
|
+
.row-fluid
|
15
|
+
%p.lead= container.description
|
@@ -1,15 +1 @@
|
|
1
|
-
|
2
|
-
%h1= @container.title
|
3
|
-
|
4
|
-
.row-fluid
|
5
|
-
.fooltip-container
|
6
|
-
- @container.links.each do |link|
|
7
|
-
%span{ id: "fooltip-link-#{link.id}", class: "fooltip-link-container" }
|
8
|
-
= link_to '', 'javascript:void(0);', class: "fooltip-link", data: { content: "", placement: link.placement_string, toggle: "popover", :"original-title" => link.popup.title || '', html: true, trigger: link.trigger_string }, style: "top: #{link.y}px; left: #{link.x}px;"
|
9
|
-
.content{ style: "display: none;" }
|
10
|
-
.fooltip-popup{ style: "min-width: #{link.popup.min_width}px; min-height: #{link.popup.min_height}px; max-width: #{link.popup.max_width}px; max-height: #{link.popup.max_height}px;" }
|
11
|
-
= raw link.popup.content
|
12
|
-
= image_tag @container.image_url
|
13
|
-
|
14
|
-
.row-fluid
|
15
|
-
%p.lead= @container.description
|
1
|
+
= render @container
|
data/lib/fooltip/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fooltip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Intesys S.r.l.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -120,7 +120,7 @@ files:
|
|
120
120
|
- app/controllers/fooltip/containers_controller.rb
|
121
121
|
- app/uploaders/fooltip/image_uploader.rb
|
122
122
|
- app/views/fooltip/containers/show.html.haml
|
123
|
-
- app/views/
|
123
|
+
- app/views/fooltip/containers/_container.html.haml
|
124
124
|
- app/models/fooltip/popup.rb
|
125
125
|
- app/models/fooltip/association.rb
|
126
126
|
- app/models/fooltip/container.rb
|
@@ -129,7 +129,7 @@ files:
|
|
129
129
|
- app/helpers/fooltip/application_helper.rb
|
130
130
|
- app/assets/javascripts/fooltip/containers.js
|
131
131
|
- app/assets/javascripts/fooltip/application.js
|
132
|
-
- app/assets/stylesheets/fooltip/application.css
|
132
|
+
- app/assets/stylesheets/fooltip/application.css.sass
|
133
133
|
- app/assets/stylesheets/fooltip/containers.css.sass
|
134
134
|
- app/assets/images/fooltip/link.png
|
135
135
|
- config/routes.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require bootstrap
|
13
|
-
*= require_tree .
|
14
|
-
*/
|
@@ -1,12 +0,0 @@
|
|
1
|
-
!!! 5
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
%meta{name: "viewport", content: "width=device-width, initial-scale=1, maximum-scale=1"}
|
5
|
-
%title Fooltip
|
6
|
-
= stylesheet_link_tag 'fooltip/application', media: "all"
|
7
|
-
= javascript_include_tag 'fooltip/application'
|
8
|
-
= csrf_meta_tags
|
9
|
-
%body
|
10
|
-
.container-fluid
|
11
|
-
.row-fluid
|
12
|
-
= yield
|