mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-21 16:36:08 +01:00
fix crlf issue
This commit is contained in:
parent
c6c74ff6df
commit
7f4929808c
2 changed files with 35 additions and 35 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<%
|
||||
context = text_context
|
||||
todos_in_context = todos.select { |t| t.context_id == context.id }
|
||||
if todos_in_context.length > 0
|
||||
-%> <%= context.name.upcase %>:
|
||||
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
|
||||
<%
|
||||
context = text_context
|
||||
todos_in_context = todos.select { |t| t.context_id == context.id }
|
||||
if todos_in_context.length > 0
|
||||
-%> <%= context.name.upcase %>:
|
||||
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
|
||||
<% end -%>
|
||||
|
|
@ -1,30 +1,30 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//rousette.org.uk//Tracks 1.04//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:<%= ENV['TZ'] || 'GMT' %>
|
||||
LAST-MODIFIED:<%= Time.now.strftime("%Y%m%dT%H%M%SZ") %>
|
||||
TZNAME:<%= ENV['TZ'] %>
|
||||
END:VTIMEZONE
|
||||
<% for @todo in @todos -%>
|
||||
BEGIN:VTODO
|
||||
DTSTAMP:<%= @todo.created_at.strftime("%Y%m%dT%H%M%SZ") %>
|
||||
DTSTART;VALUE=DATE:<%= @todo.created_at.strftime("%Y%m%d") %>
|
||||
SUMMARY:<%= @todo.description %>
|
||||
UID:<%= todo_url(@todo) %>
|
||||
<% if @todo.notes? -%>
|
||||
DESCRIPTION:<%= format_ical_notes(@todo.notes) %>
|
||||
<% end -%>
|
||||
<% if @todo.due -%>
|
||||
DUE;VALUE=DATE:<%= @todo.due.strftime("%Y%m%d") %>
|
||||
<% end -%>
|
||||
<% if @todo.project_id -%>
|
||||
URL:<%= project_url(@todo.project) %>
|
||||
<% else -%>
|
||||
URL:<%= context_url(@todo.context) %>
|
||||
<% end -%>
|
||||
END:VTODO
|
||||
<% end -%>
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//rousette.org.uk//Tracks 1.04//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:<%= ENV['TZ'] || 'GMT' %>
|
||||
LAST-MODIFIED:<%= Time.now.strftime("%Y%m%dT%H%M%SZ") %>
|
||||
TZNAME:<%= ENV['TZ'] %>
|
||||
END:VTIMEZONE
|
||||
<% for @todo in @todos -%>
|
||||
BEGIN:VTODO
|
||||
DTSTAMP:<%= @todo.created_at.strftime("%Y%m%dT%H%M%SZ") %>
|
||||
DTSTART;VALUE=DATE:<%= @todo.created_at.strftime("%Y%m%d") %>
|
||||
SUMMARY:<%= @todo.description %>
|
||||
UID:<%= todo_url(@todo) %>
|
||||
<% if @todo.notes? -%>
|
||||
DESCRIPTION:<%= format_ical_notes(@todo.notes) %>
|
||||
<% end -%>
|
||||
<% if @todo.due -%>
|
||||
DUE;VALUE=DATE:<%= @todo.due.strftime("%Y%m%d") %>
|
||||
<% end -%>
|
||||
<% if @todo.project_id -%>
|
||||
URL:<%= project_url(@todo.project) %>
|
||||
<% else -%>
|
||||
URL:<%= context_url(@todo.context) %>
|
||||
<% end -%>
|
||||
END:VTODO
|
||||
<% end -%>
|
||||
END:VCALENDAR
|
||||
Loading…
Add table
Add a link
Reference in a new issue