Automatically link to flyer/poster

This commit is contained in:
Stefan Schlott 2013-09-06 10:21:11 +02:00
parent 9fbccff825
commit 02090eb134
2 changed files with 9 additions and 3 deletions

View file

@ -39,9 +39,7 @@ feed:
<h1><a href="<%= upcomingEvents[0].path() %>">Nächster Vortrag</a></h1>
<%= render 'event_header', :item => upcomingEvents[0], :heading => false, :link => false %>
<p>
<a itemprop="url" href="<%= upcomingEvents[0].path() %>">Weitere Informationen</a> -
<a href="#">Flyer (PDF)</a> -
<a href="#">Aushang (PDF)</a>
<a itemprop="url" href="<%= upcomingEvents[0].path() %>">Weitere Informationen</a>
</p>
</article>
</div>

View file

@ -61,6 +61,14 @@
</ul>
</li>
<% end %>
<% if @items["#{@item.identifier}aushang/"] || @items["#{@item.identifier}flyer/"] %>
<li class="icon-bullhorn commaseparated" title="Aushang, Flyer, etc.">
<ul>
<% if @items["#{@item.identifier}aushang/"] %><li><a href="<%= @items["#{@item.identifier}aushang/"].path %>">Aushang (PDF)</a></li><%end%>
<% if @items["#{@item.identifier}flyer/"] %><li><a href="<%= @items["#{@item.identifier}flyer/"].path %>">Flyer (PDF)</a></li><%end%>
</ul>
</li>
<% end %>
</ul>
</header>