Icons and tooltip description

This commit is contained in:
Stefan Schlott 2013-08-27 10:27:00 +02:00
parent 6ca2f1fa8d
commit 0f79260739
2 changed files with 12 additions and 11 deletions

View file

@ -6,14 +6,14 @@
<h1 itemprop="name"><%= item[:title] %></h1>
<% end %>
<% end %>
<strong>Termin:</strong>
<i class="icon-calendar" title="Datum"></i>
<span itemprop="startDate" content="<%= @item[:startdate].strftime("%Y-%m-%d") %>T19:30"><%= @item[:startdate].strftime("%d.%m.%Y") %>, 19:30 Uhr</span>
<% if !@item[:public] %>(nicht öffentlich)<% end %>
<br />
<% if !heading %><strong>Thema:</strong> <span itemprop="name"><%= item[:title] %></span><br /><% end %>
<% if !heading %><i class="icon-comment" title="Thema"></i> <span itemprop="name"><%= item[:title] %></span><br /><% end %>
<% if @item[:speakers] %>
<div class="commaseparated">
<strong>Referent:</strong>
<i class="icon-male" title="Referent"></i>
<ul>
<% @item[:speakers].each do |speaker| %>
<li itemprop="performer" itemscope itemtype="http://schema.org/Person">
@ -25,16 +25,17 @@
<% end %>
<% if @item[:superevent] %>
<div itemprop="superEvent" itemscope itemtype="http://schema.org/Event">
<strong>Veranstaltung:</strong>
<i class="icon-comments-alt" title="Veranstaltung"></i>
<% if @item[:superevent][:url] %>
<a itemprop="url" href="<%= @item[:superevent][:url] %>"><span itemprop="name"><%= @item[:superevent][:title] %></span></a>
<a itemprop="url" href="<%= @item[:superevent][:url] %>"><span itemprop="name"><%= @item[:superevent][:title] %></span></a>
<% else %>
<span itemprop="name"><%= @item[:superevent][:title] %></span>
<span itemprop="name"><%= @item[:superevent][:title] %></span>
<% end %>
</div>
<% end %>
<% if @item[:location] %>
<div class="commaseparated">
<strong>Ort:</strong>
<i class="icon-compass" title="Ort"></i>
<ul itemprop="location" itemscope itemtype="http://schema.org/Location">
<li itemprop="name"><% if item[:location][:url] %><a itemprop="url" href="<%= item[:location][:url] %>"><%= item[:location][:name] %></a><% else %><%= item[:location][:name] %><% end %>
<% if item[:location][:details] %><li><%= item[:location][:details] %><% end %>