mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 09:04:07 +01:00
Remove trailing whitespace and tabs
This commit is contained in:
parent
863d780ad0
commit
aa41e20e46
84 changed files with 407 additions and 407 deletions
|
|
@ -2,20 +2,20 @@
|
|||
@not_done = @not_done_todos.select {|t| t.project_id == project.id }
|
||||
# invalidate the cache every day because of staleness or
|
||||
# rendering of "due in x days" that change without touching updated at of the todo
|
||||
cache [project, source_view_key, current_user.date.strftime("%Y%m%d"), @tag_name] do
|
||||
cache [project, source_view_key, current_user.date.strftime("%Y%m%d"), @tag_name] do
|
||||
-%>
|
||||
<%=
|
||||
<%=
|
||||
title = source_view_is(:project) ? t('projects.actions_in_project_title') : show_project_name(project)
|
||||
|
||||
render(:partial => 'todos/collection',
|
||||
:object => @not_done,
|
||||
render(:partial => 'todos/collection',
|
||||
:object => @not_done,
|
||||
:locals => { :settings => {
|
||||
:id => "p#{project.id}",
|
||||
:collapsible => settings[:collapsible],
|
||||
:title => title,
|
||||
:id => "p#{project.id}",
|
||||
:collapsible => settings[:collapsible],
|
||||
:title => title,
|
||||
:container_name => 'project',
|
||||
:show_empty_containers => settings[:show_empty_containers],
|
||||
:parent_container_type => settings[:parent_container_type]
|
||||
}})
|
||||
%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<%
|
||||
paginate_options = {
|
||||
:class => :add_note_link,
|
||||
:class => :add_note_link,
|
||||
:previous_label => '« '+ t('common.previous'),
|
||||
:next_label => t('common.next')+' »',
|
||||
:inner_window => 2
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<div id="projects-empty-nd" style="<%= @no_projects ? 'display:block' : 'display:none'%>">
|
||||
<div class="message"><p><%= t('projects.no_projects') %></p></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="project-state-group" id="list-completed-projects-container" <%= " style=\"display:none\"" if @no_projects %>>
|
||||
<div class="paginate_header"><%= will_paginate @projects, paginate_options %></div>
|
||||
<h2>
|
||||
|
|
@ -34,4 +34,4 @@
|
|||
:id => "completed_actionize_link", :class => "actionize_link", :title => t('common.sort.by_task_count_title'), :x_confirm_message => t('common.sort.by_task_count_title_confirm')) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
selector_project = "div##{dom_id(@project)}"
|
||||
selector_project = "div.project-edit-current " + selector_project unless @source_view=="project"
|
||||
object_name = unique_object_name_for("edit_project_#{@project.id}")
|
||||
-%>
|
||||
-%>
|
||||
var <%=object_name%> = {
|
||||
animate: function() {
|
||||
<%=object_name%>.replace_project_with_edit_form();
|
||||
|
|
@ -28,4 +28,4 @@ var <%=object_name%> = {
|
|||
}
|
||||
}
|
||||
|
||||
<%=object_name%>.animate();
|
||||
<%=object_name%>.animate();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<%
|
||||
<%
|
||||
deferred_pending_options = {:append_descriptor => nil, :parent_container_type => 'project'}
|
||||
done_todo_options = {
|
||||
:append_descriptor => t('projects.last_completed_in_project', :number=>prefs.show_number_completed),
|
||||
:suppress_project => true,
|
||||
:append_descriptor => t('projects.last_completed_in_project', :number=>prefs.show_number_completed),
|
||||
:suppress_project => true,
|
||||
:parent_container_type => 'project'
|
||||
}
|
||||
if @not_done_todos.count == 0
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
<%= show_deferred_pending_todos(@deferred_todos, @pending_todos, deferred_pending_options) %>
|
||||
|
||||
<%= show_done_todos(@done, done_todo_options) unless @done.nil? %>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div id="notes">
|
||||
<div class="add_note_link"><%= link_to t('projects.add_note'), '#' %> </div>
|
||||
|
|
@ -43,4 +43,4 @@
|
|||
<div id="input_box">
|
||||
<%= render :partial => "shared/add_new_item_form" %>
|
||||
<%= render :file => "sidebar/sidebar" %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<%-
|
||||
<%-
|
||||
object_name = unique_object_name_for("update_project_#{@project.id}")
|
||||
-%>
|
||||
var <%=object_name%> = {
|
||||
|
|
@ -9,7 +9,7 @@ var <%=object_name%> = {
|
|||
html_for_error_messages: function() {
|
||||
return "<%= js_error_messages_for(@project) %>";
|
||||
}
|
||||
<%-
|
||||
<%-
|
||||
else
|
||||
-%>
|
||||
animate: function() {
|
||||
|
|
@ -46,7 +46,7 @@ var <%=object_name%> = {
|
|||
},
|
||||
remove_project_edit_form: function() {
|
||||
<%-
|
||||
# do not remove() edit form as this will remove the DIV
|
||||
# do not remove() edit form as this will remove the DIV
|
||||
# that is needed to replace with the new form, so only empty the DIV
|
||||
-%>
|
||||
$('#<%=dom_id(@project, 'edit')%>').hide(500, function() {
|
||||
|
|
@ -95,4 +95,4 @@ var <%=object_name%> = {
|
|||
<% end # if @saved -%>
|
||||
}
|
||||
|
||||
<%=object_name%>.animate();
|
||||
<%=object_name%>.animate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue