# HG changeset patch # User casties # Date 1368636516 -7200 # Node ID c940af028112882c3989bf311633c1a3487471e4 # Parent 2f52650cb539bd281f02447bd968757332f56fb0 add styles and meta-tags for search. diff -r 2f52650cb539 -r c940af028112 MPIWGProjects.py --- a/MPIWGProjects.py Wed May 15 15:56:53 2013 +0200 +++ b/MPIWGProjects.py Wed May 15 18:48:36 2013 +0200 @@ -363,32 +363,38 @@ # # templates # - project_html = PageTemplateFile('zpt/project/project_template', globals()) + project_html = PageTemplateFile('zpt/project/project_index_html', globals()) # edit templates edit_css = ImageFile('css/edit.css', globals()) # make css refreshable for development edit_css.index_html = refreshingImageFileIndexHtml # user-accessible editing templates + edit_template = PageTemplateFile('zpt/project/edit_template', globals()) security.declareProtected('View management screens', 'editBasic') editBasic = PageTemplateFile('zpt/project/edit_basic', globals()) + security.declareProtected('View management screens', 'editDescription') editDescription = PageTemplateFile('zpt/project/edit_description', globals()) - edit_template = PageTemplateFile('zpt/project/edit_template', globals()) + security.declareProtected('View management screens', 'editRelatedProjectsForm') editRelatedProjectsForm = PageTemplateFile('zpt/project/edit_related_projects', globals()) editRelatedProjectsError = PageTemplateFile('zpt/project/edit_related_projects_error', globals()) - editImagesForm = PageTemplateFile('zpt/project/edit_images', globals()) + security.declareProtected('View management screens', 'editRelatedProjectsForm') + editRelatedProjectsForm = PageTemplateFile('zpt/project/edit_images', globals()) + security.declareProtected('View management screens', 'editPublicationsForm') editPublicationsForm = PageTemplateFile('zpt/project/edit_publications', globals()) + security.declareProtected('View management screens', 'editInfoBlocksForm') editInfoBlocksForm = PageTemplateFile('zpt/project/edit_infoblocks', globals()) + security.declareProtected('View management screens', 'editAdditionalPublicationsForm') editAdditionalPublicationsForm = PageTemplateFile('zpt/project/pubman/change_publications', globals()) + security.declareProtected('View management screens', 'editAddAdditionalPublications') editAddAdditionalPublications = PageTemplateFile('zpt/project/pubman/add_publications', globals()) security.declareProtected('View management screens', 'edit') edit = editDescription # management templates + security.declareProtected('View management screens', 'loadNewFileForm') loadNewFileForm = PageTemplateFile('zpt/project/manage_newfile', globals()) description_only_html = PageTemplateFile('zpt/project/description_only_html', globals()) # additional pages additional_publications_html = PageTemplateFile('zpt/project/pubman/show_publications', globals()) - # TODO: remove compat - edit_MPIWGProject_main = edit_template def __init__(self, id, argv=None): diff -r 2f52650cb539 -r c940af028112 css/mpiwg.css --- a/css/mpiwg.css Wed May 15 15:56:53 2013 +0200 +++ b/css/mpiwg.css Wed May 15 18:48:36 2013 +0200 @@ -27,7 +27,8 @@ } /* link-classes (with icons) */ -a.internal { +a.internal, +a.more { background: url(../images/internal.png) center left no-repeat; padding-left: 10px; } @@ -101,6 +102,7 @@ } ul.inline { + display: inline; padding: 0; margin: 0; } @@ -109,6 +111,10 @@ display: inline; } +/* + * table-like rows and columns + */ + div.rows { display: table; } @@ -365,12 +371,14 @@ padding-left: 21px; } -div.box h2 { +div.box h2, +h2.line { /* more-links in title are right */ position: relative; } -div.box h2 a:link { +div.box h2 a:link, +h2.line a.more:link { /* more-links in title are right */ position: absolute; right: 0; @@ -503,6 +511,8 @@ } div.tool.box div.searchbox div.extended { + font-family: Verdana, Arial, sans-serif; + font-size: 12px; text-align: right; padding: 5px 30px 5px 3px; } diff -r 2f52650cb539 -r c940af028112 zpt/feature/feature_template.zpt --- a/zpt/feature/feature_template.zpt Wed May 15 15:56:53 2013 +0200 +++ b/zpt/feature/feature_template.zpt Wed May 15 18:48:36 2013 +0200 @@ -4,6 +4,9 @@
++ (Completed: + ) +
+- (Completed: - ) -
-