{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
115 <dd> 116 {% if request.user.is_superuser %} 117 <a href="{{ action.disk.get_absolute_url }}"> 118 {{ action.disk.name }} (#{{ action.disk.id}}) 119 </a> 120 {% else %} 121 {{ action.disk.name }} (#{{ action.disk.id}})</dd> 122 {% endif %} 123 </dd> 124 <dt>{% trans "Current size" %}</dt> 125 <dd>{{ action.disk.size|filesize}} ({{ action.disk.size }} bytes)</dd> 126 <dt>{% trans "Requested size" %}</dt> 127 <dd>{{ action.size|filesize}} ({{ action.size }} bytes)</dd> 128 </dl> 88 129 {% else %} 89 hacks!!! -
Owner
:DDD
-
-
316 if self.request.is_ajax(): 317 return ['dashboard/_modal.html'] 318 else: 319 return ['dashboard/_base.html'] 320 321 def get_context_data(self, **kwargs): 322 context = super(ResizeRequestView, self).get_context_data(**kwargs) 323 context['disk'] = self.get_disk() 324 context['template'] = self.template_name 325 context['box_title'] = context['title'] = _("Disk resize request") 326 context['ajax_title'] = True 327 return context 328 329 def form_valid(self, form): 330 disk = self.get_disk() 331 if not disk.is_resizable: -
Owner
if not disk.is_resizable or disk not in vm.disks.all():
-
Owner
fixd
-
-
Status changed to merged
Toggle commit list -