-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from alphagov/fix-browser-config-and-manifest
Move browserconfig.xml and manifest.json to actions
- Loading branch information
Showing
8 changed files
with
80 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,13 @@ def index | |
|
||
def help | ||
end | ||
|
||
def privacy | ||
end | ||
|
||
def browserconfig | ||
end | ||
|
||
def manifest | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cache :browserconfig, expires_in: 5.minutes do | ||
xml.instruct! :xml, version: "1.0" | ||
xml.browserconfig do | ||
xml.msapplication do | ||
xml.tile do | ||
xml.square70x70logo src: path_to_image('os-social/windows/tiny.png') | ||
xml.square150x150logo src: path_to_image('os-social/windows/square.png') | ||
xml.wide310x150logo src: path_to_image('os-social/windows/wide.png') | ||
xml.square310x310logo src: path_to_image('os-social/windows/large.png') | ||
xml.TileColor "#008800" | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
json.cache! :manifest, expires_in: 5.minutes do | ||
json.name "Petitions" | ||
json.display "standalone" | ||
json.orientation "portrait" | ||
json.start_url "/" | ||
|
||
json.icons do | ||
json.child! do | ||
json.src path_to_image("os-social/android/launcher-icon-0-75x.png") | ||
json.sizes "36x36" | ||
json.type "image/png" | ||
json.density "0.75" | ||
end | ||
|
||
json.child! do | ||
json.src path_to_image("os-social/android/launcher-icon-1x.png") | ||
json.sizes "48x48" | ||
json.type "image/png" | ||
json.density "1.0" | ||
end | ||
|
||
json.child! do | ||
json.src path_to_image("os-social/android/launcher-icon-1-5x.png") | ||
json.sizes "72x72" | ||
json.type "image/png" | ||
json.density "1.5" | ||
end | ||
|
||
json.child! do | ||
json.src path_to_image("os-social/android/launcher-icon-2x.png") | ||
json.sizes "96x96" | ||
json.type "image/png" | ||
json.density "2.0" | ||
end | ||
|
||
json.child! do | ||
json.src path_to_image("os-social/android/launcher-icon-3x.png") | ||
json.sizes "144x144" | ||
json.type "image/png" | ||
json.density "3.0" | ||
end | ||
|
||
json.child! do | ||
json.src path_to_image("os-social/android/launcher-icon-4x.png") | ||
json.sizes "192x192" | ||
json.type "image/png" | ||
json.density "4.0" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.