about summary refs log tree commit diff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorSasha Sorokin <dafri.nochiterov8@gmail.com>2019-12-17 05:55:16 +0700
committerEugen Rochko <eugen@zeonfederated.com>2019-12-16 23:55:16 +0100
commit34aa5c7cb2090bf9d995eafdfbf5f9bd01336491 (patch)
treefb3a4f2255813d2885b4163c9083bb322c0e05d7 /app/views/layouts
parent09a72add0e98c3aebe82c417ecda01bed9596b20 (diff)
Improve report page structure (#12615)
* Move resolved button to the heading

This is one of the commits on improving overall reports page structure.
It changes where resolved button is located, moving it to the heading,
right next to the "Report #n" header, so-called "hot-place" to look at.

To accomplish this we have to declare one more content variable, change
admin dashboard template to respect it and CSS files for minor styling,
so buttons are inlined and centrally aligned according to the heading.

* Move actions buttons below the report table

I believe that actions to react on report should not be located at the
top of the page, instead they should be either after the table or
reporter's comment. This is just a logical sign that you should not
react to the report without reading all the details first.
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/admin.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml
index 57bda45e2..059bf8579 100644
--- a/app/views/layouts/admin.html.haml
+++ b/app/views/layouts/admin.html.haml
@@ -21,7 +21,12 @@
 
     .content-wrapper
       .content
-        %h2= yield :page_title
+        .content-heading
+          %h2= yield :page_title
+
+          - if :page_heading_actions
+            .content-heading-actions
+              = yield :page_heading_actions
 
         = render 'application/flashes'