Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
withmyisp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CapsLock
withmyisp
Commits
19f6ab60
Commit
19f6ab60
authored
Jun 26, 2014
by
CapsLock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[design] thumbnails organized on a grid (3 items by line)
parent
f8fa3a72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
26 deletions
+32
-26
default.html
views/default.html
+32
-26
No files found.
views/default.html
View file @
19f6ab60
...
...
@@ -6,35 +6,41 @@
% item_count = 0
% tag_closed = True
<div
class=
"row"
>
% for p in pictures:
<div
class=
"large-4 columns"
>
<div
class=
"panel"
>
<p>
<img
src=
"{{p['filename']}}"
style=
"max-width: 320px; max-height: 240px;"
alt=
"{{p['description']}}"
/>
% for p in pictures:
% if item_count % 3 == 0:
<div
class=
"row"
>
%tag_closed = False
% end
<div
class=
"large-4 columns"
>
<div
class=
"panel"
>
<div
id=
"modal-{{p['id']}}"
class=
"reveal-modal"
data-reveal
>
<h2>
{{p['description']}}
</h2>
<p
style=
"text-align: center;"
>
<img
src=
"{{p['filename']}}"
alt=
"{{p['description']}}"
/>
</p>
<a
class=
"close-reveal-modal"
>
×
</a>
</div>
</div>
% end
</div>
<p>
<a
href=
"#"
data-reveal-id=
"modal-{{p['id']}}"
>
<img
src=
"{{p['filename']}}"
alt=
"{{p['description']}}"
/>
</a>
</p>
</div>
</div>
% if item_count % 3 == 2:
</div>
%tag_closed = True
% end
% item_count += 1
% end
%if not tag_closed:
</div>
%end
...
...
@@ -44,12 +50,12 @@
<input
type=
"hidden"
name=
"domain"
value=
"{{current_domain}}"
/>
description:
<input
type=
"text"
name=
"description"
/>
Select a file:
<input
type=
"file"
name=
"upload"
/>
<input
type=
"submit"
value=
"Start upload"
/>
<input
type=
"submit"
value=
"Start upload"
class=
"button"
/>
</form>
<h1>
Create domain alias
</h1>
<form
action=
"/newAlias"
method=
"post"
>
<input
type=
"hidden"
name=
"domain"
value=
"{{current_domain}}"
/>
description:
<input
type=
"text"
name=
"description"
/>
<input
type=
"submit"
value=
"Create alias"
/>
<input
type=
"submit"
value=
"Create alias"
class=
"button"
/>
</form>
\ No newline at end of file
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