admin_interface 1.4.1 → 1.4.2

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.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "admin_interface"
6
- spec.version = '1.4.1'
6
+ spec.version = '1.4.2'
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "A Rails admin interface generator. Theme stolen from Redmine."
9
9
  spec.email = "joost@joopp.com"
@@ -1,13 +1 @@
1
- # Configure Rails 3.1 to include assets.
2
- module AdminInterface
3
-
4
- class Engine < ::Rails::Engine
5
- # Load translations
6
- I18n.load_path += Dir.glob( File.expand_path("locales/*.{rb,yml}", File.dirname(__FILE__)) )
7
-
8
- # Load helpers
9
- # FIXME: Does this work correctly with __FILE__ instead of File.dirname(__FILE__)
10
- config.autoload_paths << File.expand_path("../../../app/helpers", __FILE__)
11
- end
12
-
13
- end
1
+ require 'admin_interface/engine'
@@ -0,0 +1,13 @@
1
+ # Configure Rails 3.1 to include assets.
2
+ module AdminInterface
3
+
4
+ class Engine < ::Rails::Engine
5
+ # Load translations
6
+ I18n.load_path += Dir.glob( File.expand_path("locales/*.{rb,yml}", File.dirname(__FILE__)) )
7
+
8
+ # Load helpers
9
+ # FIXME: Does this work correctly with __FILE__ instead of File.dirname(__FILE__)
10
+ config.autoload_paths << File.expand_path("../../../app/helpers", __FILE__)
11
+ end
12
+
13
+ end
@@ -18,12 +18,12 @@ div.input {
18
18
  }
19
19
 
20
20
  /***** Custom additions to Redmine *****/
21
- .icon-search { background-image: asset_url('admin/search.png', image); }
22
- .icon-download { background-image: asset_url('admin/download.png', image); }
23
- .icon-destroy { background-image: asset_url('admin/destroy.png', image); }
24
- .icon-document { background-image: asset_url('admin/document.png', image); }
25
- .icon-crop { background-image: asset_url('admin/crop.png', image); }
26
- .icon-mail { background-image: asset_url('admin/mail.png', image); }
21
+ .icon-search { background-image: image-url('admin/search.png'); }
22
+ .icon-download { background-image: image-url('admin/download.png'); }
23
+ .icon-destroy { background-image: image-url('admin/destroy.png'); }
24
+ .icon-document { background-image: image-url('admin/document.png'); }
25
+ .icon-crop { background-image: image-url('admin/crop.png'); }
26
+ .icon-mail { background-image: image-url('admin/mail.png'); }
27
27
 
