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

@ -8,10 +8,10 @@
<% end %></h1> <% end %></h1>
<p> <p>
<ul class="unstyled inline"> <ul class="unstyled inline">
<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> <li><i class="icon-calendar" title="Datum"></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[:author] %><li><i class="icon-pencil" title="Autor"></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" title="Zugehöriges Projekt"></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" title="Permalink"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
</ul> </ul>
</header> </header>
<hr> <hr>

View file

@ -6,14 +6,14 @@
<h1 itemprop="name"><%= item[:title] %></h1> <h1 itemprop="name"><%= item[:title] %></h1>
<% end %> <% end %>
<% 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> <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 %> <% if !@item[:public] %>(nicht öffentlich)<% end %>
<br /> <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] %> <% if @item[:speakers] %>
<div class="commaseparated"> <div class="commaseparated">
<strong>Referent:</strong> <i class="icon-male" title="Referent"></i>
<ul> <ul>
<% @item[:speakers].each do |speaker| %> <% @item[:speakers].each do |speaker| %>
<li itemprop="performer" itemscope itemtype="http://schema.org/Person"> <li itemprop="performer" itemscope itemtype="http://schema.org/Person">
@ -25,16 +25,17 @@
<% end %> <% end %>
<% if @item[:superevent] %> <% if @item[:superevent] %>
<div itemprop="superEvent" itemscope itemtype="http://schema.org/Event"> <div itemprop="superEvent" itemscope itemtype="http://schema.org/Event">
<strong>Veranstaltung:</strong> <i class="icon-comments-alt" title="Veranstaltung"></i>
<% if @item[:superevent][:url] %> <% 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 %> <% else %>
<span itemprop="name"><%= @item[:superevent][:title] %></span> <span itemprop="name"><%= @item[:superevent][:title] %></span>
<% end %> <% end %>
</div>
<% end %> <% end %>
<% if @item[:location] %> <% if @item[:location] %>
<div class="commaseparated"> <div class="commaseparated">
<strong>Ort:</strong> <i class="icon-compass" title="Ort"></i>
<ul itemprop="location" itemscope itemtype="http://schema.org/Location"> <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 %> <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 %> <% if item[:location][:details] %><li><%= item[:location][:details] %><% end %>