diff --git a/Formatter/AbstractFormatter.php b/Formatter/AbstractFormatter.php index 2f0f243..f2535d8 100644 --- a/Formatter/AbstractFormatter.php +++ b/Formatter/AbstractFormatter.php @@ -137,12 +137,13 @@ abstract class AbstractFormatter implements FormatterInterface if($section) { $processedCollection[$section][$path][] = $this->processAnnotation($annotation); } else { - $processedCollection['others'][$path][] = $this->processAnnotation($annotation); + $processedCollection['_others'][$path][] = $this->processAnnotation($annotation); } } } } + ksort($processedCollection); return $processedCollection; } } diff --git a/Resources/public/css/screen.css b/Resources/public/css/screen.css index 47843ca..7b8096a 100644 --- a/Resources/public/css/screen.css +++ b/Resources/public/css/screen.css @@ -169,7 +169,16 @@ table tbody tr:last-child td { font-size: 0.9em; } +#section { + border: 1px solid #ddd; + background: #f8f8f8; + padding: 5px 20px; + margin-bottom: 15px; +} + li.resource { + width: 100%; + margin-bottom: 10px; border-bottom: 1px solid #dddddd; } li.resource:last-child { @@ -226,7 +235,7 @@ li.operation { clear: both; overflow: hidden; display: block; - margin: 0 0 10px 0; + margin: 0 0 10px; padding: 0 0 0 0; } li.operation div.heading { diff --git a/Resources/views/resources.html.twig b/Resources/views/resources.html.twig index 36b39bd..eae4c49 100644 --- a/Resources/views/resources.html.twig +++ b/Resources/views/resources.html.twig @@ -2,13 +2,14 @@ {% block content %} {% for section, sections in resources %} - {% if section != 'others' %} + {% if section != '_others' %} +