28
28
  tfoot th {
29
29
  text-align: left;
@@ -31,7 +31,7 @@ tfoot th {
31
31
 
32
32
  /* Flash style, not only error class but also alert class (style either like warning or error) */
33
33
  div.flash.alert {
34
- background: asset_url('admin/warning.png', image) 8px 5px no-repeat;
34
+ background: image-url('admin/warning.png') 8px 5px no-repeat;
35
35
  background-color: #FFEBC1;
36
36
  border-color: #FDBF3B;
37
37
  color: #A6750C;
@@ -42,7 +42,7 @@ div.flash.alert {
42
42
 
43
43
  /*
44
44
  * The application needs to be above the theme css (it is overwritten).
45
- * The 'asset_url('admin/' has been replaced by 'asset_url('admin/'.
45
+ * The 'image-url('admin/' has been replaced by 'image-url('admin/'.
46
46
  *
47
47
  */
48
48
 
@@ -101,19 +101,19 @@ h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; bord
101
101
  #admin-menu li {margin: 0; padding: 0 0 12px 0; list-style-type:none;}
102
102
 
103
103
  #admin-menu a { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; padding-top: 2px; padding-bottom: 3px;}
104
- #admin-menu a.projects { background-image: asset_url('admin/projects.png', image); }
105
- #admin-menu a.users { background-image: asset_url('admin/user.png', image); }
106
- #admin-menu a.groups { background-image: asset_url('admin/group.png', image); }
107
- #admin-menu a.roles { background-image: asset_url('admin/database_key.png', image); }
108
- #admin-menu a.trackers { background-image: asset_url('admin/ticket.png', image); }
109
- #admin-menu a.issue_statuses { background-image: asset_url('admin/ticket_edit.png', image); }
110
- #admin-menu a.workflows { background-image: asset_url('admin/ticket_go.png', image); }
111
- #admin-menu a.custom_fields { background-image: asset_url('admin/textfield.png', image); }
112
- #admin-menu a.enumerations { background-image: asset_url('admin/text_list_bullets.png', image); }
113
- #admin-menu a.settings { background-image: asset_url('admin/changeset.png', image); }
114
- #admin-menu a.plugins { background-image: asset_url('admin/plugin.png', image); }
115
- #admin-menu a.info { background-image: asset_url('admin/help.png', image); }
116
- #admin-menu a.server_authentication { background-image: asset_url('admin/server_key.png', image); }
104
+ #admin-menu a.projects { background-image: image-url('admin/projects.png'); }
105
+ #admin-menu a.users { background-image: image-url('admin/user.png'); }
106
+ #admin-menu a.groups { background-image: image-url('admin/group.png'); }
107
+ #admin-menu a.roles { background-image: image-url('admin/database_key.png'); }
108
+ #admin-menu a.trackers { background-image: image-url('admin/ticket.png'); }
109
+ #admin-menu a.issue_statuses { background-image: image-url('admin/ticket_edit.png'); }
110
+ #admin-menu a.workflows { background-image: image-url('admin/ticket_go.png'); }
111
+ #admin-menu a.custom_fields { background-image: image-url('admin/textfield.png'); }
112
+ #admin-menu a.enumerations { background-image: image-url('admin/text_list_bullets.png'); }
113
+ #admin-menu a.settings { background-image: image-url('admin/changeset.png'); }
114
+ #admin-menu a.plugins { background-image: image-url('admin/plugin.png'); }
115
+ #admin-menu a.info { background-image: image-url('admin/help.png'); }
116
+ #admin-menu a.server_authentication { background-image: image-url('admin/server_key.png'); }
117
117
 
118
118
  #main {background-color:#EEEEEE;}
119
119
 
@@ -139,7 +139,7 @@ html>body #content { min-height: 600px; }
139
139
  #login-form label {font-weight: bold;}
140
140
  #login-form input#username, #login-form input#password { width: 300px; }
141
141
 
142
- input#openid_url { background: asset_url('admin/openid-bg.gif', image) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; }
142
+ input#openid_url { background: image-url('admin/openid-bg.gif') no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; }
143
143
 
144
144
  .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
145
145
 
@@ -162,7 +162,7 @@ table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
162
162
 
163
163
  tr.project td.name a { white-space:nowrap; }
164
164
 
165
- tr.project.idnt td.name span {background: asset_url('admin/bullet_arrow_right.png', image) no-repeat 0 50%; padding-left: 16px;}
165
+ tr.project.idnt td.name span {background: image-url('admin/bullet_arrow_right.png') no-repeat 0 50%; padding-left: 16px;}
166
166
  tr.project.idnt-1 td.name {padding-left: 0.5em;}
167
167
  tr.project.idnt-2 td.name {padding-left: 2em;}
168
168
  tr.project.idnt-3 td.name {padding-left: 3.5em;}
@@ -178,7 +178,7 @@ tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal;
178
178
  tr.issue td.subject { text-align: left; }
179
179
  tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
180
180
 
181
- tr.issue.idnt td.subject a {background: asset_url('admin/bullet_arrow_right.png', image) no-repeat 0 50%; padding-left: 16px;}
181
+ tr.issue.idnt td.subject a {background: image-url('admin/bullet_arrow_right.png') no-repeat 0 50%; padding-left: 16px;}
182
182
  tr.issue.idnt-1 td.subject {padding-left: 0.5em;}
183
183
  tr.issue.idnt-2 td.subject {padding-left: 2em;}
184
184
  tr.issue.idnt-3 td.subject {padding-left: 3.5em;}
@@ -197,8 +197,8 @@ tr.entry td.revision, tr.entry td.author { text-align: center; }
197
197
  tr.entry td.age { text-align: right; }
198
198
  tr.entry.file td.filename a { margin-left: 16px; }
199
199
 
200
- tr span.expander {background-image: asset_url('admin/bullet_toggle_plus.png', image); padding-left: 8px; margin-left: 0; cursor: pointer;}
201
- tr.open span.expander {background-image: asset_url('admin/bullet_toggle_minus.png', image);}
200
+ tr span.expander {background-image: image-url('admin/bullet_toggle_plus.png'); padding-left: 8px; margin-left: 0; cursor: pointer;}
201
+ tr.open span.expander {background-image: image-url('admin/bullet_toggle_minus.png');}
202
202
 
203
203
  tr.changeset td.author { text-align: center; width: 15%; }
204
204
  tr.changeset td.committed_on { text-align: center; width: 15%; }
@@ -213,12 +213,12 @@ tr.message { height: 2.6em; }
213
213
  tr.message td.subject { padding-left: 20px; }
214
214
  tr.message td.created_on { white-space: nowrap; }
215
215
  tr.message td.last_message { font-size: 80%; white-space: nowrap; }
216
- tr.message.locked td.subject { background: asset_url('admin/locked.png', image) no-repeat 0 1px; }
217
- tr.message.sticky td.subject { background: asset_url('admin/bullet_go.png', image) no-repeat 0 1px; font-weight: bold; }
216
+ tr.message.locked td.subject { background: image-url('admin/locked.png') no-repeat 0 1px; }
217
+ tr.message.sticky td.subject { background: image-url('admin/bullet_go.png') no-repeat 0 1px; font-weight: bold; }
218
218
 
219
219
  tr.version.closed, tr.version.closed a { color: #999; }
220
220
  tr.version td.name { padding-left: 20px; }
221
- tr.version.shared td.name { background: asset_url('admin/link.png', image) no-repeat 0% 70%; }
221
+ tr.version.shared td.name { background: image-url('admin/link.png') no-repeat 0% 70%; }
222
222
  tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; }
223
223
 
224
224
  tr.user td { width:13%; }
@@ -251,23 +251,23 @@ table p {margin:0;}
251
251
  .even {background-color: #fff;}
252
252
 
253
253
  a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; }
254
- a.sort.asc { background-image: asset_url('admin/sort_asc.png', image); }
255
- a.sort.desc { background-image: asset_url('admin/sort_desc.png', image); }
254
+ a.sort.asc { background-image: image-url('admin/sort_asc.png'); }
255
+ a.sort.desc { background-image: image-url('admin/sort_desc.png'); }
256
256
 
257
257
  table.attributes { width: 100% }
258
258
  table.attributes th { vertical-align: top; text-align: left; }
259
259
  table.attributes td { vertical-align: top; }
260
260
 
261
- table.boards a.board, h3.comments { background: asset_url('admin/comment.png', image) no-repeat 0% 50%; padding-left: 20px; }
261
+ table.boards a.board, h3.comments { background: image-url('admin/comment.png') no-repeat 0% 50%; padding-left: 20px; }
262
262
 
263
263
  td.center {text-align:center;}
264
264
 
265
- h3.version { background: asset_url('admin/package.png', image) no-repeat 0% 50%; padding-left: 20px; }
265
+ h3.version { background: image-url('admin/package.png') no-repeat 0% 50%; padding-left: 20px; }
266
266
 
267
- div.issues h3 { background: asset_url('admin/ticket.png', image) no-repeat 0% 50%; padding-left: 20px; }
268
- div.members h3 { background: asset_url('admin/group.png', image) no-repeat 0% 50%; padding-left: 20px; }
269
- div.news h3 { background: asset_url('admin/news.png', image) no-repeat 0% 50%; padding-left: 20px; }
270
- div.projects h3 { background: asset_url('admin/projects.png', image) no-repeat 0% 50%; padding-left: 20px; }
267
+ div.issues h3 { background: image-url('admin/ticket.png') no-repeat 0% 50%; padding-left: 20px; }
268
+ div.members h3 { background: image-url('admin/group.png') no-repeat 0% 50%; padding-left: 20px; }
269
+ div.news h3 { background: image-url('admin/news.png') no-repeat 0% 50%; padding-left: 20px; }
270
+ div.projects h3 { background: image-url('admin/projects.png') no-repeat 0% 50%; padding-left: 20px; }
271
271
 
272
272
  #watchers ul {margin: 0; padding: 0;}
273
273
  #watchers li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
@@ -327,8 +327,8 @@ div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
327
327
  #issue_tree td.checkbox {display:none;}
328
328
 
329
329
  fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
330
- fieldset.collapsible legend { padding-left: 16px; background: asset_url('admin/arrow_expanded.png', image) no-repeat 0% 40%; cursor:pointer; }
331
- fieldset.collapsible.collapsed legend { background-image: asset_url('admin/arrow_collapsed.png', image); }
330
+ fieldset.collapsible legend { padding-left: 16px; background: image-url('admin/arrow_expanded.png') no-repeat 0% 40%; cursor:pointer; }
331
+ fieldset.collapsible.collapsed legend { background-image: image-url('admin/arrow_collapsed.png'); }
332
332
 
333
333
  fieldset#date-range p { margin: 2px 0 2px 0; }
334
334
  fieldset#filters table { border-collapse: collapse; }
@@ -357,21 +357,21 @@ div#search-results-counts {float:right;}
357
357
  div#search-results-counts ul { margin-top: 0.5em; }
358
358
  div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; }
359
359
 
360
- dt.issue { background-image: asset_url('admin/ticket.png', image); }
361
- dt.issue-edit { background-image: asset_url('admin/ticket_edit.png', image); }
362
- dt.issue-closed { background-image: asset_url('admin/ticket_checked.png', image); }
363
- dt.issue-note { background-image: asset_url('admin/ticket_note.png', image); }
364
- dt.changeset { background-image: asset_url('admin/changeset.png', image); }
365
- dt.news { background-image: asset_url('admin/news.png', image); }
366
- dt.message { background-image: asset_url('admin/message.png', image); }
367
- dt.reply { background-image: asset_url('admin/comments.png', image); }
368
- dt.wiki-page { background-image: asset_url('admin/wiki_edit.png', image); }
369
- dt.attachment { background-image: asset_url('admin/attachment.png', image); }
370
- dt.document { background-image: asset_url('admin/document.png', image); }
371
- dt.project { background-image: asset_url('admin/projects.png', image); }
372
- dt.time-entry { background-image: asset_url('admin/time.png', image); }
373
-
374
- #search-results dt.issue.closed { background-image: asset_url('admin/ticket_checked.png', image); }
360
+ dt.issue { background-image: image-url('admin/ticket.png'); }
361
+ dt.issue-edit { background-image: image-url('admin/ticket_edit.png'); }
362
+ dt.issue-closed { background-image: image-url('admin/ticket_checked.png'); }
363
+ dt.issue-note { background-image: image-url('admin/ticket_note.png'); }
364
+ dt.changeset { background-image: image-url('admin/changeset.png'); }
365
+ dt.news { background-image: image-url('admin/news.png'); }
366
+ dt.message { background-image: image-url('admin/message.png'); }
367
+ dt.reply { background-image: image-url('admin/comments.png'); }
368
+ dt.wiki-page { background-image: image-url('admin/wiki_edit.png'); }
369
+ dt.attachment { background-image: image-url('admin/attachment.png'); }
370
+ dt.document { background-image: image-url('admin/document.png'); }
371
+ dt.project { background-image: image-url('admin/projects.png'); }
372
+ dt.time-entry { background-image: image-url('admin/time.png'); }
373
+
374
+ #search-results dt.issue.closed { background-image: image-url('admin/ticket_checked.png'); }
375
375
 
376
376
  div#roadmap .related-issues { margin-bottom: 1em; }
377
377
  div#roadmap .related-issues td.checkbox { display: none; }
@@ -399,7 +399,7 @@ ul.projects ul.projects { border-left: 3px solid #e0e0e0; }
399
399
  ul.projects li.root { list-style-type:none; margin-bottom: 1em; }
400
400
  ul.projects li.child { list-style-type:none; margin-top: 1em;}
401
401
  ul.projects div.root a.project { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; }
402
- .my-project { padding-left: 18px; background: asset_url('admin/fav.png', image) no-repeat 0 50%; }
402
+ .my-project { padding-left: 18px; background: image-url('admin/fav.png') no-repeat 0 50%; }
403
403
 
404
404
  #tracker_project_ids ul { margin: 0; padding-left: 1em; }
405
405
  #tracker_project_ids li { list-style-type:none; }
@@ -465,7 +465,7 @@ width: auto;
465
465
 
466
466
  input#time_entry_comments { width: 90%;}
467
467
 
468
- #preview fieldset {margin-top: 1em; background: asset_url('admin/draft.png', image)}
468
+ #preview fieldset {margin-top: 1em; background: image-url('admin/draft.png')}
469
469
 
470
470
  .tabular.settings p{ padding-left: 300px; }
471
471
  .tabular.settings label{ margin-left: -300px; width: 295px; }
@@ -487,7 +487,7 @@ div.attachments span.author { font-size: 0.9em; color: #888; }
487
487
  p.other-formats { text-align: right; font-size:0.9em; color: #666; }
488
488
  .other-formats span + span:before { content: "| "; }
489
489
 
490
- a.atom { background: asset_url('admin/feed.png', image) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
490
+ a.atom { background: image-url('admin/feed.png') no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
491
491
 
492
492
  /* Project members tab */
493
493
  div#tab-content-members .splitcontentleft, div#tab-content-memberships .splitcontentleft, div#tab-content-users .splitcontentleft { width: 64% }
@@ -497,7 +497,7 @@ div#tab-content-members fieldset legend, div#tab-content-memberships fieldset le
497
497
  div#tab-content-members fieldset label, div#tab-content-memberships fieldset label, div#tab-content-users fieldset label { display: block; }
498
498
  div#tab-content-members fieldset div, div#tab-content-users fieldset div { max-height: 400px; overflow:auto; }
499
499
 
500
- table.members td.group { padding-left: 20px; background: asset_url('admin/group.png', image) no-repeat 0% 50%; }
500
+ table.members td.group { padding-left: 20px; background: image-url('admin/group.png') no-repeat 0% 50%; }
501
501
 
502
502
  input#principal_search, input#user_search {width:100%}
503
503
 
@@ -514,21 +514,21 @@ input#principal_search, input#user_search {width:100%}
514
514
  div.flash {margin-top: 8px;}
515
515
 
516
516
  div.flash.error, #errorExplanation {
517
- background: asset_url('admin/exclamation.png', image) 8px 50% no-repeat;
517
+ background: image-url('admin/exclamation.png') 8px 50% no-repeat;
518
518
  background-color: #ffe3e3;
519
519
  border-color: #dd0000;
520
520
  color: #880000;
521
521
  }
522
522
 
523
523
  div.flash.notice {
524
- background: asset_url('admin/true.png', image) 8px 5px no-repeat;
524
+ background: image-url('admin/true.png') 8px 5px no-repeat;
525
525
  background-color: #dfffdf;
526
526
  border-color: #9fcf9f;
527
527
  color: #005f00;
528
528
  }
529
529
 
530
530
  div.flash.warning {
531
- background: asset_url('admin/warning.png', image) 8px 5px no-repeat;
531
+ background: image-url('admin/warning.png') 8px 5px no-repeat;
532
532
  background-color: #FFEBC1;
533
533
  border-color: #FDBF3B;
534
534
  color: #A6750C;
@@ -566,7 +566,7 @@ html>body #ajax-indicator { position: fixed; }
566
566
  #ajax-indicator span {
567
567
  background-position: 0% 40%;
568
568
  background-repeat: no-repeat;
569
- background-image: asset_url('admin/loading.gif', image);
569
+ background-image: image-url('admin/loading.gif');
570
570
  padding-left: 26px;
571
571
  vertical-align: bottom;
572
572
  }
@@ -582,9 +582,9 @@ table.cal td p.day-num {font-size: 1.1em; text-align:right;}
582
582
  table.cal td.odd p.day-num {color: #bbb;}
583
583
  table.cal td.today {background:#ffffdd;}
584
584
  table.cal td.today p.day-num {font-weight: bold;}
585
- table.cal .starting a, p.cal.legend .starting {background: asset_url('admin/bullet_go.png', image) no-repeat -1px -2px; padding-left:16px;}
586
- table.cal .ending a, p.cal.legend .ending {background: asset_url('admin/bullet_end.png', image) no-repeat -1px -2px; padding-left:16px;}
587
- table.cal .starting.ending a, p.cal.legend .starting.ending {background: asset_url('admin/bullet_diamond.png', image) no-repeat -1px -2px; padding-left:16px;}
585
+ table.cal .starting a, p.cal.legend .starting {background: image-url('admin/bullet_go.png') no-repeat -1px -2px; padding-left:16px;}
586
+ table.cal .ending a, p.cal.legend .ending {background: image-url('admin/bullet_end.png') no-repeat -1px -2px; padding-left:16px;}
587
+ table.cal .starting.ending a, p.cal.legend .starting.ending {background: image-url('admin/bullet_diamond.png') no-repeat -1px -2px; padding-left:16px;}
588
588
  p.cal.legend span {display:block;}
589
589
 
590
590
  /***** Tooltips ******/
@@ -677,12 +677,12 @@ button.tab-left, button.tab-right {
677
677
 
678
678
  button.tab-left {
679
679
  right: 20px;
680
- background: #eeeeee asset_url('admin/bullet_arrow_left.png', image) no-repeat 50% 50%;
680
+ background: #eeeeee image-url('admin/bullet_arrow_left.png') no-repeat 50% 50%;
681
681
  }
682
682
 
683
683
  button.tab-right {
684
684
  right: 0;
685
- background: #eeeeee asset_url('admin/bullet_arrow_right.png', image) no-repeat 50% 50%;
685
+ background: #eeeeee image-url('admin/bullet_arrow_right.png') no-repeat 50% 50%;
686
686
  }
687
687
 
688
688
  /***** Auto-complete *****/
@@ -738,7 +738,7 @@ div.wiki .external {
738
738
  background-position: 0% 60%;
739
739
  background-repeat: no-repeat;
740
740
  padding-left: 12px;
741
- background-image: asset_url('admin/external.png', image);
741
+ background-image: image-url('admin/external.png');
742
742
  }
743
743
 
744
744
  div.wiki a.new {
@@ -813,11 +813,11 @@ width:12px;
813
813
  height:12px;
814
814
  background-repeat: no-repeat;
815
815
  cursor:pointer;
816
- background-image:asset_url('admin/close.png', image);
816
+ background-image:image-url('admin/close.png');
817
817
  }
818
818
 
819
819
  a.close-icon:hover {
820
- background-image:asset_url('admin/close_hl.png', image);
820
+ background-image:image-url('admin/close_hl.png');
821
821
  }
822
822
 
823
823
  /***** Gantt chart *****/
@@ -849,24 +849,24 @@ background-image:asset_url('admin/close_hl.png', image);
849
849
  .task.label {width:100%;}
850
850
  .task.label.project, .task.label.version { font-weight: bold; }
851
851
 
852
- .task_late { background:#f66 asset_url('admin/task_late.png', image); border: 1px solid #f66; }
853
- .task_done { background:#00c600 asset_url('admin/task_done.png', image); border: 1px solid #00c600; }
854
- .task_todo { background:#aaa asset_url('admin/task_todo.png', image); border: 1px solid #aaa; }
852
+ .task_late { background:#f66 image-url('admin/task_late.png'); border: 1px solid #f66; }
853
+ .task_done { background:#00c600 image-url('admin/task_done.png'); border: 1px solid #00c600; }
854
+ .task_todo { background:#aaa image-url('admin/task_todo.png'); border: 1px solid #aaa; }
855
855
 
856
856
  .task_todo.parent { background: #888; border: 1px solid #888; height: 3px;}
857
857
  .task_late.parent, .task_done.parent { height: 3px;}
858
- .task.parent.marker.starting { position: absolute; background: asset_url('admin/task_parent_end.png', image) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; left: 0px; top: -1px;}
859
- .task.parent.marker.ending { position: absolute; background: asset_url('admin/task_parent_end.png', image) no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; right: 0px; top: -1px;}
858
+ .task.parent.marker.starting { position: absolute; background: image-url('admin/task_parent_end.png') no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; left: 0px; top: -1px;}
859
+ .task.parent.marker.ending { position: absolute; background: image-url('admin/task_parent_end.png') no-repeat 0 0; width: 8px; height: 16px; margin-left: -4px; right: 0px; top: -1px;}
860
860
 
861
- .version.task_late { background:#f66 asset_url('admin/milestone_late.png', image); border: 1px solid #f66; height: 2px; margin-top: 3px;}
862
- .version.task_done { background:#00c600 asset_url('admin/milestone_done.png', image); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
863
- .version.task_todo { background:#fff asset_url('admin/milestone_todo.png', image); border: 1px solid #fff; height: 2px; margin-top: 3px;}
864
- .version.marker { background-image:asset_url('admin/version_marker.png', image); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
861
+ .version.task_late { background:#f66 image-url('admin/milestone_late.png'); border: 1px solid #f66; height: 2px; margin-top: 3px;}
862
+ .version.task_done { background:#00c600 image-url('admin/milestone_done.png'); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
863
+ .version.task_todo { background:#fff image-url('admin/milestone_todo.png'); border: 1px solid #fff; height: 2px; margin-top: 3px;}
864
+ .version.marker { background-image:image-url('admin/version_marker.png'); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
865
865
 
866
- .project.task_late { background:#f66 asset_url('admin/milestone_late.png', image); border: 1px solid #f66; height: 2px; margin-top: 3px;}
867
- .project.task_done { background:#00c600 asset_url('admin/milestone_done.png', image); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
868
- .project.task_todo { background:#fff asset_url('admin/milestone_todo.png', image); border: 1px solid #fff; height: 2px; margin-top: 3px;}
869
- .project.marker { background-image:asset_url('admin/project_marker.png', image); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
866
+ .project.task_late { background:#f66 image-url('admin/milestone_late.png'); border: 1px solid #f66; height: 2px; margin-top: 3px;}
867
+ .project.task_done { background:#00c600 image-url('admin/milestone_done.png'); border: 1px solid #00c600; height: 2px; margin-top: 3px;}
868
+ .project.task_todo { background:#fff image-url('admin/milestone_todo.png'); border: 1px solid #fff; height: 2px; margin-top: 3px;}
869
+ .project.marker { background-image:image-url('admin/project_marker.png'); background-repeat: no-repeat; border: 0; margin-left: -4px; margin-top: 1px; }
870
870
 
871
871
  .version-behind-schedule a, .issue-behind-schedule a {color: #f66914;}
872
872
  .version-overdue a, .issue-overdue a, .project-overdue a {color: #f00;}
@@ -880,62 +880,62 @@ padding-top: 2px;
880
880
  padding-bottom: 3px;
881
881
  }
882
882
 
883
- .icon-add { background-image: asset_url('admin/add.png', image); }
884
- .icon-edit { background-image: asset_url('admin/edit.png', image); }
885
- .icon-copy { background-image: asset_url('admin/copy.png', image); }
886
- .icon-duplicate { background-image: asset_url('admin/duplicate.png', image); }
887
- .icon-del { background-image: asset_url('admin/delete.png', image); }
888
- .icon-move { background-image: asset_url('admin/move.png', image); }
889
- .icon-save { background-image: asset_url('admin/save.png', image); }
890
- .icon-cancel { background-image: asset_url('admin/cancel.png', image); }
891
- .icon-multiple { background-image: asset_url('admin/table_multiple.png', image); }
892
- .icon-folder { background-image: asset_url('admin/folder.png', image); }
893
- .open .icon-folder { background-image: asset_url('admin/folder_open.png', image); }
894
- .icon-package { background-image: asset_url('admin/package.png', image); }
895
- .icon-home { background-image: asset_url('admin/home.png', image); }
896
- .icon-user { background-image: asset_url('admin/user.png', image); }
897
- .icon-user-go { background-image: asset_url('admin/user_go.png', image); }
898
- .icon-projects { background-image: asset_url('admin/projects.png', image); }
899
- .icon-help { background-image: asset_url('admin/help.png', image); }
900
- .icon-attachment { background-image: asset_url('admin/attachment.png', image); }
901
- .icon-history { background-image: asset_url('admin/history.png', image); }
902
- .icon-time { background-image: asset_url('admin/time.png', image); }
903
- .icon-time-add { background-image: asset_url('admin/time_add.png', image); }
904
- .icon-stats { background-image: asset_url('admin/stats.png', image); }
905
- .icon-warning { background-image: asset_url('admin/warning.png', image); }
906
- .icon-fav { background-image: asset_url('admin/fav.png', image); }
907
- .icon-fav-off { background-image: asset_url('admin/fav_off.png', image); }
908
- .icon-reload { background-image: asset_url('admin/reload.png', image); }
909
- .icon-lock { background-image: asset_url('admin/locked.png', image); }
910
- .icon-unlock { background-image: asset_url('admin/unlock.png', image); }
911
- .icon-checked { background-image: asset_url('admin/true.png', image); }
912
- .icon-details { background-image: asset_url('admin/zoom_in.png', image); }
913
- .icon-report { background-image: asset_url('admin/report.png', image); }
914
- .icon-comment { background-image: asset_url('admin/comment.png', image); }
915
- .icon-summary { background-image: asset_url('admin/lightning.png', image); }
916
- .icon-server-authentication { background-image: asset_url('admin/server_key.png', image); }
917
- .icon-issue { background-image: asset_url('admin/ticket.png', image); }
918
- .icon-zoom-in { background-image: asset_url('admin/zoom_in.png', image); }
919
- .icon-zoom-out { background-image: asset_url('admin/zoom_out.png', image); }
920
- .icon-changeset { background-image: asset_url('admin/changeset.png', image); }
921
- .icon-call { background-image: asset_url('admin/call.gif', image); }
922
- .icon-call-in { background-image: asset_url('admin/call_in.png', image); }
923
- .icon-call-out { background-image: asset_url('admin/call_out.png', image); }
924
-
925
- .icon-file { background-image: asset_url('admin/files/default.png', image); }
926
- .icon-file.text-plain { background-image: asset_url('admin/files/text.png', image); }
927
- .icon-file.text-x-c { background-image: asset_url('admin/files/c.png', image); }
928
- .icon-file.text-x-csharp { background-image: asset_url('admin/files/csharp.png', image); }
929
- .icon-file.text-x-php { background-image: asset_url('admin/files/php.png', image); }
930
- .icon-file.text-x-ruby { background-image: asset_url('admin/files/ruby.png', image); }
931
- .icon-file.text-xml { background-image: asset_url('admin/files/xml.png', image); }
932
- .icon-file.image-gif { background-image: asset_url('admin/files/image.png', image); }
933
- .icon-file.image-jpeg { background-image: asset_url('admin/files/image.png', image); }
934
- .icon-file.image-png { background-image: asset_url('admin/files/image.png', image); }
935
- .icon-file.image-tiff { background-image: asset_url('admin/files/image.png', image); }
936
- .icon-file.application-pdf { background-image: asset_url('admin/files/pdf.png', image); }
937
- .icon-file.application-zip { background-image: asset_url('admin/files/zip.png', image); }
938
- .icon-file.application-x-gzip { background-image: asset_url('admin/files/zip.png', image); }
883
+ .icon-add { background-image: image-url('admin/add.png'); }
884
+ .icon-edit { background-image: image-url('admin/edit.png'); }
885
+ .icon-copy { background-image: image-url('admin/copy.png'); }
886
+ .icon-duplicate { background-image: image-url('admin/duplicate.png'); }
887
+ .icon-del { background-image: image-url('admin/delete.png'); }
888
+ .icon-move { background-image: image-url('admin/move.png'); }
889
+ .icon-save { background-image: image-url('admin/save.png'); }
890
+ .icon-cancel { background-image: image-url('admin/cancel.png'); }
891
+ .icon-multiple { background-image: image-url('admin/table_multiple.png'); }
892
+ .icon-folder { background-image: image-url('admin/folder.png'); }
893
+ .open .icon-folder { background-image: image-url('admin/folder_open.png'); }
894
+ .icon-package { background-image: image-url('admin/package.png'); }
895
+ .icon-home { background-image: image-url('admin/home.png'); }
896
+ .icon-user { background-image: image-url('admin/user.png'); }
897
+ .icon-user-go { background-image: image-url('admin/user_go.png'); }
898
+ .icon-projects { background-image: image-url('admin/projects.png'); }
899
+ .icon-help { background-image: image-url('admin/help.png'); }
900
+ .icon-attachment { background-image: image-url('admin/attachment.png'); }
901
+ .icon-history { background-image: image-url('admin/history.png'); }
902
+ .icon-time { background-image: image-url('admin/time.png'); }
903
+ .icon-time-add { background-image: image-url('admin/time_add.png'); }
904
+ .icon-stats { background-image: image-url('admin/stats.png'); }
905
+ .icon-warning { background-image: image-url('admin/warning.png'); }
906
+ .icon-fav { background-image: image-url('admin/fav.png'); }
907
+ .icon-fav-off { background-image: image-url('admin/fav_off.png'); }
908
+ .icon-reload { background-image: image-url('admin/reload.png'); }
909
+ .icon-lock { background-image: image-url('admin/locked.png'); }
910
+ .icon-unlock { background-image: image-url('admin/unlock.png'); }
911
+ .icon-checked { background-image: image-url('admin/true.png'); }
912
+ .icon-details { background-image: image-url('admin/zoom_in.png'); }
913
+ .icon-report { background-image: image-url('admin/report.png'); }
914
+ .icon-comment { background-image: image-url('admin/comment.png'); }
915
+ .icon-summary { background-image: image-url('admin/lightning.png'); }
916
+ .icon-server-authentication { background-image: image-url('admin/server_key.png'); }
917
+ .icon-issue { background-image: image-url('admin/ticket.png'); }
918
+ .icon-zoom-in { background-image: image-url('admin/zoom_in.png'); }
919
+ .icon-zoom-out { background-image: image-url('admin/zoom_out.png'); }
920
+ .icon-changeset { background-image: image-url('admin/changeset.png'); }
921
+ .icon-call { background-image: image-url('admin/call.gif'); }
922
+ .icon-call-in { background-image: image-url('admin/call_in.png'); }
923
+ .icon-call-out { background-image: image-url('admin/call_out.png'); }
924
+
925
+ .icon-file { background-image: image-url('admin/files/default.png'); }
926
+ .icon-file.text-plain { background-image: image-url('admin/files/text.png'); }
927
+ .icon-file.text-x-c { background-image: image-url('admin/files/c.png'); }
928
+ .icon-file.text-x-csharp { background-image: image-url('admin/files/csharp.png'); }
929
+ .icon-file.text-x-php { background-image: image-url('admin/files/php.png'); }
930
+ .icon-file.text-x-ruby { background-image: image-url('admin/files/ruby.png'); }
931
+ .icon-file.text-xml { background-image: image-url('admin/files/xml.png'); }
932
+ .icon-file.image-gif { background-image: image-url('admin/files/image.png'); }
933
+ .icon-file.image-jpeg { background-image: image-url('admin/files/image.png'); }
934
+ .icon-file.image-png { background-image: image-url('admin/files/image.png'); }
935
+ .icon-file.image-tiff { background-image: image-url('admin/files/image.png'); }
936
+ .icon-file.application-pdf { background-image: image-url('admin/files/pdf.png'); }
937
+ .icon-file.application-zip { background-image: image-url('admin/files/zip.png'); }
938
+ .icon-file.application-x-gzip { background-image: image-url('admin/files/zip.png'); }
939
939
 
940
940
  img.gravatar {
941
941
  padding: 2px;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-08 00:00:00.000000000Z
12
+ date: 2012-02-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kaminari
16
- requirement: &70111143901980 !ruby/object:Gem::Requirement
16
+ requirement: &70142261643580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.12.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70111143901980
24
+ version_requirements: *70142261643580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ransack
27
- requirement: &70111143901580 !ruby/object:Gem::Requirement
27
+ requirement: &70142261643180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70111143901580
35
+ version_requirements: *70142261643180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: inherited_resources
38
- requirement: &70111143901040 !ruby/object:Gem::Requirement
38
+ requirement: &70142261642640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 1.2.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70111143901040
46
+ version_requirements: *70142261642640
47
47
  description: A Rails admin interface generator. Theme stolen from Redmine. Similar
48
48
  to web-app-theme but better ;).
49
49
  email: joost@joopp.com
@@ -57,6 +57,7 @@ files:
57
57
  - app/helpers/admin/base_helper.rb
58
58
  - doc/screenshot.png
59
59
  - lib/admin_interface.rb
60
+ - lib/admin_interface/engine.rb
60
61
  - lib/generators/admin_interface/USAGE
61
62
  - lib/generators/admin_interface/admin_interface_generator.rb
62
63
  - lib/generators/admin_interface/templates/INSTALL