Mercurial > hg > MPIWGWeb
changeset 92:45c7b240ee93
book pages and lists.
author | casties |
---|---|
date | Wed, 15 May 2013 21:14:26 +0200 |
parents | d2f75c879335 |
children | 48e88706cfc3 |
files | css/mpiwg.css zpt/project/project_index_html.zpt zpt/www/common_template.zpt |
diffstat | 3 files changed, 45 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/css/mpiwg.css Wed May 15 19:42:23 2013 +0200 +++ b/css/mpiwg.css Wed May 15 21:14:26 2013 +0200 @@ -668,7 +668,8 @@ margin-bottom: 5px; } -div.box.line { +div.box.line, +div.line { border-bottom: 1px solid #dccbae; } @@ -699,8 +700,11 @@ div.mini div.thumb { background-color: #f8f8f8; text-align: center; + margin-top: 0.5em; } - +div.mini div.thumb:first-child { + margin-top: 0; +} div.row.quintuple div.mini div.thumb img { width: 120px; height: 75px; @@ -721,6 +725,10 @@ height: auto; } +div.row.double div.mini div.thumb img { + height: 180px; +} + div.mini div.type { color: #9f917a; margin-top: 0.5em; @@ -739,6 +747,11 @@ margin-top: 0.5em; } +div.mini h2 { + /* e.g. title for mini-books */ + font-size: 14px; +} + div.mini.website div.description { /* initially hidden */ display: none; @@ -1016,6 +1029,10 @@ line-height: 1.5; } +h2.type { + color: #9f917a; +} + /* * feature story archive */
--- a/zpt/project/project_index_html.zpt Wed May 15 19:42:23 2013 +0200 +++ b/zpt/project/project_index_html.zpt Wed May 15 21:14:26 2013 +0200 @@ -3,15 +3,14 @@ <html metal:use-macro="here/pro_sec_template/macros/page"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<tal:block metal:fill-slot="title"> - <title tal:content="string:${here/getNumber} ${here/getProjectTitle}" /> -</tal:block> -<tal:block metal:fill-slot="head"> +<title metal:fill-slot="title" tal:content="string:${here/getNumber} ${here/getProjectTitle}" /> +<metal:block metal:fill-slot="head"> <meta name="description" content="project"/> <tal:block tal:define="global proBaseUrl string:$root/${secmap/research}/projects; global images here/getImageList; global dept here/getDepartmentId;" /> +</metal:block> </head> <body>
--- a/zpt/www/common_template.zpt Wed May 15 19:42:23 2013 +0200 +++ b/zpt/www/common_template.zpt Wed May 15 21:14:26 2013 +0200 @@ -80,6 +80,29 @@ <!-- /short person entry --> + <!-- two-column book entry --> + <div class="mini book" metal:define-macro="book_col" + tal:define="bookurl python:book.getUrl(baseUrl=bookroot); imageurl book/getImageUrl;"> + <div class="type" tal:content="python:book.getInfo('pubtype')">Book</div> + <div class="thumb" tal:condition="imageurl"> + <a tal:attributes="href bookurl"><img tal:condition="imageurl" tal:attributes="src imageurl" alt=""/></a> + </div> + <h2 tal:content="python:book.getInfo('title')">On historicizing epistemology : an essay</h2> + <div class="author"> + <span tal:repeat="author python:book.getByPrefix('author_')"> + <tal:block tal:define="url python:author[0]; name python:author[2];"> + <a tal:attributes="href url" tal:omit-tag="not:url" tal:content="name" /><tal:block + tal:condition="not:repeat/author/end">;</tal:block> + </tal:block> + </span> + </div> + <p> + <span tal:replace="structure python:book.getInfo('short_summary').replace('\n','<br/>\n')">Epistemology, as generally + understood by philosophers of science, is rather remote from the history of science and from historical concerns in general.</span> + <a tal:attributes="href bookurl" class="internal">More</a> + </p> + </div> + <!-- /two-column book entry --> </body> </html>