stylesheet files added to 'partition' and 'log' plugin

This commit is contained in:
lars 2006-09-26 08:38:45 +00:00
parent 90efd72b8b
commit c95ba55f25
8 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#log p.console {
margin-left: 10%;
margin-right: 10%;
font-family: monospace;
text-align: left;
}

View file

@ -1,4 +1,5 @@
import CryptoBoxPlugin
import os
class logs(CryptoBoxPlugin.CryptoBoxPlugin):
@ -16,6 +17,7 @@ class logs(CryptoBoxPlugin.CryptoBoxPlugin):
def __prepareFormData(self):
self.hdf[self.hdf_prefix + "Content"] = self.__getLogContent()
self.hdf[self.hdf_prefix + "StyleSheetFile"] = os.path.abspath(os.path.join(self.pluginDir, "logs.css"))
def __getLogContent(self, lines=30, maxSize=2000):

View file

@ -1,5 +1,9 @@
<?cs # $Id$ ?>
<style type="text/css">
<?cs include:Data.Plugins.logs.StyleSheetFile ?>
</style>
<div id="log">
<h1><?cs var:html_escape(Lang.Plugins.logs.Title.Log) ?></h1>