Fix icon/metadata list in article body

This commit is contained in:
Stefan Schlott 2013-08-24 16:31:11 +02:00
parent 545f55db84
commit 37cfd0faa6
2 changed files with 7 additions and 4 deletions

View file

@ -7,10 +7,12 @@
<br/><small><%= item[:subtitle] %></small> <br/><small><%= item[:subtitle] %></small>
<% end %></h1> <% end %></h1>
<p> <p>
<i class="icon-calendar"></i> <time itemprop="dateCreated" datetime="<%= @item[:created_at].strftime("%Y-%m-%d") %>"><%= @item[:created_at].strftime("%d.%m.%Y") %></time> <ul class="unstyled inline">
<% if @item[:author] %>- <i class="icon-pencil"></i> @item[:author]<% end %> <li><i class="icon-calendar"></i> <time itemprop="dateCreated" datetime="<%= @item[:created_at].strftime("%Y-%m-%d") %>"><%= @item[:created_at].strftime("%d.%m.%Y") %></time></li>
<% if @item[:refers_to] %>- <i class="icon-cogs"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a><% end %> <% if @item[:author] %><li><i class="icon-pencil"></i> @item[:author]</li><% end %>
- <i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a> <% if @item[:refers_to] %><li><i class="icon-cogs"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a></li><% end %>
<li><i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
</ul>
</header> </header>
<p> <p>
<section> <section>

View file

@ -11,6 +11,7 @@
<% if @item[:author] %><li><i class="icon-pencil"></i> @item[:author]</li><% end %> <% if @item[:author] %><li><i class="icon-pencil"></i> @item[:author]</li><% end %>
<% if @item[:refers_to] %><li><i class="icon-cogs"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a></li><% end %> <% if @item[:refers_to] %><li><i class="icon-cogs"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a></li><% end %>
<li><i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li> <li><i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
</ul>
<% end %> <% end %>
</header> </header>
<div class="clearfix"></div> <div class="clearfix"></div>