views: fix base url to omit scheme for when we connect through a https gateway
[pharext/pharext.org] / app / views / github / repo.phtml
index fff952d75cdafab28b194e9a7fdcef3f955e6cfe..21d640c317d8881f111b0a6525a7682ec9f3ad42 100644 (file)
@@ -1,4 +1,4 @@
-<?php $this->layout("layout", ["title" => "Github: {$repo->name}"]) ?>
+<?php $this->layout("layout", ["title" => "Github: ". (isset($repo) ? $repo->name : $name)]) ?>
 
 <div class="page-header">
        <h1>
 
        <div class="col-sm-6">
                <div class="row">
-                       <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/" . (!empty($hook) ? "upd" : "add")) ?>">
+                       <form method="post" action="<?= $baseUrl->mod(":./github/repo/". $repo->full_name ."/hook/" . (!empty($hook) ? "upd" : "add")) ?>">
                                <div class="col-sm-6">
                                        <h4>PHARext Options:</h4>
                                        <div class="checkbox">
                        <!-- column wrapping! -->
                        <?php if ($this->check($repo)) : ?>
                        <div class="col-sm-6">
-                               <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/del") ?>"> 
+                               <form method="post" action="<?= $baseUrl->mod(":./github/repo/". $repo->full_name ."/hook/del") ?>">
                                <button class="btn btn-lg btn-block btn-danger">
                                        <span class="glyphicon glyphicon-remove-circle"></span>
                                        Remove Hook
                                        <?php endforeach; ?>
                                </ul>
                        <?php else: ?>
-                               <form class="form-inline pull-right" method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/release") ?>">
+                               <form class="form-inline pull-right" method="post" action="<?= $baseUrl->mod(":./github/repo/". $repo->full_name ."/release") ?>">
                                        <input type="hidden" name="tag" value="<?= $this->e($v->tag->name) ?>">
                                        <div class="checkbox">
                                                <label for="hook-zend">