aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/display-head.htm7
-rw-r--r--src/phorkie/HtmlParser.php7
-rw-r--r--www/css/phorkie.css5
3 files changed, 16 insertions, 3 deletions
diff --git a/data/templates/display-head.htm b/data/templates/display-head.htm
index ba699bf..ba1f467 100644
--- a/data/templates/display-head.htm
+++ b/data/templates/display-head.htm
@@ -1,3 +1,10 @@
+{% if forksuccess %}
+<div class="alert alert-success">
+ <a href="#" class="close" data-dismiss="alert">×</a>
+ Paste has been successfully forked.
+</div>
+{% endif %}
+
<h1>{{repo.getTitle}}</h1>
<div class="row repo-info">
<div class="span7">
diff --git a/src/phorkie/HtmlParser.php b/src/phorkie/HtmlParser.php
index d613452..b8cd1af 100644
--- a/src/phorkie/HtmlParser.php
+++ b/src/phorkie/HtmlParser.php
@@ -44,7 +44,8 @@ class HtmlParser
if ($scheme == 'https' && isset($arUrl['host'])
&& $arUrl['host'] == 'gist.github.com'
) {
- //https://gist.github.com/maddy2101/5764473
+ //https://gist.github.com/cweiske/2400389
+ // clone URL: https://gist.github.com/2400389.git
$parts = explode('/', ltrim($arUrl['path'], '/'));
if (count($parts == 2)) {
//we only want the number, not the user name
@@ -54,10 +55,10 @@ class HtmlParser
}
$title = $this->getHtmlTitle($url);
if ($title === null) {
- $this->arGitUrls[][] = 'git://gist.github.com/'
+ $this->arGitUrls[][] = 'https://gist.github.com/'
. $path . '.git';
} else {
- $this->arGitUrls[$title][] = 'git://gist.github.com/'
+ $this->arGitUrls[$title][] = 'https://gist.github.com/'
. $path . '.git';
}
return true;
diff --git a/www/css/phorkie.css b/www/css/phorkie.css
index f752de7..df829cd 100644
--- a/www/css/phorkie.css
+++ b/www/css/phorkie.css
@@ -41,6 +41,10 @@ a.anchorlink {
}
}
+.navbar + .container {
+ margin-top: 2ex;
+}
+
.footer {
margin-top: 36px;
margin-bottom: 0px;
@@ -50,6 +54,7 @@ a.anchorlink {
}
h1 {
+ margin-top: 0ex;
margin-bottom: 0.5ex;
}