@report = Redmine::Helpers::TimeReport.new(@project, @issue, params[:criteria], params[:columns], scope)
respond_to do |format|
- format.html { render :layout => !request.xhr? }
+ format.html {render :layout => !request.xhr?}
format.csv do
send_data(report_to_csv(@report), :type => 'text/csv; header=present',
:filename => 'timelog.csv')
def show
respond_to do |format|
# TODO: Implement html response
- format.html { head 406 }
+ format.html {head 406}
format.api
end
end
end
else
respond_to do |format|
- format.html { render :action => 'new' }
- format.api { render_validation_errors(@time_entry) }
+ format.html {render :action => 'new'}
+ format.api {render_validation_errors(@time_entry)}
end
end
end
flash[:notice] = l(:notice_successful_update)
redirect_back_or_default project_time_entries_path(@time_entry.project)
end
- format.api { render_api_ok }
+ format.api {render_api_ok}
end
else
respond_to do |format|
- format.html { render :action => 'edit' }
- format.api { render_validation_errors(@time_entry) }
+ format.html {render :action => 'edit'}
+ format.api {render_validation_errors(@time_entry)}
end
end
end