fix gist.github.com clone urls
authorChristian Weiske <cweiske@cweiske.de>
Tue, 6 May 2014 19:17:19 +0000 (21:17 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 6 May 2014 19:17:19 +0000 (21:17 +0200)
data/templates/display-head.htm
src/phorkie/HtmlParser.php
www/css/phorkie.css

index ba699bf6c9429641de1b525cccf74934e7a9736e..ba1f467080d5beda58c1506d09cd17b047d4fb62 100644 (file)
@@ -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">
 <h1>{{repo.getTitle}}</h1>
 <div class="row repo-info">
  <div class="span7">
index d613452c3050231d310d2b6360d79c26ecb34175..b8cd1aff3dbece084445bde9617321aba0ae64bf 100644 (file)
@@ -44,7 +44,8 @@ class HtmlParser
         if ($scheme == 'https' && isset($arUrl['host'])
             && $arUrl['host'] == 'gist.github.com'
         ) {
         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
             $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) {
             }
             $title = $this->getHtmlTitle($url);
             if ($title === null) {
-                $this->arGitUrls[][] = 'git://gist.github.com/'
+                $this->arGitUrls[][] = 'https://gist.github.com/'
                     . $path . '.git';
             } else {
                     . $path . '.git';
             } else {
-                $this->arGitUrls[$title][] = 'git://gist.github.com/'
+                $this->arGitUrls[$title][] = 'https://gist.github.com/'
                     . $path . '.git';
             }
             return true;
                     . $path . '.git';
             }
             return true;
index f752de70548d067e092b6644aa6652a9641df9c4..df829cdb6e007391cc6a8196dbe876891bf6060f 100644 (file)
@@ -41,6 +41,10 @@ a.anchorlink {
     }
 }
 
     }
 }
 
+.navbar + .container {
+    margin-top: 2ex;
+}
+
 .footer {
     margin-top: 36px;
     margin-bottom: 0px;
 .footer {
     margin-top: 36px;
     margin-bottom: 0px;
@@ -50,6 +54,7 @@ a.anchorlink {
 }
 
 h1 {
 }
 
 h1 {
+    margin-top: 0ex;
     margin-bottom: 0.5ex;
 }
 
     margin-bottom: 0.5ex;
 }