Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8453d688
authored
Jul 31, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: store quick fixes
fix typo handle NoStoreException (this shouldn't really happen)
parent
a29ad2f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
circle/dashboard/templates/dashboard/store/upload.html
+1
-1
circle/dashboard/views.py
+6
-1
No files found.
circle/dashboard/templates/dashboard/store/upload.html
View file @
8453d688
...
...
@@ -19,7 +19,7 @@
<div
class=
"panel-body"
>
<div
style=
"text-align: center; margin: 0 0 20px 0;"
>
<div
class=
"label label-info"
style=
"padding: 5px;"
>
{% trans "Curently uploading to" %}: {{ directory }}
{% trans "Cur
r
ently uploading to" %}: {{ directory }}
</div>
</div>
<form
method=
"POST"
action=
"{{ action }}"
enctype=
"multipart/form-data"
>
...
...
circle/dashboard/views.py
View file @
8453d688
...
...
@@ -87,7 +87,7 @@ from storage.models import Disk
from
firewall.models
import
Vlan
,
Host
,
Rule
from
.models
import
Favourite
,
Profile
,
GroupProfile
,
FutureMember
from
.store_api
import
Store
,
NoStoreException
from
.store_api
import
Store
,
NoStoreException
,
NotOkException
logger
=
logging
.
getLogger
(
__name__
)
saml_available
=
hasattr
(
settings
,
"SAML_CONFIG"
)
...
...
@@ -3153,6 +3153,11 @@ class StoreList(LoginRequiredMixin, TemplateView):
except
NoStoreException
:
messages
.
warning
(
self
.
request
,
_
(
"No store."
))
return
redirect
(
"/"
)
except
NotOkException
:
messages
.
warning
(
self
.
request
,
_
(
"Store has some problems now."
" Try again later."
))
return
redirect
(
"/"
)
def
create_up_directory
(
self
,
directory
):
path
=
normpath
(
join
(
'/'
,
directory
,
'..'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment