Commit 9bef8f36e6dd8cb9d216a527693c26bd4fb8672b
1 parent
e8cd0515
Exists in
master
and in
1 other branch
Added image preloading for issue tracker icons, since it looks bad when icons ta…
…ke a while to load after you click them.
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
app/views/apps/_issue_tracker_fields.html.haml
... | ... | @@ -74,3 +74,8 @@ |
74 | 74 | = w.label :password, 'Password' |
75 | 75 | = w.password_field :password, :placeholder => 'Password for your account' |
76 | 76 | |
77 | + .image_preloader | |
78 | + - %w(none github lighthouseapp redmine pivotal fogbugz mingle).each do |tracker| | |
79 | + = image_tag "#{tracker}_inactive.png" | |
80 | + = image_tag "#{tracker}_create.png" | |
81 | + | ... | ... |
public/stylesheets/application.css
... | ... | @@ -554,7 +554,6 @@ div.issue_tracker.nested label.r_on { |
554 | 554 | color: #191919; |
555 | 555 | } |
556 | 556 | |
557 | - | |
558 | 557 | /* Inactive icons */ |
559 | 558 | div.issue_tracker.nested label.none { background: url(/images/none_inactive.png) no-repeat; } |
560 | 559 | div.issue_tracker.nested label.redmine { background: url(/images/redmine_inactive.png) no-repeat; } |
... | ... | @@ -572,6 +571,9 @@ div.issue_tracker.nested label.r_on.fogbugz { background: url(/images/fogbugz_cr |
572 | 571 | div.issue_tracker.nested label.r_on.pivotal { background: url(/images/pivotal_create.png) no-repeat; } |
573 | 572 | div.issue_tracker.nested label.r_on.github { background: url(/images/github_create.png) no-repeat; } |
574 | 573 | |
574 | +/* Icons need to be preloaded, otherwise it looks bad */ | |
575 | +.image_preloader { display: none; } | |
576 | + | |
575 | 577 | /* Apps Table */ |
576 | 578 | table.apps tbody tr:hover td ,table.errs tbody tr:hover td { background-color: #F2F2F2;} |
577 | 579 | ... | ... |