beef-slides 1.0.0 → 1.1.0

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -72,12 +72,17 @@ class Admin::SlideShowsController < Admin::BaseController
72
72
  # DELETE /slide_shows/1.xml
73
73
  def destroy
74
74
  @slide_show = SlideShow.find(params[:id])
75
- @slide_show.destroy
76
- flash[:notice] = 'SlideShow was successfully deleted.'
77
-
78
- respond_to do |format|
79
- format.html { redirect_to(admin_slide_shows_url) }
80
- format.xml { head :ok }
75
+ if @slide_show.lock_level >0
76
+ flash[:notice] = 'This Slide Show is locked.'
77
+ redirect_to(:back)
78
+ else
79
+ @slide_show.destroy
80
+ flash[:notice] = 'SlideShow was successfully deleted.'
81
+
82
+ respond_to do |format|
83
+ format.html { redirect_to(admin_slide_shows_url) }
84
+ format.xml { head :ok }
85
+ end
81
86
  end
82
87
  end
83
88
  end
@@ -16,6 +16,14 @@
16
16
  <%= f.label :link %><br />
17
17
  <%= f.text_field :link %>
18
18
  </p>
19
+ <p>
20
+ <%= f.label :body %><br />
21
+ <%= f.textarea :body %>
22
+ </p>
23
+
24
+
25
+
26
+
19
27
  <p>
20
28
  <%= f.label :uploaded_data, "Image" %><br />
21
29
  <%= f.file_field :uploaded_data %>
@@ -3,6 +3,7 @@ class CreateSlides < ActiveRecord::Migration
3
3
  create_table :slides do |t|
4
4
  t.string :title
5
5
  t.string :strapline
6
+ t.text :body
6
7
  t.string :link
7
8
  t.integer :position, :default => 0
8
9
  t.datetime :published_at
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{slides}
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daniel Craig"]
12
- s.date = %q{2009-09-04}
12
+ s.date = %q{2009-09-07}
13
13
  s.email = %q{daniel@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-slides
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Craig
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-04 00:00:00 -07:00
12
+ date: 2009-09-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15