card 1.15.3 → 1.15.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dc15d9c2c0968a351432221cb47274d695515c9
|
4
|
+
data.tar.gz: 006311ea9e42182b47adc6e3a1ed434e47239c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 897cf06f078a5deef931ec1b38d70c1690b3f97943f58987789e33c1dbea8a9d46b89c53d123196b35cb00b8b05d7c92c2fa3c8b6d6718de1863ee7f2276f217
|
7
|
+
data.tar.gz: a9e1cd1a88f3da9b79b9b3b011d48e5ea64650b4e5f35945e263cd5bdc8fc14563c6f463c5acaed93f30d03a46bd01b0345e8bb076f5423845b31cc8bfa538fa
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.15.
|
1
|
+
1.15.4
|
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
class AddSessionCardtype < Card::CoreMigration
|
4
4
|
def up
|
5
|
-
Card.
|
5
|
+
session_card_name = Card.exists?( 'Session' ) ? 'BrowserSession' : 'Session'
|
6
|
+
Card.create! :name=>session_card_name, :type_code=>:cardtype, :codename=>'session',
|
6
7
|
:subcards=>{'+description'=>{:content=>'Session cards are for non-permanent content.
|
7
8
|
They are not stored in the database and can have different values for different users.
|
8
9
|
You can use a Session card to keep track of certain state of a particular user like the content
|
@@ -176,7 +176,7 @@ format :html do
|
|
176
176
|
end
|
177
177
|
tab_panel tab_buttons, tab_panes, args[:tab_type]
|
178
178
|
end
|
179
|
-
def
|
179
|
+
def default_tabs_args args
|
180
180
|
args[:tab_type] ||= 'tabs'
|
181
181
|
end
|
182
182
|
|
@@ -215,7 +215,7 @@ format :html do
|
|
215
215
|
end
|
216
216
|
|
217
217
|
def tab_button target, text, active=false, link_attr={}
|
218
|
-
link = link_to text, target, link_attr.merge('role'=>'tab','data-toggle'=>'tab')
|
218
|
+
link = link_to fancy_title(text), target, link_attr.merge('role'=>'tab','data-toggle'=>'tab')
|
219
219
|
li_args = { :role => :presentation }
|
220
220
|
li_args[:class] = 'active' if active
|
221
221
|
content_tag :li, link, li_args
|
@@ -5,12 +5,12 @@ def select_action_by_params params
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def find_action_by_params args
|
8
|
-
case
|
8
|
+
case
|
9
9
|
when args[:rev]
|
10
10
|
nth_action args[:rev]
|
11
11
|
when args[:rev_id]
|
12
|
-
if action = Action.fetch(args[:rev_id]) and action.card_id == id
|
13
|
-
action
|
12
|
+
if action = Action.fetch(args[:rev_id]) and action.card_id == id
|
13
|
+
action
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -37,7 +37,7 @@ end
|
|
37
37
|
def delete_old_actions
|
38
38
|
Card::TRACKED_FIELDS.each do |field|
|
39
39
|
# assign previous changes on each tracked field to the last action
|
40
|
-
if (
|
40
|
+
if (la=last_action) && !la.change_for(field).present? && (last_change = last_change_on(field))
|
41
41
|
last_change = Card::Change.find(last_change.id) # last_change comes as readonly record
|
42
42
|
last_change.update_attributes!(:card_action_id=>last_action_id)
|
43
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-06-
|
14
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: smartname
|