Skip to content

Commit

Permalink
SRCH-438, SRCH-431 - fix the css so magnifying glass glyphicon displa…
Browse files Browse the repository at this point in the history
…ys properly and sayt works on main pages (#247)

* SRCH-438-fix the css so magnifying glass glyphicon displays properly

* update symlink
  • Loading branch information
peggles2 authored Feb 27, 2019
1 parent 31bea97 commit cfef891
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

// Sprite icons path
// -------------------------
@iconSpritePath: asset-url('bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-url('bootstrap/glyphicons-halflings-white.png');
@iconSpritePath: 'bootstrap/glyphicons-halflings.png';
@iconWhiteSpritePath: 'bootstrap/glyphicons-halflings-white.png';

.icon {
display: inline-block;
Expand Down
13 changes: 6 additions & 7 deletions deploy/before_symlink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@
group 'www-data'
end

# Compiled assets always end with 32 hex characters.
# Bash sux and doesn't support [0-9a-f]{32}, and if
# you type [0-9a=f] 32 times you get "File name too long",
# so we'll match using any 32 characters. Meh.
TTHC = "?"*32

# Pre-compile assets. Also, a very small subset of the assets
# need to be available without digest fingerprints in their
# filenames - assets that live "in the wild" and can't be
# updated whenever our asset fingerprints change.
run <<COMPILE
cd #{release_path} && \
RAILS_ENV=#{rails_env} bundle exec rake assets:precompile
RAILS_ENV=#{rails_env} bundle exec rake assets:precompile && \
cd #{release_path}/public/assets && \
for js in sayt_loader_libs sayt_loader stats; do cp ${js}-*.js ${js}.js && cp ${js}-*.js.gz ${js}.js.gz; done && \
for css in sayt; do cp ${css}-*.css ${css}.css && cp ${css}-*.css.gz ${css}.css.gz; done && \
for png in bootstrap/glyphicons-halflings bootstrap/glyphicons-halflings-white; do cp ${png}-*.png ${png}.png; done && \
find . -type f -perm 600 | xargs --no-run-if-empty chmod 644
COMPILE

0 comments on commit cfef891

Please sign in to comment.