styling and docs
This commit is contained in:
@@ -34,6 +34,7 @@ def before_request():
|
|||||||
g.shares = json.load(open(app.config['SHARES_FILE'],'rt'))
|
g.shares = json.load(open(app.config['SHARES_FILE'],'rt'))
|
||||||
g.version = __FLEES_VERSION__
|
g.version = __FLEES_VERSION__
|
||||||
g.site_name = app.config['SITE_NAME']
|
g.site_name = app.config['SITE_NAME']
|
||||||
|
g.max_zip_size = app.config['MAX_ZIP_SIZE']
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
@@ -51,7 +52,8 @@ def index():
|
|||||||
'name': share['name'],
|
'name': share['name'],
|
||||||
'expire': get_or_none(share,'expire'),
|
'expire': get_or_none(share,'expire'),
|
||||||
'upload': get_or_none(share,'upload'),
|
'upload': get_or_none(share,'upload'),
|
||||||
'password_set': password_set
|
'password_set': password_set,
|
||||||
|
'description': get_or_none(share,'description','')
|
||||||
})
|
})
|
||||||
|
|
||||||
return render_template("index.html", entries=public_shares)
|
return render_template("index.html", entries=public_shares)
|
||||||
|
|||||||
@@ -4,21 +4,21 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: slategray;
|
color: #0E6251;
|
||||||
background-color: ghostwhite;
|
background-color: #FDF2E9;
|
||||||
min-height: 600px;
|
min-height: 600px;
|
||||||
font: 14px/1.3 'Segoe UI',Arial, sans-serif;
|
font: 14px/1.3 'Segoe UI',Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:visited {
|
a:visited {
|
||||||
color: darkslategray;
|
color: #0E3221;
|
||||||
}
|
}
|
||||||
a:link {
|
a:link {
|
||||||
color: slategray;
|
color: #0E6251;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page {
|
#page {
|
||||||
padding-bottom:60px;
|
padding-bottom: 60px;
|
||||||
}
|
}
|
||||||
#footer {
|
#footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -26,9 +26,14 @@ a:link {
|
|||||||
left: 9vw;
|
left: 9vw;
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: #f3f3fb;
|
background-color: #FAE5D3;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
|
background: #fdf2e9; /* Old browsers */
|
||||||
|
background: -moz-linear-gradient(left, #fdf2e9 0%, #fae5d3 50%, #fdf2e9 100%); /* FF3.6-15 */
|
||||||
|
background: -webkit-linear-gradient(left, #fdf2e9 0%,#fae5d3 50%,#fdf2e9 100%); /* Chrome10-25,Safari5.1-6 */
|
||||||
|
background: linear-gradient(to right, #fdf2e9 0%,#fae5d3 50%,#fdf2e9 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdf2e9', endColorstr='#fdf2e9',GradientType=1 ); /* IE6-9 */
|
||||||
}
|
}
|
||||||
.version_number {
|
.version_number {
|
||||||
font-size: xx-small;
|
font-size: xx-small;
|
||||||
@@ -40,8 +45,16 @@ td,th {
|
|||||||
padding-top: 0.2em;
|
padding-top: 0.2em;
|
||||||
padding-bottom: 0.2em;
|
padding-bottom: 0.2em;
|
||||||
}
|
}
|
||||||
|
th {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
tr:nth-child(even) {
|
tr:nth-child(even) {
|
||||||
background: #f3f3fb
|
background-color: #FAE5D3;
|
||||||
|
background: -moz-linear-gradient(left, #fae5d3 0%, #fae5d3 95%, #fdf2e9 100%);
|
||||||
|
background: -webkit-linear-gradient(left, #fae5d3 0%,#fae5d3 95%,#fdf2e9 100%);
|
||||||
|
background: linear-gradient(to right, #fae5d3 0%,#fae5d3 95%,#fdf2e9 100%);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fae5d3', endColorstr='#fdf2e9',GradientType=1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
.td_right {
|
.td_right {
|
||||||
@@ -68,10 +81,13 @@ tr:nth-child(even) {
|
|||||||
#list_menu {
|
#list_menu {
|
||||||
float:right;
|
float:right;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border: 4px solid lightslategray;
|
border: 4px solid #148F77;
|
||||||
background-color: #f3f3fb;
|
background-color: #FAE5D3;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
-webkit-border-bottom-left-radius: 15px;
|
||||||
|
-moz-border-radius-bottomleft: 15px;
|
||||||
|
border-bottom-left-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#list_menu ul {
|
#list_menu ul {
|
||||||
@@ -109,10 +125,13 @@ tr:nth-child(even) {
|
|||||||
|
|
||||||
#index_menu {
|
#index_menu {
|
||||||
float:right;
|
float:right;
|
||||||
padding: 8px;
|
padding: 12px;
|
||||||
border: 4px solid lightslategray;
|
border: 4px solid #148F77;
|
||||||
background-color: #f3f3fb;
|
background-color: #FAE5D3;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
|
-webkit-border-bottom-left-radius: 15px;
|
||||||
|
-moz-border-radius-bottomleft: 15px;
|
||||||
|
border-bottom-left-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#index_table {
|
#index_table {
|
||||||
|
|||||||
@@ -17,7 +17,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ url_for('list_view',name=entry.name) }}">{{ entry.name }}</a>
|
<td><a
|
||||||
|
href="{{ url_for('list_view',name=entry.name) }}"
|
||||||
|
title="{{ entry.description | safe }}"
|
||||||
|
>{{ entry.name }}</a>
|
||||||
{% if entry.password_set %}(Logged in){% endif %}
|
{% if entry.password_set %}(Logged in){% endif %}
|
||||||
<td class=td_right>{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %}
|
<td class=td_right>{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %}
|
||||||
<td class=td_right>{% if entry.upload %}yes{% else %}no{% endif %}
|
<td class=td_right>{% if entry.upload %}yes{% else %}no{% endif %}
|
||||||
|
|||||||
@@ -22,19 +22,19 @@
|
|||||||
Share:
|
Share:
|
||||||
<ul>
|
<ul>
|
||||||
{% if public %}
|
{% if public %}
|
||||||
<li>is <a href="{{ url_for('index') }}">public</a>
|
<li>is <a href="{{ url_for('index') }}" title="Share is publicly visible in the index">public</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>is <a href="{{ url_for('index') }}">unlisted</a>
|
<li>is <a href="{{ url_for('index') }}" title="Share not listed in the index unless you have logged in">unlisted</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if expire %}
|
{% if expire %}
|
||||||
<li>expires {{ expire }}
|
<li><span title="All share operations disabled after the date">expires {{ expire }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>never expires
|
<li>never expires
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if overwrite == false %}
|
{% if overwrite == false %}
|
||||||
<li>overwriting is disabled
|
<li><span title="Uploaded files need to be uniquely named">overwriting is disabled</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="{{ url_for('download_zip',name=name) }}">Download as zip</a>
|
<li><a href="{{ url_for('download_zip',name=name) }}" title="Download all the files as one ZIP file. Total size of files must be less than {{ g.max_zip_size }} Mb">Download as zip</a>
|
||||||
<li><a href="{{ url_for('logout',name=name) }}">Logout</a>
|
<li><a href="{{ url_for('logout',name=name) }}">Logout</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user