Skip to content

Commit

Permalink
Add all_gray.png for background images
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Sep 22, 2020
1 parent c900c6c commit aee654b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Binary file modified app/images/all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/all_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/source/avatars.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def initialize
jpg_response(names[n])
end
@image_all = png_response('all')
@image_all_gray = png_response('all_gray')
end

def sha
Expand All @@ -38,6 +39,8 @@ def names
def image(n)
if n === :all
@image_all
elsif n === :all_gray
@image_all_gray
else
@image_responses[n]
end
Expand Down
4 changes: 2 additions & 2 deletions app/source/http_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def get(path)
private

def id(s)
if s === 'all'
return :all
if s === 'all' || s === 'all_gray'
return s.to_sym
end
if s === ''
raise missing('id')
Expand Down

0 comments on commit aee654b

Please sign in to comment.