Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !341 opened Jul 01, 2015 by Kálmán Viktor@kviktor 
  • Report abuse
Report abuse

Disk resize help and request

Kijelölés_053

  • Discussion 4
  • Commits 6
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Bach Dániel
    @bachdaniel started a discussion on an old version of the diff Jul 05, 2015
    circle/templates/info/resize.html 0 → 100644
    1 {% extends "dashboard/base.html" %}
    2
    3 {% load staticfiles %}
    4 {% load i18n %}
    5
    6 {% block title-page %}{% trans "Resize how-to" %}{% endblock %}
    7 {% block content %}
    8 <div class="row" id="resize-help">
    9 <div class="col-lg-12">
    10 <style>
    11 #resize-help table {
    • Bach Dániel @bachdaniel commented Jul 05, 2015
      Owner

      XD

      XD
    Please register or sign in to reply
  • Bach Dániel
    @bachdaniel started a discussion on the diff Jul 05, 2015
    circle/request/templates/request/detail.html
    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!!!
    • Bach Dániel @bachdaniel commented Jul 05, 2015
      Owner

      :DDD

      :DDD
    Please register or sign in to reply
  • Kálmán Viktor @kviktor

    Added 2 commits:

    • 747fd41c - dashboard: make resize how-to more responsive
    • 8dc295a5 - dashboard: resize request only for resizable disks
    Jul 06, 2015

    Added 2 commits:

    • 747fd41c - dashboard: make resize how-to more responsive
    • 8dc295a5 - dashboard: resize request only for resizable disks
    Added 2 commits: * 747fd41c - dashboard: make resize how-to more responsive * 8dc295a5 - dashboard: resize request only for resizable disks
    Toggle commit list
  • Bach Dániel
    @bachdaniel started a discussion on the diff Aug 18, 2015
    Last updated by Kálmán Viktor Aug 31, 2015
    circle/request/views.py
    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:
    • Bach Dániel @bachdaniel commented Aug 18, 2015
      Owner
      if not disk.is_resizable or disk not in vm.disks.all():
      Edited Aug 18, 2015
      ```python if not disk.is_resizable or disk not in vm.disks.all(): ```
    • Kálmán Viktor @kviktor commented Aug 31, 2015
      Owner

      fixd

      fixd
    Please register or sign in to reply
  • Kálmán Viktor @kviktor

    Added 2 commits:

    • 7abcec33 - request: fix disk resize view permission problem
    • fb293c07 - dashboard: disabled resizing disks w wrong type
    Aug 31, 2015

    Added 2 commits:

    • 7abcec33 - request: fix disk resize view permission problem
    • fb293c07 - dashboard: disabled resizing disks w wrong type
    Added 2 commits: * 7abcec33 - request: fix disk resize view permission problem * fb293c07 - dashboard: disabled resizing disks w wrong type
    Toggle commit list
  • Kálmán Viktor @kviktor

    mentioned in issue #428

    Oct 13, 2015

    mentioned in issue #428

    mentioned in issue #428
    Toggle commit list
  • Kálmán Viktor @kviktor

    mentioned in commit 013ed92b

    Feb 09, 2016

    mentioned in commit 013ed92b

    mentioned in commit 013ed92b504c869c469f618fae50283a75a4d7f3
    Toggle commit list
  • Kálmán Viktor @kviktor

    Status changed to merged

    Feb 09, 2016

    Status changed to merged

    Status changed to merged
    Toggle commit list
  • Bach Dániel @bachdaniel

    mentioned in issue #312 (closed)

    Feb 29, 2016

    mentioned in issue #312 (closed)

    mentioned in issue #312
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: circle/cloud!341