diff options
author | Scott Main <smain@google.com> | 2011-05-27 09:52:19 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2011-05-27 10:15:59 -0700 |
commit | 17e47ad58fff666275b6cbc490e1b3562af0ed19 (patch) | |
tree | 103da239887ee1a7656707f41a5e7ae7b32e2b42 /tools/droiddoc/templates-sdk/sdkpage.cs | |
parent | 9d27a153f714a312f844a35a0140e3fb1752f4e8 (diff) | |
download | build-17e47ad58fff666275b6cbc490e1b3562af0ed19.zip build-17e47ad58fff666275b6cbc490e1b3562af0ed19.tar.gz build-17e47ad58fff666275b6cbc490e1b3562af0ed19.tar.bz2 |
docs: adjust sdk page to show/hide messages based on whether online or offline docs
mutually dependent on Change-Id: Ie7490973001530098d5001d9ef5e4dbfab86ed08
Change-Id: I15658c0868c755947207cb8d6391b6aed4c90e14
Diffstat (limited to 'tools/droiddoc/templates-sdk/sdkpage.cs')
-rw-r--r-- | tools/droiddoc/templates-sdk/sdkpage.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/droiddoc/templates-sdk/sdkpage.cs b/tools/droiddoc/templates-sdk/sdkpage.cs index 7756440..331411f 100644 --- a/tools/droiddoc/templates-sdk/sdkpage.cs +++ b/tools/droiddoc/templates-sdk/sdkpage.cs @@ -211,7 +211,7 @@ function onDownload(link) { </script> <?cs else ?> <?cs # end if online ?> - <?cs if:sdk.preview ?> + <?cs if:sdk.preview ?><?cs # it's preview offline docs ?> <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming Android 3.0 release, to give you a head-start on developing applications for it. </p> @@ -222,7 +222,14 @@ function onDownload(link) { <style type="text/css"> .non-preview { display:none; } </style> + + <?cs else ?><?cs # it's normal offline docs ?> + <style type="text/css"> + p.offline-message { display:block; } + p.online-message { display:none; } + </style> <?cs /if ?> + <?cs /if ?> <?cs # end if/else online ?> <?cs /if ?> <?cs # end if/else NDK ?> |