Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
deba7118
authored
Apr 18, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: modify box details
parent
5c48ebf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
23 deletions
+29
-23
one/static/script/cloud.js
+6
-2
one/templates/box/file/box.html
+23
-21
No files found.
one/static/script/cloud.js
View file @
deba7118
...
@@ -6,8 +6,12 @@ $(function() {
...
@@ -6,8 +6,12 @@ $(function() {
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
'0px'
);
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
'0px'
);
}
else
{
}
else
{
$
(
this
).
parent
(
'.entry'
).
addClass
(
'opened'
);
$
(
this
).
parent
(
'.entry'
).
addClass
(
'opened'
);
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
if
(
$
(
this
).
data
(
'fallback'
)
==
'slide'
)
{
$
(
this
).
next
(
'.details'
).
find
(
'.details-container'
)[
0
].
offsetHeight
+
15
+
'px'
);
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
'auto'
);
}
else
{
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
$
(
this
).
next
(
'.details'
).
find
(
'.details-container'
)[
0
].
offsetHeight
+
15
+
'px'
);
}
}
}
}
}
$
(
'a[href=#]'
).
click
(
function
(
e
)
{
$
(
'a[href=#]'
).
click
(
function
(
e
)
{
...
...
one/templates/box/file/box.html
View file @
deba7118
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</div>
</div>
<div
class=
"details"
>
<div
class=
"details"
>
<div
class=
"container"
>
<div
class=
"
details-
container"
>
<form
style=
"padding-bottom: 10px"
action=
"{% url one.views.key_add %}"
method=
"POST"
>
<form
style=
"padding-bottom: 10px"
action=
"{% url one.views.key_add %}"
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
<textarea
style=
"margin-bottom: 5px"
name=
"key"
placeholder=
"{% trans "
Public
key
in
OpenSSH
format
"
%}"
></textarea><br
/>
<textarea
style=
"margin-bottom: 5px"
name=
"key"
placeholder=
"{% trans "
Public
key
in
OpenSSH
format
"
%}"
></textarea><br
/>
...
@@ -129,26 +129,28 @@
...
@@ -129,26 +129,28 @@
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</div>
</div>
<div
class=
"details"
>
<div
class=
"details"
>
<div
class=
"container"
>
<div
class=
"details-container"
>
<div
id=
"upload-zone"
class=
"upload-zone"
>
<div
class=
"container"
>
<p>
{% trans "Drag and drop files here to start uploading." %}
</p>
<div
id=
"upload-zone"
class=
"upload-zone"
>
<p>
<p>
{% trans "Drag and drop files here to start uploading." %}
</p>
{% trans 'You can also use the
<a
href=
"#"
id=
"old-upload"
>
the traditional upload form
</a>
.' %}
<p>
</p>
{% trans 'You can also use the
<a
href=
"#"
id=
"old-upload"
>
the traditional upload form
</a>
.' %}
<p>
{% trans 'Upload limit is 1GB per file!' %}
</p>
</p>
</div>
<p>
{% trans 'Upload limit is 1GB per file!' %}
</p>
<div
style=
"display: none"
id=
"upload-progress-text"
class=
"upload-zone"
></div>
</div>
<div
style=
"display: none"
id=
"upload-error"
class=
"upload-zone"
>
<div
style=
"display: none"
id=
"upload-progress-text"
class=
"upload-zone"
></div>
<p
id=
"upload-error-size"
style=
"display: none"
>
{% trans "Error: File is bigger than 1GB!" %}
</p>
<div
style=
"display: none"
id=
"upload-error"
class=
"upload-zone"
>
<p
id=
"upload-error-server"
style=
"display: none"
>
{% trans "Error: Upload server is not available!" %}
</p>
<p
id=
"upload-error-size"
style=
"display: none"
>
{% trans "Error: File is bigger than 1GB!" %}
</p>
<p
id=
"upload-error-overwrite"
style=
"display: none"
>
{% trans "Error: File already exists!" %}
</p>
<p
id=
"upload-error-server"
style=
"display: none"
>
{% trans "Error: Upload server is not available!" %}
</p>
<p
id=
"upload-error-unknown"
style=
"display: none"
></p>
<p
id=
"upload-error-overwrite"
style=
"display: none"
>
{% trans "Error: File already exists!" %}
</p>
</div>
<p
id=
"upload-error-unknown"
style=
"display: none"
></p>
<div
style=
"display: none"
class=
"upload-zone"
id=
"old-upload-form"
>
</div>
<form
action=
"{% url one.views.home %}"
method=
"POST"
data-bind=
"attr: {action: uploadURL}"
enctype=
"multipart/form-data"
>
<div
style=
"display: none"
class=
"upload-zone"
id=
"old-upload-form"
>
<input
type=
"file"
name=
"data"
/>
<form
action=
"{% url one.views.home %}"
method=
"POST"
data-bind=
"attr: {action: uploadURL}"
enctype=
"multipart/form-data"
>
<input
type=
"submit"
value=
"Feltöltés"
/>
<input
type=
"file"
name=
"data"
/>
</form>
<input
type=
"submit"
value=
"Feltöltés"
/>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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