Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d2a0a0b authored by Dirk Dougherty's avatar Dirk Dougherty Committed by Android Git Automerger
Browse files

am 13ab927a: am 2747bec3: am 981effcc: Add breadcrumb for sample code html pages.

* commit '13ab927a':
  Add breadcrumb for sample code html pages.
parents 62c81f82 13ab927a
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -10,6 +10,21 @@
?>class="col-13" id="doc-col"<?cs else 
?>class="col-12" id="doc-col"<?cs /if ?> >

<!-- start breadcrumb block -->
<div id="api-info-block">
<div class="sum-details-links">

<!-- related links -->
<a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
&#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
&#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  Other info</a>
</div>
</div><!-- end breadcurmb block -->

<h1 itemprop="name"><?cs var:page.title ?></h1>

<?cs # THIS IS THE MAIN DOC CONTENT ?>
@@ -27,6 +42,12 @@
<pre id="codesample-line-numbers" class="no-pretty-print hidden"></pre>
<pre id="codesample-block"><?cs var:fileContents ?></pre>
</div>

<h3 id="file-location" style="clear:left">Source file location</h3>
<p>The file containing the source code shown below is located in the corresponding directory in 
<code>&lt;sdk&gt;/samples/android-&lt;version&gt;/...</code></p>


<!-- end file contents -->
<script type="text/javascript">
  initCodeLineNumbers();
+21 −3
Original line number Diff line number Diff line
@@ -10,7 +10,25 @@
?>class="col-13" id="doc-col"<?cs else 
?>class="col-12" id="doc-col"<?cs /if ?> >

<h1 itemprop="name"><?cs var:projectTitle ?></h1>
<!-- start breadcrumb block -->
<div id="api-info-block">
<div class="sum-details-links">

<!-- related links -->
<?cs if:projectStructure ?>
<a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
&#124; Project<?cs else ?>Overview
&#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
<?cs /if ?>
&#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  Other info</a>
</div>
</div><!-- end breadcurmb block -->

<h1 itemprop="name"><?cs var:projectDir ?></h1>
  
<div id="jd-content">
<?cs def:display_files(files) ?>
@@ -42,7 +60,7 @@
<?cs if:android.whichdoc == "online" ?>
  <?cs # If this is the online docs, build the src code navigation links ?>

  <?cs if:page.title == "Project Structure" ?>
  <?cs if:projectStructure ?>

    <?cs call:display_files(Files) ?>

@@ -55,7 +73,7 @@
         # <p>Decide what to do with this ...</p>
         # <?cs call:display_files(Files) ?>

  <?cs /if ?> <?cs # end if project structure ?>
  <?cs /if ?> <?cs # end if projectStructure ?>

<?cs else ?><?cs
  # else, this means it's offline docs,