inline_forms 1.5.4 → 1.5.5

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.
@@ -278,6 +278,51 @@ ul.checklist li {
278
278
  border: 2px solid #385b7b;
279
279
  }
280
280
 
281
+ #admin_tabs {
282
+ background-color: #FFEBAE;
283
+ -moz-border-radius: 5px;
284
+ -webkit-border-radius: 5px;
285
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
286
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
287
+ background-image: -moz-linear-gradient(100% 100% 90deg, #FFEBAE, #E0CA4B);
288
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFEBAE), to(#FFEBAE));
289
+ padding: 0.4em;
290
+ margin: 0 0 0.4em 0;
291
+ font-size: 10pt;
292
+ }
293
+
294
+ #admin_tabs li {
295
+ font-size: 110%;
296
+ font-weight: bold;
297
+ display: inline-block;
298
+ background-color: #EFE06C;
299
+ padding: 0.2em 0.3em;
300
+ border: 1px solid #385b7b;
301
+ -moz-border-radius: 5px;
302
+ -webkit-border-radius: 5px;
303
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
304
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
305
+ }
306
+
307
+ #admin_tabs li:hover {
308
+ -webkit-transform: scale(1.2);
309
+ -moz-transform: scale(1.2);
310
+ -webkit-box-shadow: 0 2px 5px rgba(0,0,0, .5);
311
+ -moz-box-shadow: 0 2px 5px rgba(0,0,0, .5);
312
+ }
313
+
314
+
315
+ #admin_tabs li a {
316
+ color: #887E42;
317
+ }
318
+
319
+ #admin_tabs .current {
320
+ font-weight: bold;
321
+ color: #385B7B;
322
+ background-color: #FFECAB;
323
+ border: 2px solid #385b7b;
324
+ }
325
+
281
326
  .close_icon {
282
327
  border: 0;
283
328
  margin: 1px;
@@ -32,7 +32,7 @@ module InlineFormsHelper
32
32
 
33
33
  # destroy link
34
34
  def link_to_destroy( object, update_span )
35
- if cancan_disabled? || ( can? :destroy, object )
35
+ if cancan_disabled? || ( can? :delete, object )
36
36
  link_to image_tag( 'trash.png',
37
37
  :class => "trash_icon",
38
38
  :title => t('inline_forms.view.trash') ),
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.5.4"
3
+ VERSION = "1.5.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: