Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
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
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0d0793f0
authored
Feb 04, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web: file-list template separated
parent
ff6b5c36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
73 deletions
+92
-73
one/templates/box-filelist.html
+91
-0
one/templates/home.html
+1
-73
No files found.
one/templates/box-filelist.html
0 → 100644
View file @
0d0793f0
<div
class=
"boxes"
>
<div
class=
"contentblock"
>
<h2>
Adattár
</h2>
<div
class=
"content"
>
<ul
class=
"file-list"
>
<li
class=
"wm small"
>
<div
class=
"summary"
>
<div
class=
"name"
>
Jelenlegi hely:
<span
data-bind=
"text: currentPath"
></span></div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"wm real"
data-bind=
"visible: notInRoot, click: jumpUp"
>
<div
class=
"summary"
>
<div
class=
"name filetype-jump-out"
>
..
</div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"wm small real"
data-bind=
"visible: files().length == 0"
>
<div
class=
"summary"
>
<div
class=
"name"
>
Nincs megjeleníthető fájl.
</div>
<div
class=
"clear"
></div>
</div>
</li>
<!-- ko foreach: {data:files,afterAdd:fadeIn} -->
<li
class=
"wm real"
>
<div
class=
"summary"
data-bind=
"click: clickHandler"
>
<div
class=
"name"
data-bind=
"text: name, attr: {class: getTypeClass}"
></div>
<div
class=
"info"
data-bind=
"text: size"
></div>
<div
class=
"actions"
>
<a
href=
"#"
>
<img
src=
"/static/icons/pencil.png"
alt=
"rename"
/>
</a>
<a
href=
"#"
data-bind=
"click: $parent.delete, clickBubble: false"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"delete"
/>
</a>
<a
href=
"#"
data-bind=
"click: $parent.download, clickBubble: false"
>
<img
src=
"/static/icons/download-cloud.png"
alt=
"download"
/>
</a>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<div
class=
"details-container"
>
<ul>
<li>
Módosítva:
<span
class=
"value"
data-bind=
"text: mTime"
></span></li>
<li>
Típus:
<span
class=
"value"
data-bind=
"text: type"
></span></li>
</ul>
</div>
</div>
</li>
<!-- /ko -->
<li
class=
"file-details wm"
id=
"load-more-files"
data-bind=
"visible: (files().length>0 && files().length != allFiles.length)"
>
<div
class=
"summary"
data-bind=
"click: showMore"
>
<div
class=
"name filetype-more"
>
Mutass több fájlt!
</div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"file-upload wm"
>
<div
class=
"summary"
data-bind=
"click: getUploadURL"
>
<div
class=
"name filetype-up"
>
Fájlfeltöltés
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<div
class=
"container"
>
<form
method=
"POST"
data-bind=
"attr: {action: uploadURL}"
enctype=
"multipart/form-data"
>
{% csrf_token %}
<input
name=
"data"
type=
"file"
/>
<input
type=
"submit"
value=
"Feltöltés"
/>
</form>
</div>
</div>
</li>
<li
class=
"wm small"
>
<div
class=
"summary"
>
<div
class=
"quota"
>
<div
class=
"used"
style=
"background-color: rgba(0,255,0,0.2); width: 2%"
></div>
</div>
<div
class=
"name"
>
Kvóta: 20MB/2GB
</div>
<div
class=
"clear"
></div>
</div>
</li>
</ul>
</div>
</div>
</div>
one/templates/home.html
View file @
0d0793f0
...
...
@@ -182,77 +182,5 @@
{% endif %}
{% endfor %}
</div>
<div
class=
"boxes"
>
<div
class=
"contentblock"
>
<h2>
Adattár
</h2>
<div
class=
"content"
>
<ul
class=
"file-list"
>
<li
class=
"wm small"
>
<div
class=
"summary"
>
<div
class=
"name"
>
Jelenlegi hely:
<span
data-bind=
"text: currentPath"
></span></div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"wm real"
data-bind=
"visible: notInRoot, click: jumpUp"
>
<div
class=
"summary"
>
<div
class=
"name filetype-jump-out"
>
..
</div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"wm small real"
data-bind=
"visible: files().length == 0"
>
<div
class=
"summary"
>
<div
class=
"name"
>
Nincs megjeleníthető fájl.
</div>
<div
class=
"clear"
></div>
</div>
</li>
<!-- ko foreach: {data:files,afterAdd:fadeIn} -->
<li
class=
"wm real"
>
<div
class=
"summary"
data-bind=
"click: clickHandler"
>
<div
class=
"name"
data-bind=
"text: name, attr: {class: getTypeClass}"
></div>
<div
class=
"info"
data-bind=
"text: size"
></div>
<div
class=
"actions"
>
<a
href=
"#"
>
<img
src=
"/static/icons/pencil.png"
alt=
"rename"
/>
</a>
<a
href=
"#"
data-bind=
"click: $parent.delete, clickBubble: false"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"delete"
/>
</a>
<a
href=
"#"
data-bind=
"click: $parent.download, clickBubble: false"
>
<img
src=
"/static/icons/download-cloud.png"
alt=
"download"
/>
</a>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<div
class=
"details-container"
>
<ul>
<li>
Módosítva:
<span
class=
"value"
data-bind=
"text: mTime"
></span></li>
<li>
Típus:
<span
class=
"value"
data-bind=
"text: type"
></span></li>
</ul>
</div>
</div>
</li>
<!-- /ko -->
<li
class=
"file-details wm"
id=
"load-more-files"
data-bind=
"visible: (files().length>0 && files().length != allFiles.length)"
>
<div
class=
"summary"
data-bind=
"click: showMore"
>
<div
class=
"name filetype-more"
>
Mutass több fájlt!
</div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"file-upload wm"
>
<div
class=
"summary"
>
<div
class=
"name filetype-up"
>
Fájlfeltöltés
</div>
<div
class=
"clear"
></div>
</div>
</li>
</ul>
</div>
</div>
</div>
{% include "box-filelist.html" %}
{% endblock %}
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