[PATCH conductor] Style Image Details' header buttons
tsedovic at redhat.com
tsedovic at redhat.com
Mon Dec 12 17:00:43 UTC 2011
From: Tomas Sedovic <tomas at sedovic.cz>
https://bugzilla.redhat.com/show_bug.cgi?id=760589
---
src/app/stylesheets/layout.scss | 10 ++++++++++
src/app/views/images/show.html.haml | 6 +++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/app/stylesheets/layout.scss b/src/app/stylesheets/layout.scss
index 7e74153..5edf82b 100644
--- a/src/app/stylesheets/layout.scss
+++ b/src/app/stylesheets/layout.scss
@@ -2692,6 +2692,16 @@ ul.catalog_pretty {
/********************************************* Image show view */
/************************************************************************** */
+#obj_actions.images {
+ #back_to_images {
+ margin: 0px 10px;
+ }
+
+ #delete, #new_deployable {
+ margin-top: -5px;
+ }
+}
+
.image_builds h1 {
padding: 10px;
font-size: 16px;
diff --git a/src/app/views/images/show.html.haml b/src/app/views/images/show.html.haml
index 802a994..ee09306 100644
--- a/src/app/views/images/show.html.haml
+++ b/src/app/views/images/show.html.haml
@@ -1,12 +1,12 @@
= render :partial => 'layouts/admin_nav'
%header.admin-page-header
%h1{:class => controller.controller_name}= @image.name
- #obj_actions.button-container
+ #obj_actions.button-container.images
=t'return_to'
- = link_to t('images.index.images'), images_path
+ = link_to t('images.index.images'), images_path, :class => 'rounded-link', :id => 'back_to_images'
.button-group
= button_to t("delete"), image_path(@image.id), :method => 'delete', :confirm => "Are you sure you want to delete?", :class => 'button danger', :id => 'delete'
- = link_to t('.new_deployable_from_image'), new_deployable_path(:create_from_image => @image.id)
+ = link_to t('.new_deployable_from_image'), new_deployable_path(:create_from_image => @image.id), :class => 'button', :id => 'new_deployable'
%section.admin-content-section
%header
--
1.7.6.4
More information about the aeolus-devel
mailing list