Merge "Clear description for max_version field"

This commit is contained in:
Jenkins 2017-09-19 18:45:44 +00:00 committed by Gerrit Code Review
commit 0cd27677a4
3 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ min_version
max_version
the last version that includes this parameter. Will render
a *Deprecated in $version* stanza in the html output.
a *Available until $version* stanza in the html output.
rest_status_code

View File

@ -441,7 +441,7 @@ class RestParametersDirective(Table):
str(min_version).replace('.', '_'))
classes.append(min_ver_css_name)
if max_version:
desc += ("\n\n**Deprecated in version %s**\n" %
desc += ("\n\n**Available until version %s**\n" %
max_version)
max_ver_css_name = ("rp_max_ver_" +
str(max_version).replace('.', '_'))

View File

@ -87,7 +87,7 @@ class TestMicroversions(base.TestCase):
<td>body</td>
<td>string</td>
<td><p class="first">The name of things</p>
<p class="last"><strong>Deprecated in version 2.20</strong></p>
<p class="last"><strong>Available until version 2.20</strong></p>
</td>
</tr>
</tbody>