breadcrumb
This commit is contained in:
parent
98432972dc
commit
ee57467642
|
@ -152,11 +152,12 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
formdefs = FormDef.select(lambda x: (
|
||||
x.category_id == category.id and not x.disabled),
|
||||
order_by = 'name')
|
||||
for formdef in formdefs:
|
||||
'<a href="%s/">%s</a>' % (formdef.url_name, formdef.name)
|
||||
for formdef in formdefs[:3]:
|
||||
'<a href="%s/%s/">%s</a>' % (category.url_name, formdef.url_name, formdef.name)
|
||||
if formdef != formdefs[-1]:
|
||||
', '
|
||||
'...'
|
||||
if len(formdefs) > 3:
|
||||
'...'
|
||||
'</li>'
|
||||
'</ul>'
|
||||
'</div>'
|
||||
|
@ -171,7 +172,8 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
'<ul>'
|
||||
for formdef in formdefs:
|
||||
'<li>'
|
||||
'<a href="%s/">%s</a>' % (formdef.url_name, formdef.name)
|
||||
'<a href="%s/%s/">%s</a>' % (
|
||||
self.consultations_category.url_name, formdef.url_name, formdef.name)
|
||||
'</li>'
|
||||
'</ul>'
|
||||
'</div>'
|
||||
|
@ -221,6 +223,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
'</div>'
|
||||
|
||||
def page_view [html] (self, filename, title):
|
||||
get_response().breadcrumb.append((filename, title))
|
||||
template.html_top(title)
|
||||
article_html = str(os.path.join(get_publisher().app_dir, 'articles/%s.html') % filename)
|
||||
if os.path.exists(str(article_html)):
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
<div id="top"> <h1>[site_name]</h1> </div>
|
||||
<p id="connection">
|
||||
[if-any user][user.display_name] - <a href="/logout">Déconnexion</a>
|
||||
[else]<a href="/register">Inscription</a> - <a href="/login/">Connexion</a>
|
||||
[else]<a href="/register/">Inscription</a> - <a href="/login/">Connexion</a>
|
||||
[end]
|
||||
</p>
|
||||
<div id="main-content">
|
||||
[if-any breadcrumb]<p id="breadcrumb">[breadcrumb]</p>[end]
|
||||
[if-any title]<h2>[title]</h2>[end]
|
||||
[prelude]
|
||||
[body]
|
||||
<hr />
|
||||
</div>
|
||||
|
|
|
@ -6,6 +6,13 @@ html {
|
|||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
div#top h1 {
|
||||
text-indent: -100em;
|
||||
overflow: hidden;
|
||||
background: transparent url(infos-publiques.png) center top no-repeat;
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -66,7 +73,7 @@ div#footer {
|
|||
font-size: 70%;
|
||||
color: gray;
|
||||
text-align: center;
|
||||
border-top: 1px solid green;
|
||||
border-top: 1px solid #ff0084;
|
||||
}
|
||||
|
||||
div#footer p {
|
||||
|
@ -162,7 +169,7 @@ p#bottom-links {
|
|||
|
||||
h2,
|
||||
h3 {
|
||||
color: green;
|
||||
color: #2a60a0;
|
||||
padding-left: 3px;
|
||||
background: transparent url(path1872.png) no-repeat -280px 0px;
|
||||
}
|
||||
|
@ -197,3 +204,20 @@ a.feed-link {
|
|||
padding-left: 20px;
|
||||
}
|
||||
|
||||
p#breadcrumb {
|
||||
background: #e6e6e6;
|
||||
-moz-border-radius: 6px;
|
||||
padding: 3px 8px;
|
||||
font-size: 80%;
|
||||
border: 1px solid #bfbfbf;
|
||||
}
|
||||
|
||||
p#breadcrumb a {
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dotted blue;
|
||||
}
|
||||
|
||||
p#breadcrumb a:hover {
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue