Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
61450d0d
authored
Jul 23, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: move store actions to top
parent
0b8b1558
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
54 deletions
+68
-54
circle/dashboard/static/dashboard/dashboard.css
+4
-0
circle/dashboard/templates/dashboard/store/_list-box.html
+64
-53
circle/dashboard/views.py
+0
-1
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
61450d0d
...
...
@@ -827,3 +827,7 @@ textarea[name="list-new-namelist"] {
#group-detail-permissions
input
[
type
=
"submit"
]
{
margin-top
:
-6px
;
}
.store-action-button
{
margin-left
:
5px
;
}
circle/dashboard/templates/dashboard/store/_list-box.html
View file @
61450d0d
{% load i18n %}
<div
class=
"list-group"
>
<div
class=
"list-group-item"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<a
href=
"{% url "
dashboard
.
views
.
store-upload
"%}?
directory=
{{
current
}}"
class=
"btn btn-info btn-xs pull-right js-hidden"
>
{% trans "Upload" %}
</a>
<form
action=
""
data-action=
"{% url "
dashboard
.
views
.
store-upload-url
"
%}"
method=
"POST"
enctype=
"multipart/form-data"
class=
"no-js-hidden"
id=
"store-upload-form"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"current_dir"
value=
"{{ current }}"
/>
<input
type=
"hidden"
name=
"next"
value=
"{{ next_url }}"
/>
<div
class=
"input-group"
style=
"max-width: 350px;"
>
<span
class=
"input-group-btn"
id=
"store-upload-browse"
>
<span
class=
"btn btn-primary btn-xs"
>
{% trans "Browse..." %}
</span>
</span>
<input
type=
"text"
class=
"form-control input-tags"
id=
"store-upload-filename"
/>
<span
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"btn btn-primary btn-xs"
disabled
>
<i
class=
"fa fa-cloud-upload"
></i>
{% trans "Upload" %}
</button>
</span>
</div>
<input
id=
"store-upload-file"
name=
"data"
type=
"file"
style=
"display:none"
>
</form>
</div>
<!-- .col-sm-6 upload -->
<div
class=
"col-sm-6"
>
<a
href=
"{% url "
dashboard
.
views
.
store-remove
"
%}?
path=
{{
current
}}"
class=
"btn btn-danger btn-xs pull-right store-action-button"
title=
"{% trans "
Remove
directory
"
%}"
>
<i
class=
"fa fa-times"
></i>
</a>
<a
href=
"{% url "
dashboard
.
views
.
store-download
"
%}?
path=
{{
current
}}"
class=
"btn btn-primary btn-xs pull-right store-action-button"
title=
"{% trans "
Download
directory
"
%}"
>
<i
class=
"fa fa-cloud-download"
></i>
</a>
<form
method=
"POST"
action=
"{% url "
dashboard
.
views
.
store-new-directory
"
%}"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"path"
value=
"{{ current }}"
/>
<div
class=
"input-group"
style=
"max-width: 300px;"
>
<span
class=
"input-group-addon input-tags"
title=
"{% trans "
New
directory
"
%}"
>
<i
class=
"fa fa-folder-open"
></i>
</span>
<input
type=
"text"
class=
"form-control input-tags"
name=
"name"
placeholder=
"{% trans "
Name
"%}"
required
/>
<span
class=
"input-group-btn"
>
<input
type=
"submit"
class=
"btn btn-success btn-xs"
value=
"{% trans "
Create
"
%}"
/>
</span>
</div>
</form>
</div>
<!-- .col-sm-6 -->
</div>
<!-- .row -->
</div>
<!-- .list-group-item -->
</div>
<!-- .list-group -->
<div
class=
"list-group"
id=
"store-list-list"
>
<a
href=
"{% url "
dashboard
.
views
.
store-list
"
%}?
directory=
{{
up_url
}}"
class=
"list-group-item store-list-item"
data-item-type=
"D"
>
...
...
@@ -67,57 +131,4 @@
{% trans "This folder is empty." %}
</a>
{% endfor %}
<div
class=
"list-group-item"
>
{% trans "Upload file to this folder" %}
<a
href=
"{% url "
dashboard
.
views
.
store-upload
"%}?
directory=
{{
current
}}"
class=
"btn btn-info btn-xs pull-right js-hidden"
>
{% trans "Upload" %}
</a>
<form
action=
""
data-action=
"{% url "
dashboard
.
views
.
store-upload-url
"
%}"
method=
"POST"
enctype=
"multipart/form-data"
class=
"pull-right no-js-hidden"
id=
"store-upload-form"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"current_dir"
value=
"{{ current }}"
/>
<input
type=
"hidden"
name=
"next"
value=
"{{ next_url }}"
/>
<div
class=
"input-group"
style=
"max-width: 350px;"
>
<span
class=
"input-group-btn"
id=
"store-upload-browse"
>
<span
class=
"btn btn-primary btn-xs"
>
{% trans "Browse..." %}
</span>
</span>
<input
type=
"text"
class=
"form-control input-tags"
id=
"store-upload-filename"
/>
<span
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"btn btn-primary btn-xs"
disabled
>
<i
class=
"fa fa-cloud-upload"
></i>
{% trans "Upload" %}
</button>
</span>
</div>
<input
id=
"store-upload-file"
name=
"data"
type=
"file"
style=
"display:none"
>
</form>
</div>
</div>
<!-- closing list-group -->
<div
class=
"list-group"
>
<div
class=
"list-group-item"
>
<a
href=
"{% url "
dashboard
.
views
.
store-remove
"
%}?
path=
{{
current
}}"
class=
"btn btn-danger btn-xs pull-right"
>
<i
class=
"fa fa-times"
></i>
{% trans "Remove directory" %}
</a>
<form
method=
"POST"
action=
"{% url "
dashboard
.
views
.
store-new-directory
"
%}"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"path"
value=
"{{ current }}"
/>
<div
class=
"input-group"
style=
"max-width: 350px;"
>
<span
class=
"input-group-addon input-tags"
title=
"{% trans "
New
directory
"
%}"
>
<i
class=
"fa fa-folder-open"
></i>
</span>
<input
type=
"text"
class=
"form-control input-tags"
name=
"name"
placeholder=
"{% trans "
Name
"%}"
/>
<span
class=
"input-group-btn"
>
<input
type=
"submit"
class=
"btn btn-success btn-xs"
value=
"{% trans "
Create
"
%}"
/>
</span>
</div>
</form>
</div>
</div>
circle/dashboard/views.py
View file @
61450d0d
...
...
@@ -3222,7 +3222,6 @@ def store_new_directory(request):
logger
.
exception
(
"Unable to create folder
%
s in
%
s for
%
s"
,
name
,
path
,
unicode
(
request
.
user
))
messages
.
error
(
request
,
_
(
"Unable to create folder."
))
return
redirect
(
"/"
)
return
redirect
(
"
%
s?directory=
%
s"
%
(
reverse
(
"dashboard.views.store-list"
),
path
))
...
...
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