2
0
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:
Daniel James
2012-09-23 09:48:19 +00:00
parent d06560e433
commit 449fdad329
2 changed files with 15 additions and 2 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}