diff options
author | Paul Dixon <paul.dixon@durham.ac.uk> | 2014-04-04 14:55:08 +0100 |
---|---|---|
committer | Paul Dixon <paul.dixon@durham.ac.uk> | 2014-04-04 14:55:08 +0100 |
commit | b1314273bb44648547adbd1e2b7b724903ac6020 (patch) | |
tree | affad469a82e9668ffa5819ce26af9ca6ac0efd0 /templates/includes | |
parent | cb9a0b82ba0478b9a5b37de6f920edff474312e1 (diff) | |
download | gitbook-b1314273bb44648547adbd1e2b7b724903ac6020.zip gitbook-b1314273bb44648547adbd1e2b7b724903ac6020.tar.gz gitbook-b1314273bb44648547adbd1e2b7b724903ac6020.tar.bz2 |
Adding config option for github host
- this config option allows the github host url to be set to
something other than github.com, mainly so that github enterprise
users can change the url to their private host but will also
work with bitbucket
Diffstat (limited to 'templates/includes')
-rw-r--r-- | templates/includes/book/exercise.html | 4 | ||||
-rw-r--r-- | templates/includes/book/header.html | 8 | ||||
-rw-r--r-- | templates/includes/book/summary.html | 8 |
3 files changed, 10 insertions, 10 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> |