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')