]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/idx/index.phtml
routes profile
[syj.git] / application / views / scripts / idx / index.phtml
index 1e34d35f8791c35b93e02c0f3d6247633366f2fa..f5b7b6771b37a5ee82079259065a6a9b49ceab44 100644 (file)
@@ -96,9 +96,19 @@ if ($this->errorMsg) {
                                         $this->translate('gpx export'),
                                         $this->translate('gpx export'));
                        ?>
+                </div>
+
+                <?php if ($this->profileActive) { ?>
+                <div id="path-profile-title" class="info-title"><?php echo $this->translate("altitude profile")?></div>
+                <div id="path-profile-content" class="info-content"><?php
+                        $urlcomp = urlencode($this->path->urlcomp ?: $this->path->id);
+                        $href = $this->baseUrl() . '/profile/' . $urlcomp . '.png';
+                        $imgsrc =  $this->addParamToUrl($href, 'size', 'small', true);
+                        printf('<a href="%s"><img src="%s"></a>', $href, $imgsrc);
+                ?></div>
+                <?php }?>
 
 
-                </div>
             </div>
         </div>
     <?php }?>