Skip to content

Commit

Permalink
git-svn-id: svn://cherokee-project.com/cherokee/trunk@1934 5dc97367-9…
Browse files Browse the repository at this point in the history
…7f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Sep 2, 2008
1 parent 382be31 commit c5193f1
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,5 +1,10 @@
2008-09-02 Alvaro Lopez Ortega <alvaro@alobbs.com>

* admin/server.py, admin/main.template.html, admin/Page.py,
admin/main.help.html, admin/PageStatus.py, admin/PageMain.py,
admin/static/css/cherokee.css, admin/Makefile.am: Adds a new
"Status" menu entry in Cherokee admin.

* cherokee/main.c (process_launch): Report whenever the Cherokee
worker could not be spawned.

Expand Down
6 changes: 3 additions & 3 deletions admin/Makefile.am
Expand Up @@ -29,7 +29,7 @@ PageAdvanced.py \
PageEntry.py \
PageGeneral.py \
PageIcon.py \
PageMain.py \
PageStatus.py \
PageMime.py \
PageVServer.py \
PageVServers.py \
Expand Down Expand Up @@ -83,8 +83,8 @@ advanced.help.html \
entry.help.html \
general.help.html \
icon.help.html \
main.help.html \
main.template.html \
status.help.html \
status.template.html \
mime.help.html \
vserver.help.html \
vservers.help.html \
Expand Down
1 change: 1 addition & 0 deletions admin/Page.py
Expand Up @@ -36,6 +36,7 @@

PAGE_MENU_MENU = """
<ul id="nav">
<li id="status"><a href="/">Status</a></li>
<li id="general"><a href="/general">General</a></li>
<li id="vserver"><a href="/vserver">Virtual Servers</a></li>
<li id="encoder"><a href="/encoder">Encoding</a></li>
Expand Down
8 changes: 4 additions & 4 deletions admin/PageMain.py → admin/PageStatus.py
Expand Up @@ -35,14 +35,14 @@
</div>
"""

class PageMain (PageMenu, FormHelper):
class PageStatus (PageMenu, FormHelper):
def __init__ (self, cfg=None):
PageMenu.__init__ (self, 'main', cfg)
FormHelper.__init__ (self, 'main', cfg)
PageMenu.__init__ (self, 'status', cfg)
FormHelper.__init__ (self, 'status', cfg)

def _op_render (self):
self.AddMacroContent ('title', 'Welcome to Cherokee Admin')
self.AddMacroContent ('content', self.Read('main.template'))
self.AddMacroContent ('content', self.Read('status.template'))

manager = cherokee_management_get (self._cfg)
if manager.is_alive():
Expand Down
4 changes: 2 additions & 2 deletions admin/server.py
Expand Up @@ -15,7 +15,7 @@
from config import *
from configured import *
from Post import *
from PageMain import *
from PageStatus import *
from PageGeneral import *
from PageIcon import *
from PageMime import *
Expand Down Expand Up @@ -123,7 +123,7 @@ def handle_request (self):
elif uri.startswith('/ajax/update'):
page = PageAjaxUpdate (cfg)
elif uri == '/':
page = PageMain(cfg)
page = PageStatus(cfg)
else:
body = "/"

Expand Down
1 change: 1 addition & 0 deletions admin/static/css/cherokee.css
Expand Up @@ -64,6 +64,7 @@ body {
background: transparent url(../images/menu-highlight.png) left top no-repeat;
}

#body-status #status,
#body-general #general,
#body-vserver #vserver,
#body-encoder #encoder,
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c5193f1

Please sign in to comment.