Change Layout of Path + Sub Title
With very long URI paths the wrapping either looks weird or there is no charecter for it to wrap on. This moves the URI to its own line, and moves some of the other elements aroud slightly. Also changes the font of the subtitle to make it more apparent. Change-Id: I36e7420224f69eaa5f4dceb18d910b40377b76c4
This commit is contained in:
parent
03f4e77f7d
commit
b100d1542f
|
@ -470,8 +470,10 @@ def rest_method_html(self, node):
|
|||
<span class="glyphicon glyphicon-link"></span></a>
|
||||
<span class="label label-%(method)s">%(method)s</span>
|
||||
</div>
|
||||
<div class="col-md-5">%(url)s</div>
|
||||
<div class="col-md-5">%(desc)s</div>
|
||||
<div class="row col-md-9">
|
||||
<div class="row col-md-12">%(url)s</div>
|
||||
<div class="row col-md-12"><p class="url-subtitle">%(desc)s</p></div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<button
|
||||
class="btn btn-info btn-sm btn-detail"
|
||||
|
|
|
@ -139,4 +139,9 @@ span.path_parameter {
|
|||
color: #fff;
|
||||
background-color: #31b0d5;
|
||||
border-color: #269abc;
|
||||
}
|
||||
}
|
||||
|
||||
p.url-subtitle {
|
||||
color: #555;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ class TestBasicExample(base.TestCase):
|
|||
'<span class="label label-GET">GET</span>',
|
||||
str(content))
|
||||
self.assertIn(
|
||||
'<div class="col-md-5">/servers</div>',
|
||||
'<div class="row col-md-12">/servers</div>',
|
||||
str(content))
|
||||
self.assertIn(
|
||||
('<button class="btn btn-info btn-sm btn-detail" '
|
||||
|
|
Loading…
Reference in New Issue