Permalink
Browse files

Update lib/booki/reader/templates/reader/book_info.html

  • Loading branch information...
1 parent 1b46aa4 commit 65e237a46bd06eb1fc8805a75d9f3a7cad0693b6 @TomiToivio committed Apr 15, 2012
Showing with 22 additions and 12 deletions.
  1. +22 −12 lib/booki/reader/templates/reader/book_info.html
@@ -10,6 +10,20 @@
+
+<meta property="og:title" content="{{ book.title }}" />
+<meta property="og:type" content="book" />
+<meta property="og:url" content="http://fi.flossmanuals.net/kirjoita/{{ book.url_title }}/_info/" />
+<meta property="og:image" content="http://fi.flossmanuals.net/kirjoita/{{ book.url_title }}/_info/cover.jpg" />
+<meta property="og:site_name" content="Suomenkielinen FLOSS Manuals" />
+<meta property="fb:admins" content="717291093" />
+<meta property="fb:app_id" content="248010321945512" />
+<meta property="og:locale" content="fi_FI" />
+<meta property="book:author" content="{% for username in book_collaborators %}{{ username }}{% if not forloop.last %},{% endif %}{% endfor %}" />
+<meta property="book:release_date" content="{{ book.published|date:"SHORT_DATE_FORMAT" }}" />
+<meta property="og:description" content="{{ book_description|safe }}" />
+
+
{% if has_css %}
<link type="text/css" href="{{ request.META.SCRIPT_NAME }}/static/css/book.{{ book.url_title }}.css" rel="Stylesheet" />
{% endif %}
@@ -85,9 +99,9 @@
<div class="padded">
<div class="action-menu big">
<a class="prime editbook" href="{% url edit_book book.url_title %}">Muokkaa tätä kirjaa</a>
- <a class="prime viewdraft" href="{% url draft_book book.url_title book_version %}">Katso luonnosta</a>
+ <a class="prime viewdraft" href="{% url book_view book.url_title %}">Lue kirjaa</a>
{% if is_book_admin %}
- <a class="prime viewdraft editinfo" href="#">Muokkaa kirjan tietoa</a>
+ <a class="prime viewdraft editinfo" href="#">Muokkaa kirjan esittelyä</a>
{% endif %}
</div>
<h3>Kirjan tiedot</h3>
@@ -105,9 +119,8 @@
{% endif %}
</li>
{% if book.group %}
- <li><b>Ryhmän jäsen:</b> <a href="{% url view_group book.group.url_name %}">{{ book.group.name }}</a></li>
+ <li><b>Kirja kuuluu ryhmälle::</b> <a href="{% url view_group book.group.url_name %}">{{ book.group.name }}</a></li>
{% endif %}
- <li><b>Nykyinen versio:</b> <a href="{% url draft_book book.url_title book_version %}">{{ book.version.getVersion }}</a></li>
<li>&nbsp;</li>
<li><b>Viimeisin muutos:</b> {{ book.created|date:"SHORT_DATE_FORMAT" }}</li>
@@ -145,12 +158,9 @@ <h3 class="inner">Etherpad</h3>
<a href="http://typewith.me/p/fifm{{book.url_title}}?showChat=true&userName={{ request.user.username }}&showLineNumbers=true" target="_blank"><button type="button">Etherpad</button></a>
<br>
{% endif %}
-<h3 class="inner">Versiot</h3>
-<ul class="simple-list solo no-bg">
- {% for ver in book_versions %}
- <li><a href="{% url draft_book book.url_title ver.getVersion %}"> {{ ver.getVersion }}</a></li>
- {% endfor %}
-</ul>
+
+<h3 class="inner">Sosiaalinen media</h3>
+<div class="fb-like" data-href="http://fi.flossmanuals.net/kirjoita/{{ book.url_title }}/_info/" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div>
<h3 class="inner">Viimeisimmät toiminnot</h3>
<table class="basic-table" border="0" width="100%">
@@ -220,11 +230,11 @@ <h3 class="inner">Viimeisimmät toiminnot</h3>
{% if ln.chapter %}
<td valign="top">
- <a href="{% url draft_chapter book.url_title book_version ln.chapter.url_title %}">{{ln.chapter.title}}</a>
+ <a href="{% url draft_chapter book.url_title book_version ln.chapter.url_title %}">{{ln.chapter.title}}</a>
</td>
{% endif %}
- <td valign="top"> <a href="{% url view_profile book.owner.username %}" class="user">{{ ln.user.username }}</a> </td>
+ <td valign="top"> <a href="{% url view_profile ln.user.username %}" class="user">{{ ln.user.username }}</a> </td>
<td valign="top"> {{ ln.modified }} </td>
</tr>
{% endfor %}

0 comments on commit 65e237a

Please sign in to comment.