Better naming "item_intro" (instead of article_intro)

This commit is contained in:
Stefan Schlott 2013-08-24 15:18:02 +02:00
parent 75d3a20cc3
commit 220866997f
7 changed files with 32 additions and 26 deletions

View file

@ -6,14 +6,12 @@
<% if item.attributes.has_key?(:subtitle) then %>
<br/><small><%= item[:subtitle] %></small>
<% end %></h1>
<ul class="unstyled">
<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[: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 %>
<li><i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
</ul>
<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>
<% if @item[:author] %>- <i class="icon-pencil"></i> @item[:author]<% end %>
<% 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 %>
- <i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a>
</header>
<div class="clearfix"></div>
<p>
<section>
<%= yield %>