diff --git a/code/static/css/styles.css b/code/static/css/styles.css index 8017ff4..6cd923a 100755 --- a/code/static/css/styles.css +++ b/code/static/css/styles.css @@ -1,53 +1,79 @@ -html{ - min-height: 100%; - position: relative; -} - -body{ - color: slategray; - background-color: ghostwhite; - min-height: 600px; - font: 14px/1.3 'Segoe UI',Arial, sans-serif; -} - -a:visited { - color: darkslategray; -} -a:link { - color: slategray; -} - - - -/* list view */ - -.clear { - clear: both; -} - -#list_title { - float:left; - margin-left: 5em; -} - -#list_menu { - float:right; - padding: 8px; - border: 4px solid lightslategray; - background-color: #f3f3fb; -} -#list_table { - border-collapse: collapse; -} -td { - min-width: 10em; - padding: 0px; -} -tr:nth-child(even) { - background: #f3f3fb -} - - -.td_right { - text-align: right; -} +html{ + min-height: 100%; + position: relative; +} + +body{ + color: slategray; + background-color: ghostwhite; + min-height: 600px; + font: 14px/1.3 'Segoe UI',Arial, sans-serif; +} + +a:visited { + color: darkslategray; +} +a:link { + color: slategray; +} + +#page { + padding-bottom:60px; +} +#footer { + position: absolute; + bottom: 0; + width: 80vw; + height: 23px; + background: #f3f3fb; + text-align: center; + padding-top: 7px; +} +td,th { + min-width: 10em; + padding-right: 2em; + padding-top: 0.2em; + padding-bottom: 0.2em; +} +tr:nth-child(even) { + background: #f3f3fb +} + +.td_right { + text-align: right; +} + +/* list view */ + +.clear { + clear: both; +} + +#list_title { + float:left; + margin-left: 5em; +} + +#list_menu { + float:right; + padding: 8px; + border: 4px solid lightslategray; + background-color: #f3f3fb; +} +#list_table { + border-collapse: collapse; + margin-left: 2em; +} + +/* index */ + +#index_title { + float:left; + margin-left: 5em; +} + +#index_table { + border-collapse: collapse; + margin-left: 2em; + font-size: medium; +} diff --git a/code/templates/index.html b/code/templates/index.html index cdd4acc..93e8d87 100755 --- a/code/templates/index.html +++ b/code/templates/index.html @@ -1,18 +1,20 @@ -{% extends "layout.html" %} -{% block body %} - - - - {% for entry in entries %} - -
name - expires - upload -
{{ entry.name }} - {{ entry.expire|safe }} - {{ entry.upload|safe }} - {% else %} -
  • no shares - {% endfor %} -
  • -{% endblock %} +{% extends "layout.html" %} +{% block body %} +

    Flees

    +
    + + + + {% for entry in entries %} + +
    Name + Expires + Upload +
    {{ entry.name }} + {% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %} + {% if entry.upload %}yes{% else %}no{% endif %} + {% else %} +
  • no shares + {% endfor %} +
  • +{% endblock %} diff --git a/code/templates/layout.html b/code/templates/layout.html index 04fef86..c280c97 100644 --- a/code/templates/layout.html +++ b/code/templates/layout.html @@ -11,5 +11,6 @@ {% endfor %} {% block body %}{% endblock %} +