banner_module 0.1.1 → 0.1.2
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.
- data/Manifest +2 -0
- data/README +5 -0
- data/Rakefile +1 -1
- data/app/views/banners/_banner1.erb +11 -0
- data/app/views/banners/_banner2.erb +11 -0
- data/banner_module.gemspec +2 -2
- metadata +4 -2
data/Manifest
CHANGED
@@ -7,6 +7,8 @@ app/controllers/banners_controller.rb
|
|
7
7
|
app/helpers/banners_helper.rb
|
8
8
|
app/models/banner.rb
|
9
9
|
app/views/banners/_banner.erb
|
10
|
+
app/views/banners/_banner1.erb
|
11
|
+
app/views/banners/_banner2.erb
|
10
12
|
app/views/banners/_menu.erb
|
11
13
|
app/views/banners/crop.html.erb
|
12
14
|
app/views/banners/edit.html.erb
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
<% banners = Banner.find(:all, { :conditions => {:topo=>true} , :order => "rand()"}) %>
|
2
|
+
<ul id="banner_topo">
|
3
|
+
<% banners.each do |banner| %>
|
4
|
+
<li><%= link_to image_tag(banner.arquivo.url(:big)), banner.link %></li>
|
5
|
+
<% end %>
|
6
|
+
</ul>
|
7
|
+
<script type="text/javascript">
|
8
|
+
Event.observe(window, 'load', function(){
|
9
|
+
new SlideShow('banner_topo');
|
10
|
+
});
|
11
|
+
</script>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% banners = Banner.find(:all, { :conditions => {:conteudo=>true} , :order => "rand()"}) %>
|
2
|
+
<ul id="banner_semanal">
|
3
|
+
<% banners.each do |banner| %>
|
4
|
+
<li><%= link_to image_tag(banner.arquivo.url(:normal)), banner.link%></li>
|
5
|
+
<% end %>
|
6
|
+
</ul>
|
7
|
+
<script type="text/javascript">
|
8
|
+
Event.observe(window, 'load', function(){
|
9
|
+
new SlideShow('banner_semanal');
|
10
|
+
});
|
11
|
+
</script>
|
data/banner_module.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{banner_module}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Eduardo Cauli"]
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = %q{Ramdom banners}
|
11
11
|
s.email = %q{ecauli@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "README", "lib/banner_module.rb"]
|
13
|
-
s.files = ["CHANGELOG", "MIT-LICENSE", "Manifest", "README", "Rakefile", "app/controllers/banners_controller.rb", "app/helpers/banners_helper.rb", "app/models/banner.rb", "app/views/banners/_banner.erb", "app/views/banners/_menu.erb", "app/views/banners/crop.html.erb", "app/views/banners/edit.html.erb", "app/views/banners/index.html.erb", "app/views/banners/new.html.erb", "app/views/banners/show.html.erb", "app/views/banners/showp.pdf.prawn", "banner_module.gemspec", "config/routes.rb", "generators/banner_module/banner_module_generator.rb", "generators/banner_module/templates/create_banner_module.rb", "init.rb", "install.rb", "lib/banner_module.rb", "uninstall.rb"]
|
13
|
+
s.files = ["CHANGELOG", "MIT-LICENSE", "Manifest", "README", "Rakefile", "app/controllers/banners_controller.rb", "app/helpers/banners_helper.rb", "app/models/banner.rb", "app/views/banners/_banner.erb", "app/views/banners/_banner1.erb", "app/views/banners/_banner2.erb", "app/views/banners/_menu.erb", "app/views/banners/crop.html.erb", "app/views/banners/edit.html.erb", "app/views/banners/index.html.erb", "app/views/banners/new.html.erb", "app/views/banners/show.html.erb", "app/views/banners/showp.pdf.prawn", "banner_module.gemspec", "config/routes.rb", "generators/banner_module/banner_module_generator.rb", "generators/banner_module/templates/create_banner_module.rb", "init.rb", "install.rb", "lib/banner_module.rb", "uninstall.rb"]
|
14
14
|
s.homepage = %q{http://github.com/ecauli/banner_module}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Banner_module", "--main", "README"]
|
16
16
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Eduardo Cauli
|
@@ -38,6 +38,8 @@ files:
|
|
38
38
|
- app/helpers/banners_helper.rb
|
39
39
|
- app/models/banner.rb
|
40
40
|
- app/views/banners/_banner.erb
|
41
|
+
- app/views/banners/_banner1.erb
|
42
|
+
- app/views/banners/_banner2.erb
|
41
43
|
- app/views/banners/_menu.erb
|
42
44
|
- app/views/banners/crop.html.erb
|
43
45
|
- app/views/banners/edit.html.erb
|