forked from bofh/fetsite
calendar show fixed
tabs fixed + ICS Link hinzugefügt
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<ul class="nav nav-tabs">
|
||||
<li <%= (request.fullpath == calendars_path)? 'class="active"' : ''%> >
|
||||
<li <%= (request.fullpath == calendars_path)? 'class="active"'.html_safe : ''%> >
|
||||
<%= link_to I18n.t 'calendars.alle' , calendars_path %> </li>
|
||||
<% for c in Calendar.all %>
|
||||
<li <%= (!@calendar.nil? && c == @calendar) ? 'class="active"' : '' %> title="<%= c.name %>">
|
||||
<li <%= (!@calendar.nil? && c == @calendar) ? 'class="active"'.html_safe : '' %> title="<%= c.name %>">
|
||||
<%= link_to c.name, c %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
@@ -5,12 +5,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<p id="notice"><%= notice %></p>
|
||||
<div class="row-fluid"><p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>
|
||||
<%= '<i class="icon-globe"></i>'.html_safe unless !@calendar.public%>
|
||||
<%= @calendar.name %>
|
||||
</h1>
|
||||
</h1> <%= link_to "Link to iCalendar", calendar_path(@calendar, { format: 'ics'}) %>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<ul class="list-group">
|
||||
<% @calendar.calentries.each do |entry| %>
|
||||
|
||||
Reference in New Issue
Block a user