Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

added links to ebook formats in sidebar #93

Merged
merged 1 commit into from May 9, 2012
Jump to file or symbol
Failed to load files and symbols.
+10 −6
Split
@@ -114,12 +114,12 @@
#about-book {
display: none;
- text-indent: 85px;
+ text-indent: 40px;
text-align: center;
font-size: 12px;
color: $light-font-color;
padding-left: 22px;
- background: transparent url(/images/icons/info.png) 85px 0 no-repeat;
+ background: transparent url(/images/icons/info.png) 40px 0 no-repeat;
&.visible {
@include inline-block;
}
@@ -0,0 +1 @@
+<p>Download this book in <a href="https://github.s3.amazonaws.com/media/progit.en.pdf">PDF</a>, <a href="https://github.s3.amazonaws.com/media/pro-git.en.mobi">mobi</a>, or <a href="https://github.s3.amazonaws.com/media/progit.epub">ePub</a> form for free.</p>
@@ -4,7 +4,7 @@ This book is translated into
<a href="/book/zh">Chinese</a>,
<a href="/book/fr">French</a>,
<a href="/book/ja">Japanese</a> and
- <a href="/book/nl">Dutch</a>
+ <a href="/book/nl">Dutch</a>.
</p>
<p>
@@ -17,7 +17,7 @@ Partial translations available in
<a href="/book/mk">Macedonian</a>,
<a href="/book/pl">Polish</a>,
<a href="/book/th">Thai</a> and
- <a href="/book/ru">Russian</a>
+ <a href="/book/ru">Russian</a>.
</p>
<hr class="sidebar"/>
@@ -3,6 +3,7 @@
<%- @page_title = "Git - Book" %>
<% content_for :sidebar do %>
+ <%= render 'ebooks' %>
<%= render 'translations' %>
<% end %>
@@ -2,6 +2,7 @@
<% @subsection = 'book' %>
<% content_for :sidebar do %>
+ <%= render 'ebooks' %>
<%= render 'translations' %>
<%= render 'shared/related' %>
<% end %>
@@ -57,7 +57,7 @@
%h2
= chapter.number.to_s + '.'
%a{:href=>"/book/#{@book.code}/#{chapter.sections.first.slug}"}= chapter.title
- <a href="#" id="about-book">About this book</a>
+ <a href="#" id="about-book">Book information and downloads</a>
%h2 Videos
@@ -1,5 +1,6 @@
<div class="callout">
<p>The entire <strong><a href="/book">Pro Git book</a></strong> written
by Scott Chacon is available to <a href="/book">read online for free</a>.
- Dead tree versions are available on <a href="http://www.amazon.com/gp/product/1430218339?ie=UTF8&tag=prgi-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430218339">Amazon.com</a>.</>
+ Dead tree versions are available on <a href="http://www.amazon.com/gp/product/1430218339?ie=UTF8&tag=prgi-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430218339">Amazon.com</a>.
+ </p>
</div>