From ef40350bae0482f1b0f514df3d70afe6de129ec5 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Mon, 13 Feb 2012 17:06:18 -0800 Subject: [PATCH] fix authorizations page css to use media box --- app/views/authorizations/index.html.haml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/authorizations/index.html.haml b/app/views/authorizations/index.html.haml index 104ae4775..67ec6edca 100644 --- a/app/views/authorizations/index.html.haml +++ b/app/views/authorizations/index.html.haml @@ -9,19 +9,20 @@ .span-19.prepend-5.last #applications_stream.stream - - if @applications.count > 0 - - for app in @applications + -if @applications.any? + - @applications.each do |app| .stream_element{:id => app.id} - .right + + .float-right = link_to t('.revoke_access'), authorization_path(:id => app.id), :method => :delete, :confirm => 'are you sure?', :class => "button" + .media + - if app.icon_url + .img + = image_tag(app.application_base_url + app.icon_url, :class => "avatar") + .bd - - if app.icon_url - = image_tag(app.application_base_url + app.icon_url, :class => "avatar") - - .content %div.from = link_to app.name, app.application_base_url = app.description - - else = t('.no_applications')