taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | README | LICENSE

blog-index.gohtml (2668B)


      1 {{define "content"}}
      2   <section class="page-intro" aria-labelledby="essay-shop-title">
      3     <div class="essay-heading">
      4       <h2 class="essay-shop-title" id="essay-shop-title">{{tr .Lang "Free Software, Free Society"}}</h2>
      5       {{/* Translators: Accessible label for a button that opens publication and licensing details. */}}
      6       <button class="info-button" id="edition-info-button" type="button" aria-label="{{tr .Lang "About this edition"}}" aria-haspopup="dialog" aria-controls="edition-info"></button>
      7     </div>
      8     <p>{{tr .Lang "Choose a chapter to buy with GNU Taler."}}</p>
      9   </section>
     10   <dialog class="fsfs-license" id="edition-info" aria-labelledby="edition-info-title">
     11     <div class="edition-info-heading">
     12       <h3 id="edition-info-title">{{tr .Lang "About this edition"}}</h3>
     13       {{/* Translators: Button that closes the publication details dialog. */}}
     14       <form method="dialog"><button class="dialog-close" type="submit">{{tr .Lang "Close"}}</button></form>
     15     </div>
     16     <p>{{trHTML .Lang "This is the latest edition of <cite>Free Software, Free Society: Selected Essays of Richard M. Stallman.</cite>"}}<br>Free Software Foundation<br>51 Franklin Street, Fifth Floor<br>Boston, MA 02110-1335<br>Copyright &copy; 2002, 2010 Free Software Foundation, Inc.</p>
     17     <p>{{tr .Lang "Verbatim copying and distribution of this entire book are permitted worldwide, without royalty, in any medium, provided this notice is preserved. Permission is granted to copy and distribute translations of this book from the original English into another language provided the translation has been approved by the Free Software Foundation and the copyright notice and this permission notice are preserved on all copies."}}</p>
     18     <p class="edition-isbn">ISBN 978-0-9831592-0-9</p>
     19   </dialog>
     20   {{/* Translators: Accessible name for the list of book chapters offered for sale. */}}
     21   <section class="article-list" aria-label="{{tr .Lang "Chapters"}}">
     22     {{range .Content.Articles}}
     23       <article class="article-card">
     24         <div class="article-copy">
     25           <h3>{{.Title}}</h3>
     26           <p class="article-teaser">{{.Summary}}</p>
     27         </div>
     28         <div class="article-purchase">
     29           {{/* Translators: Label shown before the purchase price of a book chapter. */}}
     30           <span class="article-price">{{tr $.Lang "Price"}}: <strong>{{$.Content.Price}}</strong></span>
     31           <a class="button" href="{{$.Prefix}}/{{$.Lang}}/essay/{{pathEscape .Slug}}">{{tr $.Lang "Buy chapter"}}</a>
     32         </div>
     33       </article>
     34     {{else}}
     35       <em>({{tr .Lang "No articles available in this language."}})</em>
     36     {{end}}
     37   </section>
     38 {{end}}