mirror of
https://github.com/boostorg/website.git
synced 2026-01-19 04:42:17 +00:00
Website: Improve the documentation notices.
[SVN r80660]
This commit is contained in:
@@ -131,19 +131,25 @@ function latest_link($params)
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
echo '<div class="boost-common-header-notice">';
|
||||
if (is_file(ARCHIVE_DIR."/{$current->dir()}/$params[key]"))
|
||||
{
|
||||
echo 'This is the documentation for an old version of boost, click '.
|
||||
'<a href="/doc/libs/release/'.$params['key'].'">'.
|
||||
'here for the latest version</a>';
|
||||
'here for the current version of this page</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'This is the documentation for an old version of boost.';
|
||||
echo 'This is the documentation for an old version of boost, ';
|
||||
echo '<a href="/doc/libs/">click here for the current boost ';
|
||||
echo 'documentation</a>.';
|
||||
}
|
||||
echo '</div>', "\n";
|
||||
break;
|
||||
case -1:
|
||||
echo '<div class="boost-common-header-notice">';
|
||||
echo 'This is the documentation for an unreleased version of boost';
|
||||
echo '</div>', "\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,3 +102,10 @@
|
||||
#heading .heading-search #search-text #q:hover {
|
||||
border-bottom: 1px #FFFFFF solid;
|
||||
}
|
||||
.boost-common-header-notice {
|
||||
border: 1px solid #aa5;
|
||||
background: #ffc;
|
||||
color: #000;
|
||||
margin: 0 auto 1em auto;
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
Reference in New Issue
Block a user