summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-04 16:51:28 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-04 16:51:28 +0200
commit57e2595a3ea65de63822d105010b2f75cd50636c (patch)
treeaffad469a82e9668ffa5819ce26af9ca6ac0efd0 /templates
parentcb9a0b82ba0478b9a5b37de6f920edff474312e1 (diff)
parentb1314273bb44648547adbd1e2b7b724903ac6020 (diff)
downloadgitbook-57e2595a3ea65de63822d105010b2f75cd50636c.zip
gitbook-57e2595a3ea65de63822d105010b2f75cd50636c.tar.gz
gitbook-57e2595a3ea65de63822d105010b2f75cd50636c.tar.bz2
Merge pull request #20 from mintbridge/github-host-url
Adding config option for github host
Diffstat (limited to 'templates')
-rw-r--r--templates/includes/book/exercise.html4
-rw-r--r--templates/includes/book/header.html8
-rw-r--r--templates/includes/book/summary.html8
-rw-r--r--templates/layout.html6
4 files changed, 13 insertions, 13 deletions
diff --git a/templates/includes/book/exercise.html b/templates/includes/book/exercise.html
index 0b52656..1acbe79 100644
--- a/templates/includes/book/exercise.html
+++ b/templates/includes/book/exercise.html
@@ -20,5 +20,5 @@
<div class="btn-group btn-group-justified">
<a href="#" class="btn btn-default action-submit">Submit</a>
<a href="#" class="btn btn-default action-solution">Solution</a>
- <a href="https://github.com/{{ githubId }}/issues/new" target="_blank" class="btn btn-default">Have a Question?</a>
-</div> \ No newline at end of file
+ <a href="{{ githubHost }}{{ githubId }}/issues/new" target="_blank" class="btn btn-default">Have a Question?</a>
+</div>
diff --git a/templates/includes/book/header.html b/templates/includes/book/header.html
index 71dbbdb..d3baf1d 100644
--- a/templates/includes/book/header.html
+++ b/templates/includes/book/header.html
@@ -1,6 +1,6 @@
<div class="book-header">
<!-- Actions Left -->
- <a href="https://github.com/{{ githubId }}" target="_blank" class="btn pull-left"><i class="fa fa-github-alt"></i></a>
+ <a href="{{ githubHost }}{{ githubId }}" target="_blank" class="btn pull-left"><i class="fa fa-github-alt"></i></a>
<a href="#" class="btn pull-left toggle-summary"><i class="fa fa-align-justify"></i></a>
<!-- Actions Right -->
@@ -8,10 +8,10 @@
<a href="#" target="_blank" class="btn pull-right" data-sharing="facebook"><i class="fa fa-facebook"></i></a>
<a href="#" target="_blank" class="btn pull-right" data-sharing="twitter"><i class="fa fa-twitter"></i></a>
- <a href="https://github.com/{{ githubId }}/stargazers" target="_blank" class="btn pull-right count-star"><i class="fa fa-star-o"></i> Star (<span>-</span>)</a>
- <a href="https://github.com/{{ githubId }}/watchers" target="_blank" class="btn pull-right count-watch"><i class="fa fa-eye"></i> Watch (<span>-</span>)</a>
+ <a href="{{ githubHost }}{{ githubId }}/stargazers" target="_blank" class="btn pull-right count-star"><i class="fa fa-star-o"></i> Star (<span>-</span>)</a>
+ <a href="{{ githubHost }}{{ githubId }}/watchers" target="_blank" class="btn pull-right count-watch"><i class="fa fa-eye"></i> Watch (<span>-</span>)</a>
<!-- Title -->
<h1><a href="{{ basePath }}/README.html" >{{ title }}</a></h1>
-</div> \ No newline at end of file
+</div>
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html
index c3ab46d..d74fb18 100644
--- a/templates/includes/book/summary.html
+++ b/templates/includes/book/summary.html
@@ -1,13 +1,13 @@
<div class="book-summary">
<ul class="summary">
<li>
- <a href="https://github.com/{{ githubAuthor }}" target="blank">About the author</a>
+ <a href="{{ githubHost }}{{ githubAuthor }}" target="blank">About the author</a>
</li>
<li>
- <a href="https://github.com/{{ githubId }}/issues" target="blank">Questions and Issues</a>
+ <a href="{{ githubHost }}{{ githubId }}/issues" target="blank">Questions and Issues</a>
</li>
<li>
- <a href="https://github.com/{{ githubId }}/edit/master/{{ _input }}" target="blank">Edit and Contribute</a>
+ <a href="{{ githubHost }}{{ githubId }}/edit/master/{{ _input }}" target="blank">Edit and Contribute</a>
</li>
<li class="divider"></li>
<li data-level="0">
@@ -40,4 +40,4 @@
</li>
{% endfor %}
</ul>
-</div> \ No newline at end of file
+</div>
diff --git a/templates/layout.html b/templates/layout.html
index 8d2a02f..c0f52cb 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -24,9 +24,9 @@
<meta property="og:type" content="book">
<meta property="og:locale" content="en_US">
- <meta property="book:author" content="https://github.com/{{ githubAuthor }}">
+ <meta property="book:author" content="{{ githubHost }}{{ githubAuthor }}">
<meta property="book:tag" content="GitBook">
-
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@@ -48,4 +48,4 @@
<script src="{{ staticBase }}/jsrepl/jsrepl.js" id="jsrepl-script"></script>
<script src="{{ staticBase }}/app.js"></script>
</body>
-</html> \ No newline at end of file
+</html>