From e635ab2c1be54be8313c96787b33a4b1a44ad957 Mon Sep 17 00:00:00 2001 From: Justyna Ilczuk Date: Fri, 25 Jan 2013 22:56:36 +0100 Subject: [PATCH] View improvements. --- helloworld.pyx | 0 templates/about.html | 6 ++- templates/date.html | 2 +- templates/index.html | 85 +++++++++++++++++++++++++++---- templates/layout.html | 114 ++++++++++++++++++++++++++++++++++++------ templates/pyvis.py | 11 ---- 6 files changed, 180 insertions(+), 38 deletions(-) create mode 100644 helloworld.pyx delete mode 100644 templates/pyvis.py diff --git a/helloworld.pyx b/helloworld.pyx new file mode 100644 index 0000000..e69de29 diff --git a/templates/about.html b/templates/about.html index 052b9d0..30a8a50 100644 --- a/templates/about.html +++ b/templates/about.html @@ -20,10 +20,14 @@ $("document").ready( function(){

Select a subject from navigation bar menu. Then you will be able to see, which notes are uploaded.There is link, view and download buttons click on anything you are interested in.

-

Why? What for?

+

Why? What for? Motivation

I like digital notes. But I encountered some problems, it wasn't very comfortable. I wanted to improve it. I wanted to share, to have easy access and automated updates and maintainence. So I made nooz. I am still working on it.

+

How was it made?

+

+ Whole app is written in python. I used flask, amazing, fast, simple python web framework as backend. To make it look somehow I used twitter bootstrap. As database I use sqlite3. +

diff --git a/templates/date.html b/templates/date.html index 7eee9f7..5f5894d 100644 --- a/templates/date.html +++ b/templates/date.html @@ -9,7 +9,7 @@

{{ key }}

{%- if subject %} {% for note in subject %} - + {% endfor %} {%- endif %} diff --git a/templates/index.html b/templates/index.html index 3f55d41..6fd0401 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,9 +2,62 @@ {% block body %} @@ -16,13 +69,21 @@ $("document").ready( function(){ +
  • {% for thumb in thumbs %} - - + + {% endfor %} - - + {% endblock %} -

    - What I want todo. - 4. make it easy download upload of notes - 5. add tagging and searching and subjects -

    - {% endblock %} \ No newline at end of file + \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html index a62362d..4852773 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -11,17 +11,7 @@ - + @@ -29,8 +19,20 @@ @@ -39,6 +41,46 @@ $("document").ready( function() { padding-top: 40px; padding-bottom: 40px; } + + .submenu-show + { + border-radius: 3px; + display: block; + left: 95%; + margin-top: -30px !important; + moz-border-radius: 3px; + position: absolute; + webkit-border-radius: 3px; + } + .submenu-hide + { + display: none !important; + float: right; + position: relative; + top: auto; + } + .navbar .submenu-show:before + { + border-bottom: 7px solid transparent; + border-left: none; + border-right: 7px solid rgba(0, 0, 0, 0.2); + border-top: 7px solid transparent; + left: 7px; + top: 10px; + padding-left: 5px; + position: absolute; + } + + + .navbar .submenu-show:after + { + border-bottom: 6px solid transparent; + border-left: none; + border-right: 6px solid #fff; + border-top: 6px solid transparent; + left: 10px; + top: 11px; + } @@ -77,19 +119,59 @@ $("document").ready( function() {
  • + +
  • @@ -97,6 +179,8 @@ $("document").ready( function() { +
    +
    {% block body %} {% endblock %} diff --git a/templates/pyvis.py b/templates/pyvis.py deleted file mode 100644 index 3dfded4..0000000 --- a/templates/pyvis.py +++ /dev/null @@ -1,11 +0,0 @@ -import numpy as np -import scipy -import pylab -import pymorph -import mahotas -from scipy import ndimage - -dna = mahotas.imread('dna.jpeg') - -pylab.imshow(dna) -pylab.show() \ No newline at end of file