style: extend main content when there is no right column

This commit is contained in:
Frédéric Péters 2015-10-06 15:39:13 +02:00
parent 12b6119365
commit eb2e79eac6
2 changed files with 6 additions and 0 deletions

View File

@ -666,6 +666,9 @@ form .submit-button, form .cancel-button, #rub_service form .submit-button, #rub
#main-content {
width: 62.5%;
}
#main-content.no-right-column {
width: 81%;
}
#steps {
width: 25%;
}

View File

@ -101,6 +101,9 @@ class RemoteTemplate(object):
template_content = template_content.replace('[if-any user-name][user-name][end]', user_name)
template_content = template_content.replace(
'[if-any right-column][right-column][end]', right_column)
template_content = template_content.replace(
'<div id="main-content">',
'<div id="main-content" [if-any gauche][else]class="no-right-column[end]">')
self.cache(template_content)
return template_content