Mercurial > hg > Members > atton > slideshow-cr
view slides.html.erb @ 6:d24173772691
Support author profile
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 20 Nov 2014 10:53:53 +0900 |
parents | cf6e0c3742b4 |
children | 7295bc144c9f |
line wrap: on
line source
<!DOCTYPE HTML> <% lang = @headers['lang'] == "- lang not found -" ? "en-US" : @headers['lang'] %> <html lang="<%= lang %>"> <head> <title><%= @headers['title'] %></title> <meta charset="UTF-8"> <meta name="viewport" content="width=1274, user-scalable=no"> <meta name="generator" content="Slide Show (S9)"> <meta name="author" content="<%= @headers['author']%>"> <link rel="stylesheet" href="themes/ribbon/styles/style.css"> </head> <body class="list"> <header class="caption"> <h1><%= @headers['title'] %></h1> <p><%= @headers['author']%></p> </header> <div class="slide cover" id="Cover"><div> <section> <header> <h2><%= @headers['title'] %></h2> <h3 id="author"><%= @headers['author'] %></h3> <h3 id="profile"><%= @headers['profile'] %></h3> </header> </section> </div></div> <!-- todo: add slide.classes to div --> <!-- todo: create slide id from header? like a slug in blogs? --> <% @slides.each_with_index do |slide,i| %> <div class="slide<%= ' ' + slide.classes unless slide.classes.empty? %>" id="<%= (i+2).to_s %>"><div> <section> <header> <%= slide.header %> </header> <%= slide.content_without_header %> </section> </div></div> <% end %> <script src="scripts/script.js"></script> <!-- Copyright © 2010–2011 Vadim Makeev, http://pepelsbey.net/ --> </body> </html>