Not logged in
Check-in [2593d31f2d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More layout changes
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2593d31f2d3ddee0101f9c357d3e778673b07efd
User & Date: petr 2010-11-09 20:49:59
Context
2010-11-09
22:21
Tweaked css to look the same in firefox, opera and chrome. check-in: ca10ccbd68 user: petr tags: trunk
20:49
More layout changes check-in: 2593d31f2d user: petr tags: trunk
20:18
beautified css check-in: 06f8638f83 user: petr tags: trunk
Changes

Changes to simple.py.

1

2
3
4
5
6
7
8
..
90
91
92
93
94
95
96

97
98

99
100
101
102
103
104
105
import sys

sys.path.append("lib")
import time
import BaseHTTPServer
from template import Template
import SimpleHTTPServer
import glob

................................................................................
class Settings(Handler):
    def get(self):
        t = Template("templates/global.tpl", content="templates/settings.tpl")
        files = glob.glob("../lgvp/*.cfg")
        dump = ""
        for gf in files:
            cfgfile = open(gf, "r")

            for line in cfgfile:
                dump = dump + line + "<br/>"

        self.write(t.safe_substitute({"dump": dump, "title": "Settings"}))


class Phonebook(Handler):
    def get(self):
        t = Template("templates/global.tpl", content="templates/phonebook.tpl")
        p = open("../lgvp/phonenumber.txt", "r")

>







 







>

|
>







1
2
3
4
5
6
7
8
9
..
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import sys
import os
sys.path.append("lib")
import time
import BaseHTTPServer
from template import Template
import SimpleHTTPServer
import glob

................................................................................
class Settings(Handler):
    def get(self):
        t = Template("templates/global.tpl", content="templates/settings.tpl")
        files = glob.glob("../lgvp/*.cfg")
        dump = ""
        for gf in files:
            cfgfile = open(gf, "r")
            dump = dump + "<h3>" + os.path.basename(gf) + "</h3>"
            for line in cfgfile:
                dump = dump + line + "<br />"
            dump = dump + "<hr />"
        self.write(t.safe_substitute({"dump": dump, "title": "Settings"}))


class Phonebook(Handler):
    def get(self):
        t = Template("templates/global.tpl", content="templates/phonebook.tpl")
        p = open("../lgvp/phonenumber.txt", "r")

Changes to static/general.css.

13
14
15
16
17
18
19
20



21



22
23








24
25
26
27
28
29
30
31
32
33
34
35
36










    margin-right: auto;
    width: 960px;
    background-color: #F4F4F4;
    padding: 15px 15px 15px 15px;
    border-radius: 10px;
}
#nav {
    width: 150px;



}



#content {
    width: 780px;








}
table {
    width: 100%;
}
tr:nth-child(odd) {
    background-color:#AAAAAA;
}
tr:nth-child(even) {
    background-color:#F4F4F4;
}
.center {
    text-align: center;
}

















|
>
>
>

>
>
>

|
>
>
>
>
>
>
>
>













>
>
>
>
>
>
>
>
>
>
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
    margin-right: auto;
    width: 960px;
    background-color: #F4F4F4;
    padding: 15px 15px 15px 15px;
    border-radius: 10px;
}
#nav {
    width: 134px;
    height: 100%;
    margin-top: 15px;
    padding-bottom: 15px;
}
#header {
    border-bottom: 1px solid #AAAAAA;
}
#content {
    width: 810px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-left: 1px solid #AAAAAA;
    padding-left: 15px;
}
#footer {
    border-top: 1px solid #AAAAAA;
    padding-top: 15px;
}
table {
    width: 100%;
}
tr:nth-child(odd) {
    background-color:#AAAAAA;
}
tr:nth-child(even) {
    background-color:#F4F4F4;
}
.center {
    text-align: center;
}
hr { 
    height: 0;
    color: #ccc;
    background-color: #ccc;
    border: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #fff;
}

Changes to templates/global.tpl.

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        <link rel="stylesheet" type="text/css" href="/static/fonts-min.css">
        <link rel="stylesheet" type="text/css" href="/static/grids-min.css">
        <link rel="stylesheet" type="text/css" href="/static/general.css">
        <link rel="shortcut icon" href="favicon.ico">
    </head>
    <body>
        <div id="main">
            <div class="yui3-g">
                <div class="yui3-u-1">
                    <h1>Nortel 1535 Management Interface - $title</h1>
                    <hr />
                </div>
            </div>
            <div class="yui3-g">
                <div class="yui3-u" id="nav">
                    <h3>Menu</h3>
                    <a href="/">All calls</a><br/>
                    <a href="/phonebook">Phonebook</a><br/>
                    <a href="/settings">Settings</a><br/>
                </div>
                <div class="yui3-u" id="content">
                    $content
                </div>
            </div>
            <div class="yui3-g">
                <div class="yui3-u-1 center">
                    &copy; 2010 <a href="http://petr.madnetwork.org">Petr Man</a>
                </div>
            </div>
        </div>
    </body>
</html>







|


<













|







7
8
9
10
11
12
13
14
15
16

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        <link rel="stylesheet" type="text/css" href="/static/fonts-min.css">
        <link rel="stylesheet" type="text/css" href="/static/grids-min.css">
        <link rel="stylesheet" type="text/css" href="/static/general.css">
        <link rel="shortcut icon" href="favicon.ico">
    </head>
    <body>
        <div id="main">
            <div class="yui3-g" id="header">
                <div class="yui3-u-1">
                    <h1>Nortel 1535 Management Interface - $title</h1>

                </div>
            </div>
            <div class="yui3-g">
                <div class="yui3-u" id="nav">
                    <h3>Menu</h3>
                    <a href="/">All calls</a><br/>
                    <a href="/phonebook">Phonebook</a><br/>
                    <a href="/settings">Settings</a><br/>
                </div>
                <div class="yui3-u" id="content">
                    $content
                </div>
            </div>
            <div class="yui3-g" id="footer">
                <div class="yui3-u-1 center">
                    &copy; 2010 <a href="http://petr.madnetwork.org">Petr Man</a>
                </div>
            </div>
        </div>
    </body>
</html>

Changes to templates/index.tpl.

1
2

3
4
5
6
7
8
9
<div class="yui3-g">
    <div class="yui3-u-1">

        <h3>Missed</h3>
        <table>
            <thead>
                <tr>
                    <th>Number</th>
                    <th>Name</th>
                    <th>Time</th>


>







1
2
3
4
5
6
7
8
9
10
<div class="yui3-g">
    <div class="yui3-u-1">
        <h1>$title</h1>
        <h3>Missed</h3>
        <table>
            <thead>
                <tr>
                    <th>Number</th>
                    <th>Name</th>
                    <th>Time</th>