Skip to content

Commit d3004f0

Browse files
committed
remove spaces inside {} of TimelogController
git-svn-id: http://svn.redmine.org/redmine/trunk@20140 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 00e52fb commit d3004f0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/controllers/timelog_controller.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def report
7878
@report = Redmine::Helpers::TimeReport.new(@project, @issue, params[:criteria], params[:columns], scope)
7979

8080
respond_to do |format|
81-
format.html { render :layout => !request.xhr? }
81+
format.html {render :layout => !request.xhr?}
8282
format.csv do
8383
send_data(report_to_csv(@report), :type => 'text/csv; header=present',
8484
:filename => 'timelog.csv')
@@ -89,7 +89,7 @@ def report
8989
def show
9090
respond_to do |format|
9191
# TODO: Implement html response
92-
format.html { head 406 }
92+
format.html {head 406}
9393
format.api
9494
end
9595
end
@@ -146,8 +146,8 @@ def create
146146
end
147147
else
148148
respond_to do |format|
149-
format.html { render :action => 'new' }
150-
format.api { render_validation_errors(@time_entry) }
149+
format.html {render :action => 'new'}
150+
format.api {render_validation_errors(@time_entry)}
151151
end
152152
end
153153
end
@@ -167,12 +167,12 @@ def update
167167
flash[:notice] = l(:notice_successful_update)
168168
redirect_back_or_default project_time_entries_path(@time_entry.project)
169169
end
170-
format.api { render_api_ok }
170+
format.api {render_api_ok}
171171
end
172172
else
173173
respond_to do |format|
174-
format.html { render :action => 'edit' }
175-
format.api { render_validation_errors(@time_entry) }
174+
format.html {render :action => 'edit'}
175+
format.api {render_validation_errors(@time_entry)}
176176
end
177177
end
178178
end

0 commit comments

Comments
 (0)