added section to personal space on home page
This commit is contained in:
parent
5fc4f51d36
commit
6122f5dc72
|
@ -482,6 +482,8 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
'<div id="droite">'
|
||||
self.consultations()
|
||||
self.announces()
|
||||
if get_request().user and not get_request().user.anonymous:
|
||||
self.myspace_snippet()
|
||||
'</div>'
|
||||
|
||||
def services [html] (self):
|
||||
|
@ -602,6 +604,15 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
'</ul>'
|
||||
'</div>'
|
||||
|
||||
def myspace_snippet [html] (self):
|
||||
'<div id="myspace">'
|
||||
'<h3>%s</h3>' % _('My Space')
|
||||
'<ul>'
|
||||
' <li><a href="myspace/">%s</a></li>' % _('Access to your personal space')
|
||||
'</ul>'
|
||||
'</div>'
|
||||
|
||||
|
||||
def page_view [html] (self, key, title, urlname = None):
|
||||
if not urlname:
|
||||
urlname = key[3:].replace(str('_'), str('-'))
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 152 B |
|
@ -349,6 +349,40 @@ div#droite {
|
|||
}
|
||||
|
||||
|
||||
/* My Space on home page */
|
||||
|
||||
#droite #myspace p {
|
||||
text-align: justify;
|
||||
margin:0.2em 0 0.5em 0;
|
||||
font-size:85%;
|
||||
}
|
||||
|
||||
#droite #myspace h3 {
|
||||
background:url(bg-h-myspace.gif) left top no-repeat;
|
||||
width:238px;
|
||||
height:26px;
|
||||
padding:5px 5px 5px 0;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
#droite #myspace li {
|
||||
margin-bottom: 1ex;
|
||||
}
|
||||
|
||||
#droite #myspace li a{
|
||||
background:url(puce-myspace.gif) left center no-repeat;
|
||||
padding-left:15px;
|
||||
font-size:90%
|
||||
}
|
||||
|
||||
#droite #myspace li a:hover {
|
||||
color:#6e8b03;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* ///////////////////////// PAGE CONSULTATION */
|
||||
|
||||
#rub_consultation{
|
||||
|
|
Reference in New Issue