publinator 0.0.27 → 0.0.28

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.
@@ -16,6 +16,11 @@
16
16
  //= require_directory "./manage"
17
17
  //= require_self
18
18
 
19
+ function moveObject(selector, from, to) {
20
+ $(selector).appendTo($(to));
21
+ $(selector).find($(from)).remove();
22
+ }
23
+
19
24
  $(function() {
20
25
  $(".sortable_list").sortable({
21
26
  update: function(){
@@ -29,5 +34,11 @@ $(function() {
29
34
  }
30
35
  });
31
36
  $(".sortable_list").disableSelection();
37
+
38
+
39
+ $(".toggle_details").on("click", function(event) {
40
+ event.preventDefault();
41
+ $(event.currentTarget).siblings('.object_details').toggle();
42
+ });
32
43
  });
33
44
 
@@ -56,6 +56,14 @@ body {
56
56
  padding: 8px;
57
57
  }
58
58
  }
59
+
60
+ .object_details {
61
+ display: none;
62
+ font-size: 0.9em;
63
+ border: 1px solid silver;
64
+ margin: 12px;
65
+ padding: 12px;
66
+ }
59
67
  }
60
68
 
61
69
  #footer {
@@ -101,5 +101,9 @@ module Publinator
101
101
  stp_txt = truncate(strip_tags(m(txt)), :length => 200)
102
102
  stp_txt.gsub("'", "'").gsub("&", "&").gsub("®", "").gsub("™", "") unless stp_txt.nil?
103
103
  end
104
+
105
+ def toggle_details(lnk_text, obj_link)
106
+ link_to lnk_text, obj_link, :class => 'toggle_details'
107
+ end
104
108
  end
105
109
  end
@@ -1,4 +1,7 @@
1
1
  module Publinator
2
- module Manage::PublishableTypesHelper
2
+ module Manage
3
+ module PublishableTypesHelper
4
+
5
+ end
3
6
  end
4
7
  end
@@ -11,4 +11,4 @@
11
11
 
12
12
  <%= link_to "Publishable Types", "/manage/publishable_types" %><br>
13
13
 
14
-
14
+ <%= render :partial => '/manage/local_links' %>
@@ -1,3 +1,3 @@
1
1
  module Publinator
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
data/lib/publinator.rb CHANGED
@@ -34,7 +34,7 @@ module Publinator
34
34
  attr_accessor :default
35
35
 
36
36
  scope :non_index, joins(:publication).where("publication.slug != 'index'")
37
- delegate :site, :section, :slug, :to => :publication
37
+ delegate :site, :position, :section, :slug, :to => :publication
38
38
  end
39
39
  end
40
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -389,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
389
389
  version: '0'
390
390
  segments:
391
391
  - 0
392
- hash: -915766590298524915
392
+ hash: 2012015403603158414
393
393
  required_rubygems_version: !ruby/object:Gem::Requirement
394
394
  none: false
395
395
  requirements:
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
398
  version: '0'
399
399
  segments:
400
400
  - 0
401
- hash: -915766590298524915
401
+ hash: 2012015403603158414
402
402
  requirements: []
403
403
  rubyforge_project:
404
404
  rubygems_version: 1.8.24