end
else
respond_to do |format|
- format.html { render :action => 'new' }
- format.js { render :action => 'new' }
- format.api { render_validation_errors(@version) }
+ format.html {render :action => 'new'}
+ format.js {render :action => 'new'}
+ format.api {render_validation_errors(@version)}
end
end
end
flash[:notice] = l(:notice_successful_update)
redirect_back_or_default settings_project_path(@project, :tab => 'versions')
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(@version) }
+ format.html {render :action => 'edit'}
+ format.api {render_validation_errors(@version)}
end
end
end
if @version.deletable?
@version.destroy
respond_to do |format|
- format.html { redirect_back_or_default settings_project_path(@project, :tab => 'versions') }
- format.api { render_api_ok }
+ format.html {redirect_back_or_default settings_project_path(@project, :tab => 'versions')}
+ format.api {render_api_ok}
end
else
respond_to do |format|
flash[:error] = l(:notice_unable_delete_version)
redirect_to settings_project_path(@project, :tab => 'versions')
end
- format.api { head :unprocessable_entity }
+ format.api {head :unprocessable_entity}
end
end
end
def status_by
respond_to do |format|
- format.html { render :action => 'show' }
+ format.html {render :action => 'show'}
format.js
end
end