nice_admin 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,4 +85,8 @@ input[type=file]{
85
85
 
86
86
  input[type=submit]{
87
87
  margin-top: 20px;
88
+ }
89
+
90
+ .formtastic .buttons{
91
+ padding-left: 0 !important;
88
92
  }
@@ -41,8 +41,23 @@ table td.center,
41
41
  table th.center {
42
42
  text-align: center
43
43
  }
44
- /*Midle center cell*/
44
+
45
+
45
46
  table td.middle,
46
47
  table th.middle {
47
48
  vertical-align: middle
49
+ }
50
+
51
+ .blank_table_text{
52
+ padding-top: 65px;
53
+ font-size: 40px;
54
+ font-weight: bold;
55
+ text-transform: uppercase;
56
+
57
+ -webkit-background-clip: text;
58
+ background-color: rgba(82,96,117,0.25);
59
+ color: transparent;
60
+ text-shadow: rgba(255,255,255,0.5) 0 5px 6px;
61
+
62
+ font-family: Helvetica;
48
63
  }
@@ -47,7 +47,11 @@ module NiceAdminHelper
47
47
  when 'destroy'
48
48
  string << "<td>#{link_to "Delete", link_array, :method => :delete, :confirm => "Are you sure?"}</td>"
49
49
  else
50
- string << "<td>#{link_to link.to_s.humanize, link_array + [link]}</td>"
50
+ begin
51
+ string << "<td>#{link_to link.to_s.humanize, link_array + [link]}</td>"
52
+ rescue
53
+ string << "<td>#{link_to link.to_s.humanize, [link] + link_array }</td>"
54
+ end
51
55
  end
52
56
  end
53
57
 
@@ -57,7 +61,7 @@ module NiceAdminHelper
57
61
  "</tbody>
58
62
  </table>"
59
63
  else
60
- string << "<p>There are no #{model.klass.to_s.tableize.gsub('_', ' ')} to display</p>"
64
+ string << "<p class='blank_table_text'>There are no #{model.klass.to_s.tableize.gsub('_', ' ')} to display</p>"
61
65
  end
62
66
 
63
67
  begin
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nice_admin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alex Barlow
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-08 00:00:00 +01:00
13
+ date: 2011-07-12 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency