card 1.15.pre2 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/card.gemspec +2 -1
- data/db/bootstrap/card_actions.yml +476 -518
- data/db/bootstrap/card_acts.yml +1 -1
- data/db/bootstrap/card_changes.yml +1937 -2172
- data/db/bootstrap/card_references.yml +2771 -2862
- data/db/bootstrap/cards.yml +1665 -1887
- data/db/migrate_core_cards/data/bootstrap_layout.json +1 -1
- data/lib/card/reference.rb +1 -1
- data/mod/01_core/set/all/collection.rb +1 -2
- data/mod/01_history/set/all/history.rb +76 -67
- data/mod/02_basic_types/set/all/all_css.rb +1 -1
- data/mod/03_machines/lib/javascript/{ace.js → script_ace.js} +0 -0
- data/mod/03_machines/lib/javascript/{wagn_menu.js → script_card_menu.js} +0 -0
- data/mod/03_machines/lib/javascript/{html5shiv-printshiv.js → script_html5shiv_printshiv.js} +0 -0
- data/mod/03_machines/lib/javascript/{jquery.js → script_jquery.js} +0 -0
- data/mod/03_machines/lib/javascript/{tinymce.js → script_tinymce.js} +0 -0
- data/mod/03_machines/lib/javascript/wagn.js.coffee +1 -4
- data/mod/03_machines/lib/stylesheets/style_cards.scss +2 -4
- data/mod/03_machines/lib/stylesheets/{jquery-ui-smoothness.css → style_jquery_ui_smoothness.css} +0 -0
- data/mod/03_machines/set/self/script_ace.rb +7 -3
- data/mod/03_machines/set/self/script_card_menu.rb +2 -7
- data/mod/03_machines/set/self/script_html5shiv_printshiv.rb +2 -7
- data/mod/03_machines/set/self/script_jquery.rb +2 -8
- data/mod/03_machines/set/self/script_jquery_helper.rb +1 -3
- data/mod/03_machines/set/self/script_slot.rb +1 -3
- data/mod/03_machines/set/self/script_tinymce.rb +2 -8
- data/mod/03_machines/set/self/style_bootstrap_compatible.rb +1 -5
- data/mod/03_machines/set/self/style_cards.rb +1 -3
- data/mod/03_machines/set/self/style_jquery_ui_smoothness.rb +2 -7
- data/mod/03_machines/set/type/css.rb +10 -6
- data/mod/03_machines/set/type/scss.rb +1 -2
- data/mod/04_settings/set/type/setting.rb +1 -1
- data/mod/05_email/set/self/follow_defaults.rb +1 -1
- data/mod/05_standard/file/favicon/icon-image.png +0 -0
- data/mod/05_standard/file/favicon/large-image.png +0 -0
- data/mod/05_standard/file/favicon/medium-image.png +0 -0
- data/mod/05_standard/file/favicon/original-image.png +0 -0
- data/mod/05_standard/file/favicon/small-image.png +0 -0
- data/mod/05_standard/set/all/attach.rb +1 -1
- data/mod/05_standard/set/all/rich_html/content.rb +1 -1
- data/mod/05_standard/set/all/rich_html/editing.rb +4 -4
- data/mod/05_standard/set/rstar/rules.rb +2 -2
- data/mod/05_standard/set/self/head.rb +3 -4
- data/mod/05_standard/set/self/signin.rb +2 -2
- data/mod/05_standard/set/type/signup.rb +2 -2
- data/mod/05_standard/set/type/user.rb +1 -1
- data/mod/06_bootstrap/lib/stylesheets/bootstrap_cards.scss +16 -1
- data/mod/06_bootstrap/lib/stylesheets/bootstrap_css.css +1 -1
- data/mod/06_bootstrap/lib/stylesheets/bootswatch_mixins.scss +282 -0
- data/mod/06_bootstrap/lib/stylesheets/theme_cerulean.css +3227 -2399
- data/mod/06_bootstrap/lib/stylesheets/theme_cosmo.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_cyborg.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_darkly.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_flatly.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_journal.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_lumen.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_paper.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_readable.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_sandstone.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_simplex.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_slate.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_spacelab.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_superhero.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_united.css +2 -2
- data/mod/06_bootstrap/lib/stylesheets/theme_yeti.css +2 -2
- data/mod/06_bootstrap/set/all/bootstrap/form.rb +6 -7
- data/mod/06_bootstrap/set/all/rich_bootstrap.rb +2 -2
- data/mod/06_bootstrap/set/self/bootstrap_js.rb +1 -3
- data/mod/06_bootstrap/set/self/bootswatch_mixins.rb +9 -0
- data/mod/06_bootstrap/set/self/theme_cerulean.rb +9 -2
- data/mod/06_bootstrap/set/self/theme_cosmo.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_cyborg.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_darkly.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_flatly.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_journal.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_lumen.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_paper.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_readable.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_sandstone.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_simplex.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_slate.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_spacelab.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_superhero.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_united.rb +2 -2
- data/mod/06_bootstrap/set/self/theme_yeti.rb +2 -2
- data/spec/lib/card/log_spec.rb +1 -1
- data/spec/lib/card/query_spec.rb +3 -3
- data/test/fixtures/card_actions.yml +1124 -1166
- data/test/fixtures/card_acts.yml +101 -101
- data/test/fixtures/card_changes.yml +5093 -5405
- data/test/fixtures/card_references.yml +3224 -3315
- data/test/fixtures/cards.yml +2287 -2586
- metadata +18 -17
- data/mod/05_standard/file/favicon/icon-image.ico +0 -0
- data/mod/05_standard/file/favicon/large-image.ico +0 -0
- data/mod/05_standard/file/favicon/medium-image.ico +0 -0
- data/mod/05_standard/file/favicon/original-image.ico +0 -0
- data/mod/05_standard/file/favicon/small-image.ico +0 -0
- data/mod/06_bootstrap/lib/stylesheets/theme_amelia.css +0 -5871
- data/mod/06_bootstrap/lib/stylesheets/theme_holo.css +0 -183
@@ -29,7 +29,7 @@
|
|
29
29
|
{
|
30
30
|
"name": "style: classic cards",
|
31
31
|
"type": "SCSS",
|
32
|
-
"content": "/* \r\nThis stylesheet defines the core rules of the \"classic\" Wagn look.\r\n*/\r\n\r\nbody {\r\n font: 12px verdana, arial, helvetica, sans-serif;\r\n background: #ccc;\r\n color: #444;\r\n margin: 0px;\r\n min-width: 480px;\r\n}\r\n\r\n.card-frame {\r\n margin: 1px 0;\r\n -moz-border-radius: 8px;\r\n border-radius: 8px;\r\n border: 1px solid #aaa;\r\n background: #fff;\r\n margin: 0;\r\n padding: 0 !important;\r\n > .card-body {\r\n min-height: 20px;\r\n }\r\n > .card-header {\r\n margin: 0;\r\n color: #333333;\r\n background: #8AB;\r\n text-align: left;\r\n .toggler {\r\n top: 2px;\r\n }\r\n }\r\n > .instruction {\r\n color: #440;\r\n background: #ddc;\r\n } \r\n}\r\
|
32
|
+
"content": "/* \r\nThis stylesheet defines the core rules of the \"classic\" Wagn look.\r\n*/\r\n\r\nbody {\r\n font: 12px verdana, arial, helvetica, sans-serif;\r\n background: #ccc;\r\n color: #444;\r\n margin: 0px;\r\n min-width: 480px;\r\n}\r\n\r\n.card-frame {\r\n margin: 1px 0;\r\n -moz-border-radius: 8px;\r\n border-radius: 8px;\r\n border: 1px solid #aaa;\r\n background: #fff;\r\n margin: 0;\r\n padding: 0 !important;\r\n > .card-body {\r\n min-height: 20px;\r\n }\r\n > .card-header {\r\n margin: 0;\r\n color: #333333;\r\n background: #8AB;\r\n text-align: left;\r\n .toggler {\r\n top: 2px;\r\n }\r\n }\r\n > .instruction {\r\n color: #440;\r\n background: #ddc;\r\n } \r\n}\r\nheader,\r\n#menu {\r\n background: #8AB;\r\n .navbar-default {\r\n border: none;\r\n background: #8AB;\r\n .navbar-nav > li > a {\r\n font-size: 1.3em;\r\n color: #000;\r\n }\r\n }\r\n}\r\n\r\n\r\n/*------------- closed view -------*/\r\n.closed-view {\r\n border: 0;\r\n border-bottom: 1px solid #ccc;\r\n -moz-border-radius: 0 !important;\r\n border-radius: 0 !important;\r\n .card-header {\r\n vertical-align: middle;\r\n -moz-border-radius: 0 6px 6px 0;\r\n border-radius: 0 6px 6px 0;\r\n margin-right: 4px;\r\n }\r\n}\r\n\r\n\r\n.errors-view > .card-body {\r\n border: 2px solid #b44;\r\n background: #ffb;\r\n}\r\n\r\n\r\n/*--------- links --------------*/\r\na {\r\n color: #279;\r\n}\r\na.wanted-card {\r\n color: #990000;\r\n}\r\na.email-link {\r\n color: #997799;\r\n}\r\n\r\n\r\n\r\n/*-- misc --*/\r\n\r\np {\r\n line-height: 1.5em;\r\n}\r\npre {\r\n background-color: #e5f0f5;\r\n padding: 10px;\r\n}\r\nli {\r\n margin-bottom: 2px;\r\n}\r\nhr {\r\n margin: 10px\r\n}\r\n\r\n\r\n.card-notice {\r\n color: #009;\r\n}\r\n.joint {\r\n color: #960;\r\n}\r\n\r\n"
|
33
33
|
},
|
34
34
|
{
|
35
35
|
"name": "style: common",
|
data/lib/card/reference.rb
CHANGED
@@ -53,7 +53,7 @@ class Card::Reference < ActiveRecord::Base
|
|
53
53
|
delete_missing_referers
|
54
54
|
|
55
55
|
Card.where(:trash=>false).find_each do |card|
|
56
|
-
Rails.logger.info "\
|
56
|
+
Rails.logger.info "\nRepairing references for '#{card.name}' (id: #{card.id}) ... "
|
57
57
|
card.update_references
|
58
58
|
end
|
59
59
|
end
|
@@ -2,7 +2,7 @@ REVISIONS_PER_PAGE = Card.config.revisions_per_page
|
|
2
2
|
|
3
3
|
# must be called on all actions and before :set_name, :process_subcards and :validate_delete_children
|
4
4
|
def create_act_and_action
|
5
|
-
@current_act = if @supercard
|
5
|
+
@current_act = if @supercard
|
6
6
|
@supercard.current_act || @supercard.acts.build(:ip_address=>Env.ip)
|
7
7
|
else
|
8
8
|
acts.build(:ip_address=>Env.ip)
|
@@ -40,14 +40,13 @@ event :rollback_actions, :before=>:approve, :on=>:update, :when=>proc{ |c| Env a
|
|
40
40
|
rollback_actions = Env.params['action_ids'].map do |a_id|
|
41
41
|
Action.fetch(a_id) || nil
|
42
42
|
end
|
43
|
-
rollback_actions.each do |action|
|
43
|
+
rollback_actions.each do |action|
|
44
44
|
if action.card_id == id
|
45
|
-
revision.merge!(revision(action))
|
45
|
+
revision.merge!(revision(action))
|
46
46
|
else
|
47
|
-
revision[:subcards].
|
47
|
+
revision[:subcards][action.card.name] = revision(action)
|
48
48
|
end
|
49
49
|
end
|
50
|
-
|
51
50
|
Env.params['action_ids'] = nil
|
52
51
|
update_attributes! revision
|
53
52
|
rollback_actions.each do |action|
|
@@ -59,8 +58,6 @@ end
|
|
59
58
|
|
60
59
|
|
61
60
|
|
62
|
-
|
63
|
-
|
64
61
|
def intrusive_family_acts args={} # all acts with actions on self and on cards that are descendants of self and included in self
|
65
62
|
@intrusive_family_acts ||= begin
|
66
63
|
Act.find_all_with_actions_on( (included_descendant_card_ids << id), args)
|
@@ -81,12 +78,12 @@ end
|
|
81
78
|
|
82
79
|
def included_card_ids
|
83
80
|
Card::Reference.select(:referee_id).where( :ref_type => 'I', :referer_id=>id ).pluck('referee_id').compact.uniq
|
84
|
-
end
|
85
|
-
|
81
|
+
end
|
82
|
+
|
86
83
|
def descendant_card_ids parent_ids=[id]
|
87
84
|
more_ids = Card.where('left_id IN (?)', parent_ids).pluck('id')
|
88
|
-
|
89
|
-
if !more_ids.empty?
|
85
|
+
|
86
|
+
if !more_ids.empty?
|
90
87
|
more_ids += descendant_card_ids more_ids
|
91
88
|
end
|
92
89
|
more_ids
|
@@ -103,20 +100,20 @@ format :html do
|
|
103
100
|
end
|
104
101
|
end
|
105
102
|
|
106
|
-
view :revisions do |args|
|
103
|
+
view :revisions do |args|
|
107
104
|
page = params['page'] || 1
|
108
105
|
count = card.intrusive_acts.size+1-(page.to_i-1)*REVISIONS_PER_PAGE
|
109
|
-
card.intrusive_acts.page(page).per(REVISIONS_PER_PAGE).map do |act|
|
106
|
+
card.intrusive_acts.page(page).per(REVISIONS_PER_PAGE).map do |act|
|
110
107
|
count -= 1
|
111
108
|
render_act_summary args.merge(:act=>act,:rev_nr=>count)
|
112
109
|
end.join
|
113
110
|
end
|
114
|
-
|
111
|
+
|
115
112
|
view :revision_subheader do |args|
|
116
113
|
intr = card.intrusive_acts.page(params['page']).per(REVISIONS_PER_PAGE)
|
117
|
-
render_haml :intr=>intr do
|
114
|
+
render_haml :intr=>intr do
|
118
115
|
%{
|
119
|
-
.history-header
|
116
|
+
.history-header
|
120
117
|
%span.slotter
|
121
118
|
= paginate intr, :remote=>true, :theme=>'twitter-bootstrap-3'
|
122
119
|
%div.history-legend
|
@@ -130,24 +127,24 @@ format :html do
|
|
130
127
|
}
|
131
128
|
end
|
132
129
|
end
|
133
|
-
|
130
|
+
|
134
131
|
view :act_summary do |args|
|
135
132
|
render_act :summary, args
|
136
133
|
end
|
137
|
-
|
134
|
+
|
138
135
|
view :act_expanded do |args|
|
139
136
|
render_act :expanded, args
|
140
137
|
end
|
141
|
-
|
138
|
+
|
142
139
|
def render_act act_view, args
|
143
140
|
act = (params['act_id'] and Card::Act.find(params['act_id'])) || args[:act]
|
144
|
-
rev_nr = params['rev_nr'] || args[:rev_nr]
|
141
|
+
rev_nr = params['rev_nr'] || args[:rev_nr]
|
145
142
|
current_rev_nr = params['current_rev_nr'] || args[:current_rev_nr] || card.current_rev_nr
|
146
143
|
hide_diff = (params["hide_diff"]=="true") || args[:hide_diff]
|
147
144
|
wrap( args.merge(:slot_class=>"revision-#{act.id} history-slot list-group-item") ) do
|
148
|
-
render_haml :card=>card, :act=>act, :act_view=>act_view,
|
149
|
-
:current_rev_nr=>current_rev_nr, :rev_nr=>rev_nr,
|
150
|
-
:hide_diff=> hide_diff do
|
145
|
+
render_haml :card=>card, :act=>act, :act_view=>act_view,
|
146
|
+
:current_rev_nr=>current_rev_nr, :rev_nr=>rev_nr,
|
147
|
+
:hide_diff=> hide_diff do
|
151
148
|
%{
|
152
149
|
.act{:style=>"clear:both;"}
|
153
150
|
.head
|
@@ -168,10 +165,10 @@ format :html do
|
|
168
165
|
Current
|
169
166
|
- elsif act_view == :expanded
|
170
167
|
= rollback_link act.relevant_actions_for(card, act.actions.last.draft)
|
171
|
-
= show_or_hide_changes_link hide_diff, :act_id=>act.id, :act_view=>act_view, :rev_nr=>rev_nr, :current_rev_nr=>current_rev_nr
|
168
|
+
= show_or_hide_changes_link hide_diff, :act_id=>act.id, :act_view=>act_view, :rev_nr=>rev_nr, :current_rev_nr=>current_rev_nr
|
172
169
|
.toggle
|
173
170
|
= fold_or_unfold_link :act_id=>act.id, :act_view=>act_view, :rev_nr=>rev_nr, :current_rev_nr=>current_rev_nr
|
174
|
-
|
171
|
+
|
175
172
|
.action-container{:style=>("clear: left;" if act_view == :expanded)}
|
176
173
|
- act.relevant_actions_for(card).each do |action|
|
177
174
|
= send("_render_action_#{ act_view }", :action=>action )
|
@@ -179,65 +176,79 @@ format :html do
|
|
179
176
|
end
|
180
177
|
end
|
181
178
|
end
|
182
|
-
|
179
|
+
|
183
180
|
view :action_summary do |args|
|
184
181
|
render_action :summary, args
|
185
182
|
end
|
186
|
-
|
183
|
+
|
187
184
|
view :action_expanded do |args|
|
188
185
|
render_action :expanded, args
|
189
186
|
end
|
190
187
|
|
191
188
|
def render_action action_view, args
|
192
189
|
action = args[:action] || card.last_action
|
193
|
-
|
194
|
-
|
195
|
-
|
190
|
+
hide_diff = Env.params["hide_diff"]=="true" || args[:hide_diff]
|
191
|
+
name_diff =
|
192
|
+
if action.card == card
|
193
|
+
name_changes(action, hide_diff)
|
194
|
+
else
|
195
|
+
link_to name_changes(action, hide_diff),
|
196
|
+
path(:view=>:related, :related=>{:view=>"history",:name=>action.card.name}),
|
197
|
+
:class=>'slotter label-label-default',
|
198
|
+
:slotSelector=>".card-slot.card-frame",
|
199
|
+
:remote=>true
|
200
|
+
end
|
201
|
+
|
202
|
+
type_diff =
|
203
|
+
action.new_type? &&
|
204
|
+
type_changes(action, hide_diff)
|
205
|
+
|
206
|
+
content_diff =
|
207
|
+
action.new_content? &&
|
208
|
+
action.card.format.render_content_changes(:action=>action, :diff_type=>action_view, :hide_diff=>hide_diff)
|
209
|
+
|
210
|
+
render_haml :action => action,
|
211
|
+
:action_view => action_view,
|
212
|
+
:name_diff => name_diff,
|
213
|
+
:type_diff => type_diff,
|
214
|
+
:content_diff => content_diff do
|
196
215
|
%{
|
197
216
|
.action
|
198
217
|
.summary
|
199
|
-
%span.ampel
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
-if action.new_type?
|
210
|
-
= wrap_diff :type do
|
211
|
-
- type_changes action, hide_diff
|
212
|
-
-if action.new_content?
|
213
|
-
%span.glyphicon.glyphicon-arrow-right.arrow
|
214
|
-
-if action_view == :summary
|
215
|
-
= wrap_diff :content do
|
216
|
-
- action.card.format.render_content_changes :action=>action, :diff_type=>action_view, :hide_diff=>hide_diff
|
217
|
-
-if action.new_content? and action_view == :expanded
|
218
|
+
%span.ampel
|
219
|
+
= glyphicon 'minus-sign', (action.red? ? 'diff-red' : 'diff-invisible')
|
220
|
+
= glyphicon 'plus-sign', (action.green? ? 'diff-green' : 'diff-invisible')
|
221
|
+
= wrap_diff :name, name_diff
|
222
|
+
= wrap_diff :type, type_diff if type_diff
|
223
|
+
-if content_diff
|
224
|
+
= glyphicon 'arrow-right', 'arrow'
|
225
|
+
-if action_view == :summary
|
226
|
+
= wrap_diff :content, content_diff
|
227
|
+
-if content_diff and action_view == :expanded
|
218
228
|
.expanded
|
219
|
-
= wrap_diff :content
|
220
|
-
|
221
|
-
}
|
229
|
+
= wrap_diff :content, content_diff
|
230
|
+
}
|
222
231
|
end
|
223
232
|
end
|
224
233
|
|
225
|
-
def wrap_diff field,
|
226
|
-
content = block.call
|
234
|
+
def wrap_diff field, content
|
227
235
|
if content.present?
|
228
236
|
%{
|
229
237
|
<span class="#{field}-diff#{ ' label label-default' if field == :name }">
|
230
238
|
#{content}
|
231
239
|
</span>
|
232
240
|
}
|
241
|
+
else
|
242
|
+
''
|
233
243
|
end
|
234
244
|
end
|
235
|
-
|
245
|
+
|
246
|
+
|
236
247
|
def name_changes action, hide_diff=false
|
237
248
|
old_name = (name = action.old_values[:name] and showname(name).to_s)
|
238
249
|
if action.new_name?
|
239
250
|
new_name = showname(action.new_values[:name]).to_s
|
240
|
-
if hide_diff
|
251
|
+
if hide_diff
|
241
252
|
new_name
|
242
253
|
else
|
243
254
|
Card::Diff.complete(old_name,new_name)
|
@@ -246,26 +257,24 @@ format :html do
|
|
246
257
|
old_name
|
247
258
|
end
|
248
259
|
end
|
249
|
-
|
260
|
+
|
250
261
|
def type_changes action, hide_diff=false
|
251
262
|
change = hide_diff ? action.new_values[:cardtype] : action.cardtype_diff
|
252
263
|
"(#{change})"
|
253
264
|
end
|
254
|
-
|
255
265
|
|
256
266
|
|
257
|
-
|
258
267
|
view :content_changes do |args|
|
259
268
|
if args[:hide_diff]
|
260
269
|
args[:action].new_values[:content]
|
261
|
-
else
|
270
|
+
else
|
262
271
|
args[:action].content_diff(args[:diff_type])
|
263
272
|
end
|
264
273
|
end
|
265
274
|
|
266
275
|
def rollback_link action_ids
|
267
|
-
if card.ok?(:update)
|
268
|
-
"| " + link_to('Save as current', path(:action=>:update, :view=>:open, :action_ids=>action_ids
|
276
|
+
if card.ok?(:update)
|
277
|
+
"| " + link_to('Save as current', path(:action=>:update, :view=>:open, :action_ids=>action_ids),
|
269
278
|
:class=>'slotter',:slotSelector=>'.card-slot.card-frame', :remote=>true, :method=>:post, :rel=>'nofollow')
|
270
279
|
end
|
271
280
|
end
|
@@ -276,14 +285,14 @@ format :html do
|
|
276
285
|
else
|
277
286
|
toggled_view = :act_expanded
|
278
287
|
end
|
279
|
-
link_to '', args.merge(:view=>toggled_view),
|
280
|
-
:class=>"slotter revision-#{args[:act_id]} #{ args[:act_view]==:expanded ? "arrow-down" : "arrow-right"}",
|
288
|
+
link_to '', args.merge(:view=>toggled_view),
|
289
|
+
:class=>"slotter revision-#{args[:act_id]} #{ args[:act_view]==:expanded ? "arrow-down" : "arrow-right"}",
|
281
290
|
:remote=>true
|
282
291
|
end
|
283
|
-
|
292
|
+
|
284
293
|
def show_or_hide_changes_link hide_diff, args
|
285
|
-
"| " + view_link( (hide_diff ? "Show" : "Hide") + " changes", :act_expanded,
|
286
|
-
:path_opts=>args.merge(:hide_diff=>!hide_diff),
|
294
|
+
"| " + view_link( (hide_diff ? "Show" : "Hide") + " changes", :act_expanded,
|
295
|
+
:path_opts=>args.merge(:hide_diff=>!hide_diff),
|
287
296
|
:class=>'slotter', :remote=>true )
|
288
297
|
end
|
289
298
|
end
|
File without changes
|
File without changes
|
data/mod/03_machines/lib/javascript/{html5shiv-printshiv.js → script_html5shiv_printshiv.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -101,7 +101,7 @@ jQuery.fn.extend {
|
|
101
101
|
autosave: ->
|
102
102
|
slot = @slot()
|
103
103
|
return if @attr 'no-autosave'
|
104
|
-
multi = @closest '
|
104
|
+
multi = @closest '.form-group'
|
105
105
|
if multi[0]
|
106
106
|
return unless id = multi.data 'cardId'
|
107
107
|
reportee = ': ' + multi.data 'cardName'
|
@@ -199,11 +199,8 @@ $(window).ready ->
|
|
199
199
|
false
|
200
200
|
|
201
201
|
$('body').on 'submit', '.card-form', ->
|
202
|
-
# warn "on submit called"
|
203
202
|
$(this).setContentFieldsFromMap()
|
204
|
-
# warn "content fields set"
|
205
203
|
$(this).find('.card-content').attr('no-autosave','true')
|
206
|
-
# warn "autosave worked"
|
207
204
|
true
|
208
205
|
|
209
206
|
$('body').on 'click', '.submitter', ->
|
@@ -641,10 +641,6 @@ $act-gray: #b7b7b7;
|
|
641
641
|
li:nth-child(even) {
|
642
642
|
background: #ddd;
|
643
643
|
}
|
644
|
-
h1 {
|
645
|
-
font-size: 1.5em;
|
646
|
-
padding: .6em 0 .3em 0
|
647
|
-
}
|
648
644
|
aside {
|
649
645
|
float: right;
|
650
646
|
border: 1px solid #999;
|
@@ -658,6 +654,8 @@ $act-gray: #b7b7b7;
|
|
658
654
|
text-align: center;
|
659
655
|
h2 {
|
660
656
|
font-size: .9em;
|
657
|
+
padding: 0;
|
658
|
+
margin: 5px;
|
661
659
|
}
|
662
660
|
p {
|
663
661
|
font-size: .8em;
|
data/mod/03_machines/lib/stylesheets/{jquery-ui-smoothness.css → style_jquery_ui_smoothness.css}
RENAMED
File without changes
|
@@ -1,8 +1,12 @@
|
|
1
1
|
|
2
2
|
view :raw do |args|
|
3
|
-
|
3
|
+
|
4
|
+
Rails.logger.info "reading file: #{Cardio.gem_root}/mod/03_machines/lib/javascript/#{card.codename}.js"
|
5
|
+
File.read "#{Cardio.gem_root}/mod/03_machines/lib/javascript/#{card.codename}.js"
|
4
6
|
end
|
5
7
|
|
6
|
-
|
7
|
-
|
8
|
+
format :html do
|
9
|
+
view :editor do |args|
|
10
|
+
"Content is stored in file and can't be edited."
|
11
|
+
end
|
8
12
|
end
|
@@ -1,8 +1,3 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
end
|
5
|
-
|
6
|
-
view :editor do |args|
|
7
|
-
"Content is stored in file and can't be edited."
|
8
|
-
end
|
2
|
+
format { include ScriptAce::Format }
|
3
|
+
format(:html) { include ScriptAce::HtmlFormat }
|
@@ -1,7 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
end
|
4
|
-
|
5
|
-
view :editor do |args|
|
6
|
-
"Content is stored in file and can't be edited."
|
7
|
-
end
|
1
|
+
format { include ScriptAce::Format }
|
2
|
+
format(:html) { include ScriptAce::HtmlFormat }
|
@@ -1,8 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
File.read "#{Cardio.gem_root}/mod/03_machines/lib/javascript/jquery.js"
|
4
|
-
end
|
5
|
-
|
6
|
-
view :editor do |args|
|
7
|
-
"Content is stored in file and can't be edited."
|
8
|
-
end
|
1
|
+
format { include ScriptAce::Format }
|
2
|
+
format(:html) { include ScriptAce::HtmlFormat }
|