minor fixes
This commit is contained in:
		
					parent
					
						
							
								6c381dd3fb
							
						
					
				
			
			
				commit
				
					
						2c4390767d
					
				
			
		
					 2 changed files with 8 additions and 4 deletions
				
			
		|  | @ -37,7 +37,11 @@ | ||||||
|                 </li> |                 </li> | ||||||
|                 <li> |                 <li> | ||||||
|                     {% get_current_language as LANGUAGE_CODE %} |                     {% get_current_language as LANGUAGE_CODE %} | ||||||
| 
 |                     {% if LANGUAGE_CODE == 'en-us'%} | ||||||
|  |                         <a href="{% change_lang 'de' %}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i>  Deutsch</a> | ||||||
|  |                     {% else %} | ||||||
|  |                         <a href="{% change_lang 'en-us' %}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i>  English</a> | ||||||
|  |                     {% endif %} | ||||||
|                 </li> |                 </li> | ||||||
|             </ul> |             </ul> | ||||||
|         </div> |         </div> | ||||||
|  |  | ||||||
|  | @ -698,7 +698,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, | ||||||
|                 'last4') |                 'last4') | ||||||
|             context['cc_brand'] = card_details.get('response_object').get( |             context['cc_brand'] = card_details.get('response_object').get( | ||||||
|                 'cc_brand') |                 'cc_brand') | ||||||
|             context['vm'] = request.session.get('specs') |             context['vm'] = self.request.session.get('specs') | ||||||
|         return context |         return context | ||||||
| 
 | 
 | ||||||
|     def post(self, request): |     def post(self, request): | ||||||
|  | @ -776,8 +776,8 @@ class OrdersHostingDetailView(LoginRequiredMixin, | ||||||
|             'redirect': reverse('hosting:virtual_machines'), |             'redirect': reverse('hosting:virtual_machines'), | ||||||
|             'msg_title': str(_('Thank you for the order.')), |             'msg_title': str(_('Thank you for the order.')), | ||||||
|             'msg_body': str(_('Your VM will be up and running in a few moments.' |             'msg_body': str(_('Your VM will be up and running in a few moments.' | ||||||
|                           ' We will send you a confirmation email as soon as' |                               ' We will send you a confirmation email as soon as' | ||||||
|                           ' it is ready.')) |                               ' it is ready.')) | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return HttpResponse(json.dumps(response), |         return HttpResponse(json.dumps(response), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue