fooltip 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7a37dce1585dd375392716d29e39f6ae9c98ff9
4
- data.tar.gz: 8e8a2f892bec54aba5477d4d9b6268493e694d5c
3
+ metadata.gz: cd13f30e6362e8a821126441289d6d44da20d92a
4
+ data.tar.gz: 1c7b45326c0bcf73d882b0de6eaf674630b91a8c
5
5
  SHA512:
6
- metadata.gz: b1bd5e9fcc08da2358370633229acc89938b2a67f94130d632b1f2f9e9813215b21493ca1752bb968a4ccbd6f723e4f62352cbcee87263f8fb1e1921d26439e8
7
- data.tar.gz: 5723fe42fac1c38d6e4e627b17152b66df2b6ac818a1f05c5664b2648aa272b5c312648f83c96e3730c1d177708a263ed976e48a8cca2225a075b8aa864f2d5e
6
+ metadata.gz: a7d5267667d6231ac7da360ada35773d72e5d8fe64c3eaa49f1cee8082f93e8e20f19f58e805d58810fd5f8f2bdb4b203b7a57451f54c2f2d5f5b7da03e02505
7
+ data.tar.gz: 3213a2fcb44f073c2728d1766d336ae8a850ed27cb9c1d17473ac6ab47f74e5d516f569f7455c045f8d60fe107330fabb96bfa12d07e5241817fe4b6b1b5cda3
@@ -12,5 +12,5 @@
12
12
  //
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
- //= require_tree .
16
15
  //= require bootstrap
16
+ //= require ./containers.js
@@ -0,0 +1,2 @@
1
+ @import "bootstrap"
2
+ @import "containers.css.sass"
@@ -1,6 +1,6 @@
1
1
  .fooltip-container
2
- width: 800px
3
- height: 500px
2
+ width: auto
3
+ height: auto
4
4
  position: relative
5
5
  image
6
6
  float: left
@@ -1,4 +1,5 @@
1
1
  module Fooltip
2
2
  class ApplicationController < ActionController::Base
3
+ layout 'application'
3
4
  end
4
5
  end
@@ -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
- .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
+ = render @container
@@ -1,3 +1,3 @@
1
1
  module Fooltip
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-03 00:00:00.000000000 Z
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/layouts/fooltip/application.html.haml
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